Add new trap/errexit/signal test simulating interactive usage
authorkn <kn@openbsd.org>
Sun, 16 Oct 2022 10:44:06 +0000 (10:44 +0000)
committerkn <kn@openbsd.org>
Sun, 16 Oct 2022 10:44:06 +0000 (10:44 +0000)
commit047a6e63f068a346477105816641ef1669873bc9
treec836239aaa69e8c8a74ddfae855dffd849caec9f
parent157b2ee220301fd5282188bdd198b2284c36461d
Add new trap/errexit/signal test simulating interactive usage

First try add capturing use cases like the bin/ksh/main.c r1.52 one:
"[...] we would not run the signal trap if,
for example, ^C was pressed and -e was set."

With so many different factors (errexit?, receiving (special) signals,
traps themselves failing/returing non-zero, running child processes?, etc.)
it is very easy to miss subtle behaviour changes during scripting...
regress/bin/ksh/trap.t