mirror of
https://github.com/sheumann/hush.git
synced 2024-08-14 11:28:58 +00:00
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>
7 lines
115 B
Plaintext
Executable File
7 lines
115 B
Plaintext
Executable File
echo "echo test1; ./test2.sh" >test1.sh
|
|
echo "echo test2" >test2.sh
|
|
|
|
command . ./test1.sh
|
|
|
|
rm -f test1.sh test2.sh
|