summaryrefslogtreecommitdiffhomepage
path: root/shell/ash_test/ash-misc/exec.right
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-10-30 19:05:55 +0000
committerDenys Vlasenko <vda.linux@googlemail.com>2015-10-30 22:19:06 +0100
commite939856c8724e357b3a7ba878563bfc957605504 (patch)
treeb33cd359245d40e776317f3dc8a13c3c36b53510 /shell/ash_test/ash-misc/exec.right
parentace833028f12c236ac6d148158d10129e542b985 (diff)
ash: add tests for failures of the exec and command builtins
The exec builtin should return an exit status of 127 if the command can't be found. It doesn't: it returns 2. If the command builtin is used to source a script that runs a second script that doesn't exist ash should issue an error. Instead it seg faults. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-misc/exec.right')
-rw-r--r--shell/ash_test/ash-misc/exec.right2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/exec.right b/shell/ash_test/ash-misc/exec.right
new file mode 100644
index 000000000..1741a38dd
--- /dev/null
+++ b/shell/ash_test/ash-misc/exec.right
@@ -0,0 +1,2 @@
+./exec.tests: exec: line 2: ./test1.sh: not found
+127