sh testsuite: create hush-redir/* and move files around
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
11
shell/hush_test/hush-redir/redirA.tests
Executable file
11
shell/hush_test/hush-redir/redirA.tests
Executable file
@@ -0,0 +1,11 @@
|
||||
x="tmp11:tmp22"
|
||||
|
||||
# Bug was incorrectly expanding variables in >redir
|
||||
echo "${x%:*}" >"${x%:*}"
|
||||
echo tmp1*
|
||||
rm tmp1*
|
||||
|
||||
# Also try unquoted
|
||||
echo "${x%:*}" >${x%:*}
|
||||
echo tmp1*
|
||||
rm tmp1*
|
||||
Reference in New Issue
Block a user