aboutsummaryrefslogtreecommitdiff
path: root/shell/msh_test
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-03-01 09:35:39 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-03-01 09:35:39 +0000
commitfe2188378c352255b7d0407513ca73ec3f933153 (patch)
tree01fcce006eb6d8b0fe1e448bc10ba68615049f1d /shell/msh_test
parent8a2e421f26623773b9f79f322b808a757ff055c0 (diff)
downloadbusybox-fe2188378c352255b7d0407513ca73ec3f933153.tar.gz
msh: fix for bug 846 ("break" didn't work second time)
msh: don't use floating point in "times" builtin +4 bytes difference
Diffstat (limited to 'shell/msh_test')
-rw-r--r--shell/msh_test/TODO_bug84629
1 files changed, 29 insertions, 0 deletions
diff --git a/shell/msh_test/TODO_bug846 b/shell/msh_test/TODO_bug846
new file mode 100644
index 000000000..5c777fedb
--- /dev/null
+++ b/shell/msh_test/TODO_bug846
@@ -0,0 +1,29 @@
+#!/bin/sh
+# For future msh testsuite:
+# Testcase for http://bugs.busybox.net/view.php?id=846
+
+n=0
+while :
+do
+ echo A
+ while :
+ do
+ echo B
+ break
+ done
+ echo iteration
+ [ $n = 1 ] && break
+ echo C
+ n=`expr $n + 1`
+done
+echo D
+
+# output should be:
+# A
+# B
+# iteration
+# C
+# A
+# B
+# iteration
+# D