ash: add tests for failures of the exec and command builtins
authorRon Yorston <rmy@pobox.com>
Fri, 30 Oct 2015 19:05:55 +0000 (19:05 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 30 Oct 2015 21:19:06 +0000 (22:19 +0100)
commite939856c8724e357b3a7ba878563bfc957605504
treeb33cd359245d40e776317f3dc8a13c3c36b53510
parentace833028f12c236ac6d148158d10129e542b985
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>
shell/ash_test/ash-misc/command2.right [new file with mode: 0644]
shell/ash_test/ash-misc/command2.tests [new file with mode: 0755]
shell/ash_test/ash-misc/exec.right [new file with mode: 0644]
shell/ash_test/ash-misc/exec.tests [new file with mode: 0755]