ash: [EXPAND] Do not split quoted VSLENGTH and VSTRIM
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 1 Oct 2016 18:55:02 +0000 (20:55 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 1 Oct 2016 18:55:02 +0000 (20:55 +0200)
commit88ac97d02dfeb4d3bd9efda45ceb64608cfedd53
treed6ce66f90972a00ff95f811bd10a34b89bb7ea6b
parentc4d4380a0700542796887b2e6dbd41e9a7916997
ash: [EXPAND] Do not split quoted VSLENGTH and VSTRIM

Upstream patch:

    Date: Wed, 8 Oct 2014 15:42:08 +0800
    [EXPAND] Do not split quoted VSLENGTH and VSTRIM

    Currently VSLENGTH and VSTRIM* are field-split even within quotes.
    This is obviously wrong.  This patch fixes that.

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