<feed xmlns='http://www.w3.org/2005/Atom'>
<title>forks/busybox/shell/hush_test/hush-glob, branch master</title>
<subtitle>Busybox tree with Carbs Linux patches
</subtitle>
<id>https://git.carbslinux.org/forks/busybox/atom?h=master</id>
<link rel='self' href='https://git.carbslinux.org/forks/busybox/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/'/>
<updated>2018-08-07T16:58:02+00:00</updated>
<entry>
<title>ash: expand: Do not quote backslashes in unquoted parameter expansion</title>
<updated>2018-08-07T16:58:02+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2018-08-07T16:54:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=eb54ca8be0b45a101f9bdcf6efa26645c6b94a08'/>
<id>urn:sha1:eb54ca8be0b45a101f9bdcf6efa26645c6b94a08</id>
<content type='text'>
Upstream commit:

    Date: Wed, 28 Mar 2018 18:37:51 +0800
    expand: Do not quote backslashes in unquoted parameter expansion

    Here is a better example:

        a="/*/\nullx" b="/*/\null"; printf "%s\n" $a $b

    dash currently prints

        /*/\nullx
        /*/\null

    bash prints

        /*/\nullx
        /dev/null

    You may argue the bash behaviour is inconsistent but it actually
    makes sense.  What happens is that quote removal only applies to
    the original token as seen by the shell.  It is never applied to
    the result of parameter expansion.

    Now you may ask why on earth does the second line say "/dev/null"
    instead of "/dev/\null".  Well that's because it is not the quote
    removal step that removed the backslash, but the pathname expansion.

    The fact that the /de\v does not become /dev even though it exists
    is just the result of the optimisation to avoid unnecessarily
        calling stat(2).  I have checked POSIX and I don't see anything
    that forbids this behaviour.

    So going back to dash yes I think we should adopt the bash behaviour
    for pathname expansion and keep the existing case semantics.

    This patch does exactly that.  Note that this patch does not work
    unless you have already applied

        https://patchwork.kernel.org/patch/10306507/

    because otherwise the optimisation mentioned above does not get
    detected correctly and we will end up doing quote removal twice.

    This patch also updates expmeta to handle naked backslashes at
    the end of the pattern which is now possible.

    Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;

function                                             old     new   delta
expmeta                                              618     653     +35
memtodest                                            146     147      +1

Tested to work with both ASH_INTERNAL_GLOB on and off.

hush does not handle this correctly.

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush: never glob result of dquoted "${v:+/bin/c*}"</title>
<updated>2018-07-20T17:29:41+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2018-07-20T17:29:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=f36caa4071bbb5bb6d098ced8116accc65370dd8'/>
<id>urn:sha1:f36caa4071bbb5bb6d098ced8116accc65370dd8</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush testsuite: add glob_dir.tests</title>
<updated>2016-10-02T13:20:57+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-10-02T13:20:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=ae4bd34e6bc54cb6b9277f2ec231892517ed1c68'/>
<id>urn:sha1:ae4bd34e6bc54cb6b9277f2ec231892517ed1c68</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash,hush: add a test which fails for ash since commit 549deab</title>
<updated>2015-09-04T01:33:02+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2015-09-04T01:33:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=26c423d9a8d455af59cbce70ff932c95842a2ba1'/>
<id>urn:sha1:26c423d9a8d455af59cbce70ff932c95842a2ba1</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush: add brace expansion testcase</title>
<updated>2010-10-03T15:07:57+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2010-10-03T15:07:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=2bcba5cc53a171fba2d9d0b5185f45d8026a2657'/>
<id>urn:sha1:2bcba5cc53a171fba2d9d0b5185f45d8026a2657</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush: fix globbing+backslashes in unquoted $var expansion</title>
<updated>2010-09-06T08:26:37+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>dvlasenk@redhat.com</email>
</author>
<published>2010-09-06T08:26:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=c49d2d97939d77be3d1f3bbbbf9db30a55771c15'/>
<id>urn:sha1:c49d2d97939d77be3d1f3bbbbf9db30a55771c15</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;dvlasenk@redhat.com&gt;
</content>
</entry>
<entry>
<title>hush: add testsuite for "no globbing in redirection" rule.</title>
<updated>2008-06-18T16:29:32+00:00</updated>
<author>
<name>Denis Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2008-06-18T16:29:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=ab876cd107fe6ca274f58bae3264396745d8e5f9'/>
<id>urn:sha1:ab876cd107fe6ca274f58bae3264396745d8e5f9</id>
<content type='text'>
 simplify redirection habdling

</content>
</entry>
<entry>
<title>move glob_and_assign.tests from hush-bugs to hush-glob</title>
<updated>2008-06-17T07:26:52+00:00</updated>
<author>
<name>Denis Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2008-06-17T07:26:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=988339259fb74d81e2bd0f702503815f63edc972'/>
<id>urn:sha1:988339259fb74d81e2bd0f702503815f63edc972</id>
<content type='text'>
</content>
</entry>
<entry>
<title>hush: fix escaping of \[*?; add testsuites for these and for globbing</title>
<updated>2008-06-10T20:13:40+00:00</updated>
<author>
<name>Denis Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2008-06-10T20:13:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/busybox/commit/?id=43360e51781942730f91bb19821e3f8f1087e4fa'/>
<id>urn:sha1:43360e51781942730f91bb19821e3f8f1087e4fa</id>
<content type='text'>
</content>
</entry>
</feed>
