nt9856x/BSP/busybox/shell/ash_test/ash-redir/redirA.tests
2023-03-28 15:07:53 +08:00

12 lines
180 B
Plaintext
Executable File

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*