On Tue, Aug 21, 2001 at 04:06:11PM -0400, Bob Showalter wrote:
> You might use -t to see if STDIN is a tty, but that wouldn't work for
> 
>    $ cat >sq.sh
>    squareroot 100
>    $ sh sq.sh          # STDIN is a tty, but should I read input?

I'm not seeing the purpose behind this example.  You're effectively invoking
the command from the command-line, but doing it through the extra step of a
shell script.  Why is checking for a tty on STDIN invalidated by this?

 
Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to