redir_exec2.tests 143 B

12345678910
  1. cd /proc/$$
  2. exec 5>/dev/null
  3. exec 4>/dev/null
  4. exec 3>/dev/null
  5. ls -1 fd/5
  6. ls -1 fd/4
  7. ls -1 fd/3
  8. exec 5>&-
  9. test -e fd/5 && echo BUG
  10. echo One:$?