aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-misc
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-04-02 21:00:59 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-04-02 21:00:59 +0200
commitf50e14632f7be56da7a38937c887f77812803f70 (patch)
tree0d657554780661ab752ec04bd8ba56f469b31d63 /shell/ash_test/ash-misc
parentabf755615e5f20c3bbe7534fa29c72fd684ea616 (diff)
downloadbusybox-f50e14632f7be56da7a38937c887f77812803f70.tar.gz
ash: parser: Fix parameter expansion inside inner double quotes
Upstream email: parser: Fix parameter expansion inside inner double quotes The parsing of parameter expansion inside inner double quotes breaks because we never look for ENDVAR while innerdq is true. echo "${x#"${x+''}"''} This patch fixes it by pushing the syntax stack if innerdq is true and we enter a new parameter expansion. This patch also fixes a corner case where a bad substitution error occurs within arithmetic expansion. Reported-by: Denys Vlasenko <vda.linux@googlemail.com> Fixes: ab1cecb40478 (" parser: Add syntax stack for recursive...") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> function old new delta readtoken1 2880 2898 +18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-misc')
0 files changed, 0 insertions, 0 deletions