summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars/var-pattern-replacement-in-parameter-expansion-1.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2020-02-16 19:02:22 +0100
committerDenys Vlasenko2020-02-16 19:24:33 +0100
commite368d851e78a2eb2aee50b8bad29dcc301feec65 (patch)
tree7a047d689cc8fe4c0890ad95fb088ecca8df72c3 /shell/hush_test/hush-vars/var-pattern-replacement-in-parameter-expansion-1.tests
parent4ace38580927b3b402b6b35ab50893dbfd5f77c3 (diff)
downloadbusybox-e368d851e78a2eb2aee50b8bad29dcc301feec65.zip
busybox-e368d851e78a2eb2aee50b8bad29dcc301feec65.tar.gz
ash: eval: Use the correct expansion mode for fd redirection
Upstream comment: Date: Mon, 19 Nov 2018 18:00:32 +0800 eval: Use the correct expansion mode for fd redirection It has been reported that echo test >&$EMPTY_VARIABLE causes dash to segfault. This is a symptom of the bigger problem that dash tries to perform pathname expansion as well as field splitting on the word after >& and <&. This is wrong and this patch fixes it to use the same expansions as done on a normal redirection. Reported-by: Andrej Shadura <andrew.shadura@collabora.co.uk> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars/var-pattern-replacement-in-parameter-expansion-1.tests')
0 files changed, 0 insertions, 0 deletions