9 Şubat 2021 Salı tarihinde Mike Frysinger <vap...@gentoo.org> yazdı:
> $ cat test.sh > #!/bin/bash > foo() { > false > return 0 > } > shopt -s extdebug > trap 'echo invalid trap; exit 1' ERR > foo > echo "pass" > $ bash-4.3 ./test.sh > pass > $ bash-4.4 ./test.sh > invalid trap > The manual says that when extdebug is on, functions inherit the ERR trap. I think 4.4 behaves just as expected here -- Oğuz