summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc
diff options
context:
space:
mode:
authorDenys Vlasenko2018-01-12 17:58:20 +0100
committerDenys Vlasenko2018-01-12 17:58:20 +0100
commit6606c519efa9a74c53bf05e53e07a8d8f0eb37c7 (patch)
tree18a2e20a9a5e22b967d6f0d42342687b2622210b /shell/hush_test/hush-misc
parentafb73a25ea9b046f0fb2fa83a6d75b15bd952716 (diff)
downloadbusybox-6606c519efa9a74c53bf05e53e07a8d8f0eb37c7.zip
busybox-6606c519efa9a74c53bf05e53e07a8d8f0eb37c7.tar.gz
hush: add command2.tests from ash tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-misc')
-rw-r--r--shell/hush_test/hush-misc/command2.right2
-rwxr-xr-xshell/hush_test/hush-misc/command2.tests6
2 files changed, 8 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/command2.right b/shell/hush_test/hush-misc/command2.right
new file mode 100644
index 0000000..e3214f0
--- /dev/null
+++ b/shell/hush_test/hush-misc/command2.right
@@ -0,0 +1,2 @@
+test1
+hush: can't execute './test2.sh': Permission denied
diff --git a/shell/hush_test/hush-misc/command2.tests b/shell/hush_test/hush-misc/command2.tests
new file mode 100755
index 0000000..9d9de9a
--- /dev/null
+++ b/shell/hush_test/hush-misc/command2.tests
@@ -0,0 +1,6 @@
+echo "echo test1; ./test2.sh" >test1.sh
+echo "echo test2" >test2.sh
+
+command . ./test1.sh
+
+rm -f test1.sh test2.sh