From 6606c519efa9a74c53bf05e53e07a8d8f0eb37c7 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 12 Jan 2018 17:58:20 +0100 Subject: hush: add command2.tests from ash tests Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-misc/command2.right | 2 ++ shell/hush_test/hush-misc/command2.tests | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 shell/hush_test/hush-misc/command2.right create mode 100755 shell/hush_test/hush-misc/command2.tests diff --git a/shell/hush_test/hush-misc/command2.right b/shell/hush_test/hush-misc/command2.right new file mode 100644 index 000000000..e3214f0a9 --- /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 000000000..9d9de9a89 --- /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 -- cgit v1.2.3