redirA.tests 180 B

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