summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-redir/redirA.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-redir/redirA.tests')
-rwxr-xr-xshell/hush_test/hush-redir/redirA.tests11
1 files changed, 11 insertions, 0 deletions
diff --git a/shell/hush_test/hush-redir/redirA.tests b/shell/hush_test/hush-redir/redirA.tests
new file mode 100755
index 000000000..56833f938
--- /dev/null
+++ b/shell/hush_test/hush-redir/redirA.tests
@@ -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*