msh: fix "while...continue" bug 3884.
This commit is contained in:
1
shell/msh_test/msh-execution/many_continues.right
Normal file
1
shell/msh_test/msh-execution/many_continues.right
Normal file
@ -0,0 +1 @@
|
||||
OK
|
15
shell/msh_test/msh-execution/many_continues.tests
Executable file
15
shell/msh_test/msh-execution/many_continues.tests
Executable file
@ -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
|
Reference in New Issue
Block a user