aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-10-01 17:30:21 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-10-01 17:30:21 +0200
commitcc0056db5c82b7965c019599f59f8f1d9e8d52fd (patch)
tree9d1b2859ff8bb2761f3f674f89657f935ae60150 /shell
parent4d12e944eaf54f0fd0bbb6b70abbb77648cca795 (diff)
downloadbusybox-cc0056db5c82b7965c019599f59f8f1d9e8d52fd.tar.gz
ash testsuite: remove two inadvertent bashisms
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rwxr-xr-xshell/ash_test/ash-read/read_r.tests6
-rwxr-xr-xshell/ash_test/ash-signals/signal1.tests2
2 files changed, 5 insertions, 3 deletions
diff --git a/shell/ash_test/ash-read/read_r.tests b/shell/ash_test/ash-read/read_r.tests
index 2c4cc6106..1f0a18afc 100755
--- a/shell/ash_test/ash-read/read_r.tests
+++ b/shell/ash_test/ash-read/read_r.tests
@@ -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")
diff --git a/shell/ash_test/ash-signals/signal1.tests b/shell/ash_test/ash-signals/signal1.tests
index 28bfc6a46..61943467a 100755
--- a/shell/ash_test/ash-signals/signal1.tests
+++ b/shell/ash_test/ash-signals/signal1.tests
@@ -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