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