On 9/23/16 3:04 PM, Luiz Angelo Daros de Luca wrote: > Hello, > > I'm using 'GNU bash, version 4.3.46(1)-release (x86_64-suse-linux-gnu)' > provided by OpenSUSE Tumbleweed. I recently faced a problem that, depending > on the system load, bash returns different exit codes. I detected that it > is related to trap processing.
Thanks for the report. It is related (indirectly) to trap processing in that traps get processed while reading the command substitution output. The problem still exists in bash-4.4, and I will probably release a bash-4.4 patch to address it. There are a few things ahead of that in the queue, though. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/