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:
@@ -0,0 +1 @@
|
|||||||
|
Exiting
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
trap "echo Exiting; exit" INT
|
||||||
|
|
||||||
|
(sleep 1; kill -s INT $$) &
|
||||||
|
|
||||||
|
while continue; do
|
||||||
|
continue;
|
||||||
|
done
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Exiting
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
trap "echo Exiting; exit" INT
|
||||||
|
|
||||||
|
(sleep 1; kill -s INT $$) &
|
||||||
|
|
||||||
|
while continue; do
|
||||||
|
continue;
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user