Re: go-pear: Why read < /dev/tty?

From: Date: Wed, 03 Apr 2002 09:01:26 +0000
Subject: Re: go-pear: Why read < /dev/tty?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5180@lists.php.net to get a copy of this message
Alexander Skwar wrote: > > Hi! > > I'm right now checking out go-pear and found that it does "read < > /dev/tty". This will make the script be "unscriptable", that is, I > cannot pipe default values to it. And I also don't understand why it > does this in the first place. read defaults to reading from stdin and > stdin is mostly /dev/tty, isn't it? It can't read from stdin as this channel is already handling the data comming from the pipe (lynx ... | sh). For making it a real command we should just add params. Tomas V.V.Cox

« previous php.pear.dev (#5180) next »