redir.tests 120 B

123456
  1. # test: closed fds should stay closed
  2. exec 1>&-
  3. echo TEST >TEST
  4. echo JUNK # lost: stdout is closed
  5. cat TEST >&2
  6. rm TEST