mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2025-02-25 14:53:15 +00:00

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>
6 lines
208 B
Plaintext
Executable File
6 lines
208 B
Plaintext
Executable File
a="q w e r t y"
|
|
for v in ${a%y}; do echo Unquoted%:"<$v>"; done
|
|
for v in ${a#q}; do echo Unquoted#:"<$v>"; done
|
|
for v in "${a%y}"; do echo Quoted%:"<$v>"; done
|
|
for v in "${a#q}"; do echo Quoted#:"<$v>"; done
|