aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc/break2.tests
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-07-28 23:07:06 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-07-28 23:07:06 +0000
commit6a2d40f239566e886ef76542a75662cee9380a0e (patch)
treef2e26f50cae7ddc60112f51174c4d994a9954fea /shell/hush_test/hush-misc/break2.tests
parentbcb25537d02b50ce26678defcf4f39d0c89f5b3b (diff)
downloadbusybox-6a2d40f239566e886ef76542a75662cee9380a0e.tar.gz
hush: support "break N" and "continue N"
fix non-detection of builtins and applets in "v=break; ...; $v; ..." case add testsuite entries for the above function old new delta builtin_break 12 93 +81 run_list 1948 1971 +23 builtin_continue 12 21 +9 pseudo_exec_argv 132 138 +6 builtin_exec 23 25 +2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/0 up/down: 121/0) Total: 121 bytes
Diffstat (limited to 'shell/hush_test/hush-misc/break2.tests')
-rwxr-xr-xshell/hush_test/hush-misc/break2.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/break2.tests b/shell/hush_test/hush-misc/break2.tests
new file mode 100755
index 000000000..7da9faf34
--- /dev/null
+++ b/shell/hush_test/hush-misc/break2.tests
@@ -0,0 +1,6 @@
+while true; do
+ echo A
+ while true; do echo AA; break 2; echo BB; done
+ echo B
+done
+echo OK:$?