1x="tmp11:tmp22" 2 3# Bug was incorrectly expanding variables in >redir 4echo "${x%:*}" >"${x%:*}" 5echo tmp1* 6rm tmp1* 7 8# Also try unquoted 9echo "${x%:*}" >${x%:*} 10echo tmp1* 11rm tmp1* 12