mirror of
https://github.com/sheumann/hush.git
synced 2024-11-15 12:08:09 +00:00
ea7d2f6ec0
The commit 'ash,hush: set exit code 127 in "sh /does/not/exist" case' only partly implemented the dash commit '[ERROR] Allow the originator of EXERROR to set the exit status'. This resulted in incorrect error codes for a syntax error: $ ) $ echo $? 0 or a redirection error for a special builtin: $ rm -f xxx $ eval cat <xxx $ echo $? 0 Signed-off-by: Ron Yorston <rmy@pobox.com> Reported-by: Martijn Dekker <martijn@inlv.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
5 lines
108 B
Plaintext
5 lines
108 B
Plaintext
hush: syntax error: unexpected )
|
|
Done:2
|
|
hush: can't open 'does_not_exist': No such file or directory
|
|
Done:1
|