ash,hush: add a test that "continue" does not cripple traps

Both shells pass this test.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2016-10-01 23:28:02 +02:00
parent b98b4c103f
commit ff59b7b112
4 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1 @@
Exiting

View File

@ -0,0 +1,7 @@
trap "echo Exiting; exit" INT
(sleep 1; kill -s INT $$) &
while continue; do
continue;
done

View File

@ -0,0 +1 @@
Exiting

View File

@ -0,0 +1,7 @@
trap "echo Exiting; exit" INT
(sleep 1; kill -s INT $$) &
while continue; do
continue;
done