diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-01 09:35:39 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-01 09:35:39 +0000 |
commit | fe2188378c352255b7d0407513ca73ec3f933153 (patch) | |
tree | 01fcce006eb6d8b0fe1e448bc10ba68615049f1d /shell/msh_test | |
parent | 8a2e421f26623773b9f79f322b808a757ff055c0 (diff) | |
download | busybox-w32-fe2188378c352255b7d0407513ca73ec3f933153.tar.gz busybox-w32-fe2188378c352255b7d0407513ca73ec3f933153.tar.bz2 busybox-w32-fe2188378c352255b7d0407513ca73ec3f933153.zip |
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 000000000..5c777fedb --- /dev/null +++ b/shell/msh_test/TODO_bug846 | |||
@@ -0,0 +1,29 @@ | |||
1 | #!/bin/sh | ||
2 | # For future msh testsuite: | ||
3 | # Testcase for http://bugs.busybox.net/view.php?id=846 | ||
4 | |||
5 | n=0 | ||
6 | while : | ||
7 | do | ||
8 | echo A | ||
9 | while : | ||
10 | do | ||
11 | echo B | ||
12 | break | ||
13 | done | ||
14 | echo iteration | ||
15 | [ $n = 1 ] && break | ||
16 | echo C | ||
17 | n=`expr $n + 1` | ||
18 | done | ||
19 | echo D | ||
20 | |||
21 | # output should be: | ||
22 | # A | ||
23 | # B | ||
24 | # iteration | ||
25 | # C | ||
26 | # A | ||
27 | # B | ||
28 | # iteration | ||
29 | # D | ||