From owner-freebsd-hackers Fri Sep 15 19:50:33 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id D242937B42C; Fri, 15 Sep 2000 19:50:26 -0700 (PDT) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.0/8.11.0) with ESMTP id e8G2n7v32143; Sat, 16 Sep 2000 03:49:07 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.0/8.11.0) with ESMTP id e8G2n3n02415; Sat, 16 Sep 2000 03:49:03 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200009160249.e8G2n3n02415@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Poul-Henning Kamp Cc: Ben Smithurst , Peter Pentchev , Julian Elischer , Chris Costello , hackers@FreeBSD.org, current@FreeBSD.org, brian@Awfulhak.org Subject: Re: Fdescfs updates--coming to a devfs near you! In-Reply-To: Message from Poul-Henning Kamp of "Thu, 14 Sep 2000 14:37:06 +0200." <56645.968935026@critter> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 16 Sep 2000 03:49:02 +0100 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > The majority of these programs could be handled by adding knowledge > of "-" as a magic filename to fopen(3). [.....] > I would argue that the programs and the scripts that call them are > already broken, but hey... So (just to add fuel to the mass opposition), do this without temporary files: count=$(program | tee /dev/stderr | wc -l) exit $count But then, you also said: > At the same time I would really love if we implemented "|.*" to mean > "do an popen(3)" instead. so I guess this could result in count=$(program |. cat | wc -l) exit $count (substitute correct "|.*" syntax - whatever that is). > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD coreteam member | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message