<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/shell/ash_test, branch noconsole</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=noconsole</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=noconsole'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2017-01-07T09:16:56+00:00</updated>
<entry>
<title>ash: fix open fds leaking in redirects. Closes 9561</title>
<updated>2017-01-07T09:16:56+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2017-01-07T09:15:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=86584e134eec1a81298149f8c04c77727f6dccb9'/>
<id>urn:sha1:86584e134eec1a81298149f8c04c77727f6dccb9</id>
<content type='text'>
commit e19923f6652a638ac39c84012e97f52cf5a7568e deleted clearredir()
call in shellexec():

	ash: [REDIR] Remove redundant CLOEXEC calls
	Upstream commit:

	Now that we're marking file descriptors as CLOEXEC in savefd, we no longer
	need to close them on exec or in setinputfd.

but it missed one place where we don't set CLOEXEC. Fixing this.

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<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>
<entry>
<title>hush: rework "wait %jobspec" to work in non-interactive shells too</title>
<updated>2016-11-07T23:59:29+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-11-07T23:59:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=02affb4afd4a71b0c1ca6286f9b0f6bf3b10e0a1'/>
<id>urn:sha1:02affb4afd4a71b0c1ca6286f9b0f6bf3b10e0a1</id>
<content type='text'>
Also add tests. wait5.tests so far fails (but works for ash and dash).

function                                             old     new   delta
builtin_wait                                         305     283     -22

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush: allow { cmd } to not be terminated by semicolon in some cases</title>
<updated>2016-11-04T17:46:14+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-11-04T17:46:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=672a55e606fc50e4ffe7810bd0d9cd1cf9b980a3'/>
<id>urn:sha1:672a55e606fc50e4ffe7810bd0d9cd1cf9b980a3</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: fix interactive "command eval STRING" exiting on errors.</title>
<updated>2016-10-28T13:43:50+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-10-28T13:43:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d81e9f5093b222369d510d0b1c0587a411e4c83e'/>
<id>urn:sha1:d81e9f5093b222369d510d0b1c0587a411e4c83e</id>
<content type='text'>
This bug is also present in current dash

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: [PARSER] Recognise here-doc delimiters terminated by EOF</title>
<updated>2016-10-26T14:26:45+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-10-26T14:26:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=350e686f3b04f41f623316706094f0e18a10c1cf'/>
<id>urn:sha1:350e686f3b04f41f623316706094f0e18a10c1cf</id>
<content type='text'>
Upstream commit 1:

    Date: Wed, 26 Sep 2007 17:14:16 +0800
    [PARSER] Recognise here-doc delimiters terminated by EOF

    Previously dash required a &lt;newline&gt; character to be present in order for
    a here-document delimiter to be detected.  Allowing EOF in the absence of
    a &lt;newline&gt; to play the same purpose allows some intuitive scripts to
    succeed.  POSIX seems to be silence on this so this should be OK.

    Test case:

        eval 'cat &lt;&lt;- NOT
                test
        NOT'
        echo OK

    Old result:

        test
        NOTOK

    New result:

        test
        OK

Upstream commit 2:

    Date: Sat, 20 Oct 2007 18:49:31 +0800
    [PARSER] Fix here-doc corruption

    The change

        [PARSER] Recognise here-doc delimiters terminated by EOF

    introduced a regerssion whereby lines starting with eofmark but are not equal
    to eofmark would be corrupted.  This patch fixes it.

    Test case:

        cat &lt;&lt; _ACEOF
        _ASBOX
        _ACEOF

    Old result:

        SASBOX

    New result:

        _ASBOX

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: [PARSER] Fix parsing of ${##1}</title>
<updated>2016-10-26T13:56:53+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-10-26T13:56:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f15aa57a7f5edcbf3098873b8798c0ea7f496ed7'/>
<id>urn:sha1:f15aa57a7f5edcbf3098873b8798c0ea7f496ed7</id>
<content type='text'>
Upstream commit:

    Date: Thu, 4 Oct 2007 22:15:10 +0800
    [PARSER] Fix parsing of ${##1}

    Previously dash treated ${##1} as a length operation.  This patch fixes that.

    Test case:

        set -- a
        echo ${##1}OK

    Old result:

        1OK

    New result:

        OK

This was a real bug in ash (but not in hush).

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>typo fixes</title>
<updated>2016-10-26T11:15:35+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-10-26T11:15:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=4135a75ab05f2546f4f9e9b3e69d71f477efc1e8'/>
<id>urn:sha1:4135a75ab05f2546f4f9e9b3e69d71f477efc1e8</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash testsuite: fix false positives</title>
<updated>2016-10-07T02:07:05+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-10-07T02:07:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d43be8759100d34849bc6dbd94b1e20b81615d35'/>
<id>urn:sha1:d43be8759100d34849bc6dbd94b1e20b81615d35</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sh testsuite: add tests for exitcode on failure to exec</title>
<updated>2016-10-02T22:55:34+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-10-02T22:55:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c775f829db2e25ffa384ffe1b6b6859cdddfa935'/>
<id>urn:sha1:c775f829db2e25ffa384ffe1b6b6859cdddfa935</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
