Poul-Henning Kamp wrote:
> In message <[EMAIL PROTECTED]>, Peter Pentchev writes
> :
> >On Thu, Sep 14, 2000 at 01:12:10AM -0700, Julian Elischer wrote:
> >> I've never thought of a use for fdescfs...
> >
> >Well.. just a trivial example - imagine a program which takes a filename
> >as an argument; imagine yourself trying to pipe something into it -
> >passing /dev/fd/0 as a filename to process would do the trick.
> 
> I must admit that I think in general that /dev/std{in,out,err} and /dev/fd
> is bogus.  It looks like something which happened "because we can" more
> than something which has a legitimate need.

How about the fact that the printing chapter in the Handbook uses /dev/fd/0
in its example of setting up a print filter using ghostscript since gs
doesn't read from stdin by default or use '-' for that purpose.  Hmmm??

> If anything I would propose we ditch it...

Tools, not policy, as you are so fond of saying.

-- 

John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to