hush: add command2.tests from ash tests
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 12 Jan 2018 16:58:20 +0000 (17:58 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 12 Jan 2018 16:58:20 +0000 (17:58 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush_test/hush-misc/command2.right [new file with mode: 0644]
shell/hush_test/hush-misc/command2.tests [new file with mode: 0755]

diff --git a/shell/hush_test/hush-misc/command2.right b/shell/hush_test/hush-misc/command2.right
new file mode 100644 (file)
index 0000000..e3214f0
--- /dev/null
@@ -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 (executable)
index 0000000..9d9de9a
--- /dev/null
@@ -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