From owner-freebsd-current Thu Sep 14 12:11:51 2000 Delivered-To: freebsd-current@freebsd.org Received: from ns.cvzoom.net (ns.cvzoom.net [208.226.154.2]) by hub.freebsd.org (Postfix) with SMTP id 795C037B422 for ; Thu, 14 Sep 2000 12:11:48 -0700 (PDT) Received: (qmail 32192 invoked from network); 14 Sep 2000 19:11:39 -0000 Received: from lcp196.cvzoom.net (208.230.68.196) by ns.cvzoom.net with SMTP; 14 Sep 2000 19:11:39 -0000 Date: Thu, 14 Sep 2000 15:11:38 -0400 (EDT) From: Donn Miller To: John Baldwin Cc: current@FreeBSD.org Subject: Re: Fdescfs updates--coming to a devfs near you! In-Reply-To: <200009141855.LAA83998@pike.osd.bsdi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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