<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/shell/hush_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>hush: fix "wait PID"</title>
<updated>2016-10-28T19:59:09+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-10-28T19:57:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7e6753609d102b68a625072fb1660065246a54e2'/>
<id>urn:sha1:7e6753609d102b68a625072fb1660065246a54e2</id>
<content type='text'>
It was not properly interruptible, and did not update job status
(the exited processes were still thought of as running).

function                                             old     new   delta
process_wait_result                                    -     453    +453
wait_for_child_or_signal                               -     199    +199
run_list                                             996    1002      +6
checkjobs_and_fg_shell                                41      43      +2
builtin_wait                                         328     215    -113
checkjobs                                            516     142    -374
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/2 up/down: 660/-487)          Total: 173 bytes

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>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>
<entry>
<title>hush testsuite: fix another false positive</title>
<updated>2016-10-02T22:14:26+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-10-02T22:14:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9793fc576afa25715cf75c121dbfd9da1e053b0a'/>
<id>urn:sha1:9793fc576afa25715cf75c121dbfd9da1e053b0a</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
