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
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
$ fa
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.
On bash-4.4 with --enable-minimal-config:
$ (false);echo $?
0
$ (fa