data/method/busybox/busybox-1.36.0/shell/ash_test/ash-redir/redirA.tests

12 lines
180 B
Plaintext
Raw Normal View History

2024-01-29 10:44:43 +08:00
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*