I don't see why > would depend on the previous state of the file descriptors. If the fd is closed, > should reopen it.
And that's what I see happening:
$ ( echo foo ) 1>&- -bash: echo: write error: Bad file descriptor $ ( echo foo > /dev/tty ) 1>&- foo
In reply to Re^7: how to supress stdout
by ikegami
in thread how to supress stdout
by chuckd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |