msh: fix for bug 846 ("break" didn't work second time)

msh: don't use floating point in "times" builtin
+4 bytes difference
This commit is contained in:
Denis Vlasenko
2008-03-01 09:35:39 +00:00
parent 8a2e421f26
commit fe2188378c
2 changed files with 148 additions and 85 deletions

View File

@@ -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