var_expand_in_redir.tests 289 B

12345678910111213
  1. if test $# = 0; then
  2. exec "$THIS_SH" "$0" abc "d e"
  3. fi
  4. echo TEST1 >"$1.out"
  5. echo TEST2 >"$2.out"
  6. # bash says: "$@.out": ambiguous redirect
  7. # ash handles it as if it is '$*' - we do the same
  8. echo TEST3 >"$@.out"
  9. cat abc.out "d e.out" "abc d e.out"
  10. rm abc.out "d e.out" "abc d e.out"