ash testsuite: remove two inadvertent bashisms
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 1 Oct 2016 15:30:21 +0000 (17:30 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 1 Oct 2016 15:30:21 +0000 (17:30 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-read/read_r.tests
shell/ash_test/ash-signals/signal1.tests

index 2c4cc6106df22f475bacaebf75fcbd2973223b38..1f0a18afc40b329668be8a037453f3073014b6b5 100755 (executable)
@@ -1,2 +1,4 @@
-echo -e 'test\\\nbest' | (read reply; echo "$reply")
-echo -e 'test\\\nbest' | (read -r reply; echo "$reply")
+echo 'test\
+best' | (read reply; echo "$reply")
+echo 'test\
+best' | (read -r reply; echo "$reply")
index 28bfc6a46c31f696006924d3d9a181a919639a7c..61943467af815494e3db1281bd8d4480a48928c0 100755 (executable)
@@ -19,7 +19,7 @@ while $sleeping; do
     if wait %%; then
         echo "sleep completed"
         sleeping=false
-    elif [ $? == 127 ]; then
+    elif [ $? = 127 ]; then
         echo "BUG: no processes to wait for?!"
         sleeping=false
     else