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
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
2 matches
Mail list logo