Re: [BUG] incorrect exit status from subshell on bash with --enable-minimal-config

2016-09-23 Thread Chet Ramey
On 9/21/16 7:06 PM, Martijn Dekker wrote: > On bash with --enable-minimal-config, as of version 4.3 (as far as I can > tell), there appears to be a bug with the exit status on returning from > subshells. Apparently the exit status of the subshell is not given to > the main shell. Thanks for the

Re: [BUG] incorrect exit status from subshell on bash with --enable-minimal-config

2016-09-21 Thread Martijn Dekker
Op 22-09-16 om 00:06 schreef Martijn Dekker: > On bash-4.4 with --enable-minimal-config: > $ (false);echo $? > 0 > $ (false);echo $? > 0 > $ (false);echo $? > 0 Another clue to the nature of the bug: it apparently happens before exiting the subshell. $ (false && echo true || echo false) true $