ash: expand: Fixed "$@" expansion when EXP_FULL is false
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 2 Oct 2016 00:46:56 +0000 (02:46 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 2 Oct 2016 00:46:56 +0000 (02:46 +0200)
commit0aaaa50b4551ab5912ccd95d66d633844eac6d85
tree1a1f9e34c690051a678fb048064e4e98cca3536b
parent42eeb255c1c5f35373d3e7bfa892e4f864cf1266
ash: expand: Fixed "$@" expansion when EXP_FULL is false

Upstream commit:

    Date: Thu, 1 Jan 2015 07:53:10 +1100
    expand: Fixed "$@" expansion when EXP_FULL is false

    The commit 3c06acdac0b1ba0e0acdda513a57ee6e31385dce ([EXPAND]
    Split unquoted $@/$* correctly when IFS is set but empty) broke
    the case where $@ is in quotes and EXP_FULL is false.

    In that case we should still emit IFS as field splitting is not
    performed.

Reported-by: Juergen Daubert <jue@jue.li>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c
shell/ash_test/ash-vars/var_wordsplit_ifs1.right
shell/ash_test/ash-vars/var_wordsplit_ifs1.tests
shell/hush_test/hush-vars/var_wordsplit_ifs1.right
shell/hush_test/hush-vars/var_wordsplit_ifs1.tests