Re: errexit is not respected on nested functions when parent function preceeds ||

2023-08-08 Thread Lawrence Velázquez
On Tue, Aug 8, 2023, at 12:04 PM, cirrus.mazurka-0t--- via Bug reports for the GNU Bourne Again SHell wrote: > The following code: > > ``` bash > #!/usr/bin/env bash > > set -Eeuo pipefail > shopt -s huponexit > shopt -s inherit_errexit > > function child_function { > return 1 > } > function

errexit is not respected on nested functions when parent function preceeds ||

2023-08-08 Thread cirrus . mazurka-0t--- via Bug reports for the GNU Bourne Again SHell
I think I've found a bug with Bash's handling of errexit. The following code: ``` bash #!/usr/bin/env bash set -Eeuo pipefail shopt -s huponexit shopt -s inherit_errexit function child_function { return 1 } function parent_function { child_function echo "parent noticed