Bug#514862: bash: POSIX conformance: set -e and $(...)

2018-02-01 Thread Hartmut Buhrmester
This specific behavior is still found in "GNU bash, Version 4.4.12(1)-release" from Debian 9 Stretch, but a new shell option enables the more consistent behavior of other shells. Subshells for command substitutions do not automatically inherit the option "errexit". This must be enabled by

Bug#514862: bash: POSIX conformance: set -e and $(...)

2009-02-11 Thread Vincent Lefevre
Package: bash Version: 3.2-4 Severity: normal An example from the austin group mailing-list, that fails with bash when it is run as bash (not as sh): vin% bash -c 'set -e ; z=$(false;echo foo) ; echo $z' foo vin% I don't see why this non-standard behavior would be wanted. So, I suppose this is