<feed xmlns='http://www.w3.org/2005/Atom'>
<title>forks/busybox/shell/hush_test/hush-misc, branch 1_33_stable</title>
<subtitle>Busybox tree with Carbs Linux patches
</subtitle>
<id>https://git.carbslinux.org/forks/busybox/atom?h=1_33_stable</id>
<link rel='self' href='https://git.carbslinux.org/forks/busybox/atom?h=1_33_stable'/>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/'/>
<updated>2020-12-25T18:08:16+00:00</updated>
<entry>
<title>typo fix</title>
<updated>2020-12-25T18:08:16+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2020-12-25T18:08:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=cad20ced8603f2d4c1ff13fbf01cdccc9cb1b7aa'/>
<id>urn:sha1:cad20ced8603f2d4c1ff13fbf01cdccc9cb1b7aa</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush: fix this case: echo "SCRIPT" | hush</title>
<updated>2020-12-25T18:01:49+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2020-12-25T18:01:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=1237d627e9fd996cc3d96ba72629371739fef776'/>
<id>urn:sha1:1237d627e9fd996cc3d96ba72629371739fef776</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush: output bash-compat killing signal names</title>
<updated>2020-10-24T02:26:43+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2020-10-24T02:26:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=e16f7eb5967b9a960f4600c20690af63fb830b60'/>
<id>urn:sha1:e16f7eb5967b9a960f4600c20690af63fb830b60</id>
<content type='text'>
This significantly syncronises ash-signals and hush-signals tests.

function                                             old     new   delta
process_wait_result                                  449     450      +1

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell: add testsuite for "wait $pid" waiting for other tasks</title>
<updated>2020-09-29T20:36:36+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2020-09-29T20:36:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=d4dd48f2948b006f4ccb7cc2b603fb3d00f90685'/>
<id>urn:sha1:d4dd48f2948b006f4ccb7cc2b603fb3d00f90685</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shells: fix exitcode_trapN tests to avoid races</title>
<updated>2020-02-26T08:05:52+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2020-02-26T08:05:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=9aa751b08ab03d6396f86c3df77937a19687981b'/>
<id>urn:sha1:9aa751b08ab03d6396f86c3df77937a19687981b</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush: make "exit" in trap use pre-trap exitcode - fix for nested trap</title>
<updated>2020-02-21T01:55:53+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2020-02-21T01:55:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=3ced804e3118d138781c3e4baa6bf1589b9f2dfd'/>
<id>urn:sha1:3ced804e3118d138781c3e4baa6bf1589b9f2dfd</id>
<content type='text'>
function                                             old     new   delta
check_and_run_traps                                  276     278      +2

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush: implement "return NUM in trap sets $? after trap"</title>
<updated>2020-02-20T15:37:59+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2020-02-20T15:37:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=bb095f483827567452ee3501779a84f36719288d'/>
<id>urn:sha1:bb095f483827567452ee3501779a84f36719288d</id>
<content type='text'>
function                                             old     new   delta
builtin_return                                        47      67     +20
check_and_run_traps                                  243     259     +16
run_pipe                                            1583    1597     +14
hush_main                                           1076    1086     +10
run_list                                            1054    1055      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 61/0)               Total: 61 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash,hush: testcase for "exit" without arguments in a trap</title>
<updated>2020-02-19T11:10:41+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2020-02-19T11:10:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=c91950f31532febe34e00ab20d3e5f462d9daa52'/>
<id>urn:sha1:c91950f31532febe34e00ab20d3e5f462d9daa52</id>
<content type='text'>
hush fails this one

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shells: add tests for backslashes in export VAR=VAL</title>
<updated>2019-05-14T17:15:20+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2019-05-14T17:15:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=63d765e666a8b23e3923acecdc41be71d5679439'/>
<id>urn:sha1:63d765e666a8b23e3923acecdc41be71d5679439</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: eval: Variable assignments on functions are no longer persistent</title>
<updated>2018-08-05T09:14:11+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2018-08-05T08:39:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=9abf53beb48b40e98d50fd35f445d6474af3a494'/>
<id>urn:sha1:9abf53beb48b40e98d50fd35f445d6474af3a494</id>
<content type='text'>
Upstream commit:

    Date: Wed, 4 Apr 2018 17:54:01 +0800
    eval: Variable assignments on functions are no longer persistent

    Dirk Fieldhouse &lt;fieldhouse@gmx.net&gt; wrote:
    &gt; In POSIX.1-2017 ("simultaneously IEEE Std 1003.1™-2017 and The Open
    &gt; Group Technical Standard Base Specifications, Issue 7")
    &gt; &lt;http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09&gt;,
    &gt; we read under '2.9.1 Simple Commands'
    &gt;
    &gt; "Variable assignments shall be performed as follows:
    &gt; ...
    &gt; -    If the command name is a standard utility implemented as a function
    &gt; (see XBD Utility), the effect of variable assignments shall be as if the
    &gt; utility was not implemented as a function.
    &gt; ...
    &gt; -    If the command name is a function that is not a standard utility
    &gt; implemented as a function, variable assignments shall affect the current
    &gt; execution environment during the execution of the function. It is
    &gt; unspecified:
    &gt;
    &gt;     *   Whether or not the variable assignments persist after the
    &gt; completion of the function
    &gt;
    &gt;     *   Whether or not the variables gain the export attribute during
    &gt; the execution of the function
    &gt;
    &gt;     *   Whether or not export attributes gained as a result of the
    &gt; variable assignments persist after the completion of the function (if
    &gt; variable assignments persist after the completion of the function)"

    POSIX used to require the current dash behaviour.  However, you're
    right that this is no longer the case.

    This patch will remove the persistence of the variable assignment.

    I have considered the exporting the variables during the function
    execution but have decided against it because:

    1) It makes the code bigger.
    2) dash has never done this in the past.
    3) You cannot use this portably anyway.

    Reported-by: Dirk Fieldhouse &lt;fieldhouse@gmx.net&gt;
    Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;

function                                             old     new   delta
evalcommand                                         1606    1635     +29
evalcase                                             313     317      +4
evalfun                                              280     268     -12
pushlocalvars                                         48       -     -48
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 2/1 up/down: 33/-60)            Total: -27 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
