in reply to Reading in from CLI (UNIX)
Many systems will behave as you expect if you write file descriptor 0 or read file descriptor 1. At least if they're connected to your terminal, /dev/tty. As soon as you redirect, you'll get something else. So "don't do that".<diana 248 [10:08] /tmp >perl -le 'print fileno STDIN; print fileno ST +DOUT; print fileno STDERR' 0 1 2
|
|---|