From 7ae1cc16b4ecec930cd776f9ed688b6d4d53a166 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 20 Jul 2008 23:03:23 +0000 Subject: msh: fix "while...continue" bug 3884. --- shell/msh_test/msh-execution/many_continues.tests | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 shell/msh_test/msh-execution/many_continues.tests (limited to 'shell/msh_test/msh-execution/many_continues.tests') diff --git a/shell/msh_test/msh-execution/many_continues.tests b/shell/msh_test/msh-execution/many_continues.tests new file mode 100755 index 000000000..86c729abc --- /dev/null +++ b/shell/msh_test/msh-execution/many_continues.tests @@ -0,0 +1,15 @@ +if test $# = 0; then + # Child will kill us in 1 second + "$THIS_SH" "$0" $$ & + + # Loop many, many times + trap 'echo OK; exit 0' 15 + while true; do + continue + done + echo BAD + exit 1 +fi + +sleep 1 +kill $1 -- cgit v1.2.3