Re: Signal ignore flags unexpectedly reset after "trap ... EXIT"

2019-10-18 Thread Isaac To
ere is what is inspired by your reply: $ trap '' USR1 $ bash $ (trap true EXIT; grep Ign /proc/$BASHPID/status) For this: A: SigIgn: B: SigIgn: C: SigIgn: 0200 This is the behaviour I was reporting. The thing is, the behaviour is undocumented,

Signal ignore flags unexpectedly reset after "trap ... EXIT"

2019-10-15 Thread Isaac To
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-LQgi2O/bash-5.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-parentheses -Wno-format-security uname out