fe2188378c
msh: don't use floating point in "times" builtin +4 bytes difference
30 lines
363 B
Bash
30 lines
363 B
Bash
#!/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
|