busybox/shell/hush_test
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
..
hush-arith shell/math: deconvolute and explain ?: handling. Give better error message 2010-09-16 11:50:46 +02:00
hush-bugs hush: fix var3.tests 2016-10-02 21:12:02 +02:00
hush-glob hush testsuite: add glob_dir.tests 2016-10-02 15:20:57 +02:00
hush-heredoc ash: [PARSER] Recognise here-doc delimiters terminated by EOF 2016-10-26 16:26:45 +02:00
hush-invert hush testsuite: add many tests from ash testsuite 2016-10-02 17:39:31 +02:00
hush-leak hush: do not use ps -o in leak_argv1; do not hardcode path in negate 2009-08-12 14:21:30 +02:00
hush-misc ash: fix error code regression 2017-01-03 11:18:23 +01:00
hush-parsing sh testsuite: create hush-redir/* and move files around 2016-10-02 17:55:51 +02:00
hush-psubst hush: fix handling of \" in quoted/unquoted cmd 2010-09-12 15:05:39 +02:00
hush-quoting hush testsuite: add many tests from ash testsuite 2016-10-02 17:39:31 +02:00
hush-read hush testsuite: add many tests from ash testsuite 2016-10-02 17:39:31 +02:00
hush-redir sh testsuite: sync ash-redir/ and hush-redir/ 2016-10-02 18:32:52 +02:00
hush-signals typo fixes 2016-10-26 13:15:35 +02:00
hush-standalone hush testsuite: add many tests from ash testsuite 2016-10-02 17:39:31 +02:00
hush-vars ash: [PARSER] Fix parsing of ${##1} 2016-10-26 15:56:53 +02:00
hush-z_slow hush: plug a memory leak 2010-01-12 06:47:39 +01:00
.gitignore hush_test: ignore generated files 2009-05-21 17:45:26 -04:00
run-all hush: fix a bug in FEATURE_SH_STANDALONE=y config. Closes 9186 2016-08-19 18:43:06 +02:00