diff options
author | Denis Vlasenko | 2008-03-01 09:35:39 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-03-01 09:35:39 +0000 |
commit | fe2188378c352255b7d0407513ca73ec3f933153 (patch) | |
tree | 01fcce006eb6d8b0fe1e448bc10ba68615049f1d /shell/msh_test | |
parent | 8a2e421f26623773b9f79f322b808a757ff055c0 (diff) | |
download | busybox-fe2188378c352255b7d0407513ca73ec3f933153.zip busybox-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_bug846 | 29 |
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 0000000..5c777fe --- /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 |