Date: Thu, 14 Sep 2000 15:11:38 -0400 (EDT) From: Donn Miller <dmmiller@lcp196.cvzoom.net> To: John Baldwin <jhb@pike.osd.bsdi.com> Cc: current@FreeBSD.org Subject: Re: Fdescfs updates--coming to a devfs near you! Message-ID: <Pine.LNX.4.21.0009141504000.631-100000@lcp196.cvzoom.net> In-Reply-To: <200009141855.LAA83998@pike.osd.bsdi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Sep 2000, John Baldwin wrote: > Poul-Henning Kamp wrote: > > In message <20000914123945.A32524@ringwraith.office1.bg>, Peter Pentchev writes > > > > 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?? Actually, I think it should be the other way around: if anything should go, it's the use of '-' in programs/scripts. The only advantage is that it saves keystrokes. I agree, /dev/std{in,out} is a very neat and elegant way of working with stdin/out. If anything is the kludge, it's '-', and it's really vague as to what it means. With /dev/std{in,out}, there's no doubt as to what's going on with file ops. Plus, it's the unix way (tm) of doing things. Almost all Unices have this, don't they? This means there's likely to be some cross-platform shell scripts that use those things. - Donn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0009141504000.631-100000>