Ron Yorston ea7d2f6ec0 ash: fix error code regression
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>
2017-01-03 11:18:23 +01:00
..
2010-07-26 01:49:12 +02:00
2009-05-23 17:00:13 +02:00
2016-09-29 01:44:17 +02:00
2016-09-29 01:44:17 +02:00
2017-01-03 11:18:23 +01:00
2017-01-03 11:18:23 +01:00
2009-04-20 22:04:21 +00:00
2009-04-20 22:04:21 +00:00
2009-04-10 23:23:41 +00:00
2009-04-10 23:23:41 +00:00
2009-04-10 23:23:41 +00:00
2009-04-10 23:23:41 +00:00
2010-01-25 13:39:24 +01:00
2016-10-01 20:12:10 +02:00
2016-10-01 20:12:10 +02:00
2009-04-20 10:52:31 +00:00
2015-10-13 01:49:06 +02:00
2009-04-06 18:10:20 +00:00
2016-10-28 21:59:09 +02:00
2016-10-28 21:59:09 +02:00
2016-10-28 21:59:09 +02:00
2016-10-28 21:59:09 +02:00
2016-10-28 21:59:09 +02:00
2016-10-28 21:59:09 +02:00
2009-04-06 18:10:20 +00:00