Displaying 1 result from an estimated 1 matches for "7c245aa8ed33".
2020 Mar 28
0
[klibc:update-dash] dash: parser: Do not push token back before parseheredoc
...is wrong when we're in a here-document as
it will clobber the saved token without resetting the tokpushback
flag.
This patch fixes it by doing the tokpushback after parseheredoc
and setting lasttoken again if parseheredoc was called.
Reported-by: Ron Yorston <rmy at frippery.org>
Fixes: 7c245aa8ed33 ("[PARSER] Simplify EOF/newline handling in...")
Fixes: ee5cbe9fd6bc ("[SHELL] Optimize dash -c "command" to avoid a fork")
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Tested-by: Simon Ser <contact at emersion.fr>
Signed-off-by: Ben Hutchings...