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 report.  This is related to
http://lists.gnu.org/archive/html/bug-bash/2016-08/msg3.html
but affects only those builds without job control.  I will fix it in the
devel branch with the next push.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/



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
$ false && echo true || echo false
false

- M.