<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/shell/ash_test/ash-misc/exitcode2.tests, branch cron_changes</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=cron_changes</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=cron_changes'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2017-01-03T10:18:23+00:00</updated>
<entry>
<title>ash: fix error code regression</title>
<updated>2017-01-03T10:18:23+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2017-01-03T10:18:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=ea7d2f6ec0596789fc5b2e3fca3b7a602bfa2c26'/>
<id>urn:sha1:ea7d2f6ec0596789fc5b2e3fca3b7a602bfa2c26</id>
<content type='text'>
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 &lt;xxx
   $ echo $?
   0

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Reported-by: Martijn Dekker &lt;martijn@inlv.org&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
