Actually, the -t test will be wrong in most cases, since for my application usually is not connected to a terminal.
Your arguments are basically correct - thank you for pointing it out. Fortunately, in my case I have control over whether or not stdout will be dup'ed, so this is no problem.In reply to Re^2: Testing whether a file handle is attached to STDOUT
by rovf
in thread Testing whether a file handle is attached to STDOUT
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |