The problem is that if there's no stdin and no command line args then the script just waits for input.
Just like cat, perl, sort, etc, etc, etc.
This is standard behaviour. Why does it matter to you? Both using -t and implementing a command line option that says there is no STDIN have their drawbacks.
In reply to Re: Testing <>
by ikegami
in thread Testing <>
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |