busybox/shell/hush_test
Denys Vlasenko 440da97ed7 ash: expand: Fix ghost fields with unquoted $@/$*
Upstream commit:

    Date: Fri, 23 Mar 2018 18:58:47 +0800
    expand: Fix ghost fields with unquoted $@/$*

    You're right.  The proper fix to this is to ensure that nulonly
    is not set in varvalue for $*.  It should only be set for $@ when
    it's inside double quotes.

    In fact there is another bug while we're playing with $@/$*.
    When IFS is set to a non-whitespace character such as :, $*
    outside quotes won't remove empty fields as it should.

    This patch fixes both problems.

    Reported-by: Martijn Dekker <martijn@inlv.org>
    Suggested-by: Harald van Dijk <harald@gigawatt.nl>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

function                                             old     new   delta
argstr                                              1111    1113      +2
evalvar                                              571     569      -2
varvalue                                             579     576      -3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 2/-5)               Total: -3 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2018-08-05 14:29:58 +02:00
..
hush-arith
hush-bugs
hush-getopts
hush-glob hush: never glob result of dquoted "${v:+/bin/c*}" 2018-07-20 19:29:41 +02:00
hush-heredoc hush: add "heredoc.tests" from ash, tweak ash "is a function" message 2018-07-24 17:10:18 +02:00
hush-invert
hush-leak
hush-misc ash: eval: Variable assignments on functions are no longer persistent 2018-08-05 11:14:11 +02:00
hush-parsing
hush-psubst
hush-quoting hush: fix handling of '' in ${var:+ARG} 2018-07-20 17:36:06 +02:00
hush-read
hush-redir hush: fix nested redirects colliding with script fds 2018-07-24 16:54:41 +02:00
hush-signals
hush-standalone
hush-vars ash: expand: Fix ghost fields with unquoted $@/$* 2018-08-05 14:29:58 +02:00
hush-z_slow
.gitignore
run-all