From fe2188378c352255b7d0407513ca73ec3f933153 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 1 Mar 2008 09:35:39 +0000 Subject: msh: fix for bug 846 ("break" didn't work second time) msh: don't use floating point in "times" builtin +4 bytes difference --- shell/msh_test/TODO_bug846 | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 shell/msh_test/TODO_bug846 (limited to 'shell/msh_test') 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 -- cgit v1.2.3