summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-redir/redirA.tests
blob: 56833f9386a97305e8cdc1b078761277e8e19a5d (plain)
1
2
3
4
5
6
7
8
9
10
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*