3
0

redir5.tests 356 B

12345678910111213
  1. echo "Backgrounded pipes shall have their stdin redirected to /dev/null"
  2. # 1. bash does not redirect stdin to /dev/null if it is interactive.
  3. # hush does it always (this is allowed by standards).
  4. # 2. Failure will result in this script hanging
  5. cat & wait; echo Zero:$?
  6. # This does not work for bash! bash bug?
  7. cat | cat & wait; echo Zero:$?
  8. echo Done