hush: fix misparsing of "... do eval a= ...". Closes 3721
[oweals/busybox.git] / shell / hush_test / hush-misc / redir1.tests
index 7e204514c6cb42ac7ea3795b623b2c34c8a3566e..ef2fbfb77b24fe4935c49836805c2dce17556106 100755 (executable)
@@ -1,3 +1,9 @@
+rm shell_test_$$ 2>/dev/null
+var=bad
+>shell_test_$$ var=ok
+echo "Test 0:  var:$var"
+test -f shell_test_$$ && echo "File created:ok"
+
 rm shell_test_$$ 2>/dev/null
 var=bad
 var=ok >shell_test_$$
@@ -21,7 +27,7 @@ var=ok
 { var=bad >shell_test_$$; } &
 # cant use usleep as it isnt standard in $PATH --
 # we fail when testing busybox compiled solely as "hush"
-sleep 1
+wait
 echo "Test 4:  var:$var"
 test -f shell_test_$$ && echo "File created:ok"