88ac97d02d
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>
14 lines
268 B
Plaintext
Executable File
14 lines
268 B
Plaintext
Executable File
# 123 chars long
|
|
a="\
|
|
01234567890123456789\
|
|
01234567890123456789\
|
|
01234567890123456789\
|
|
01234567890123456789\
|
|
01234567890123456789\
|
|
0123456789\
|
|
0123456789\
|
|
012"
|
|
|
|
IFS=2; for v in ${#a}; do echo Unquoted:"<$v>"; done
|
|
IFS=2; for v in "${#a}"; do echo Quoted:"<$v>"; done
|