ash: [EXPAND] Split unquoted $@/$* correctly when IFS is set but empty
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 1 Oct 2016 18:35:10 +0000 (20:35 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 1 Oct 2016 18:35:10 +0000 (20:35 +0200)
commitc4d4380a0700542796887b2e6dbd41e9a7916997
treefd6010b5cc072a098e868dfd9bec105ca9bbabcd
parenta2633aa8197a866a7c00406f7eb7e9c9b4554166
ash: [EXPAND] Split unquoted $@/$* correctly when IFS is set but empty

Upstream commit:

    Date: Wed, 8 Oct 2014 15:24:23 +0800
    [EXPAND] Split unquoted $@/$* correctly when IFS is set but empty

    Currently we do not field-split $@/$* when it isn't quoted and IFS
    is set but empty.  This is obviously wrong.  This patch fixes this.

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 [new file with mode: 0644]
shell/ash_test/ash-vars/var_wordsplit_ifs1.tests [new file with mode: 0755]
shell/hush_test/hush-vars/var_wordsplit_ifs1.right [new file with mode: 0644]
shell/hush_test/hush-vars/var_wordsplit_ifs1.tests [new file with mode: 0755]