> 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
> [EMAIL PROTECTED] | 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 <[EMAIL PROTECTED]> <brian@[uk.]FreeBSD.org>
<http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message
- Re: Fdescfs updates--coming to a devfs near you! Peter Pentchev
- Re: Fdescfs updates--coming to a devfs near you! Poul-Henning Kamp
- Re: Fdescfs updates--coming to a devfs near ... Ben Smithurst
- Re: Fdescfs updates--coming to a devfs n... Poul-Henning Kamp
- Re: Fdescfs updates--coming to a dev... Peter van Dijk
- Re: Fdescfs updates--coming to a dev... Robert Withrow
- Re: Fdescfs updates--coming to ... Poul-Henning Kamp
- Re: Fdescfs updates--coming to a dev... Mike Meyer
- Re: "!.*" [ was: Fdescfs u... patl
- Re: Fdescfs updates--coming to a dev... Bjoern Fischer
- Re: superduperopen(3) (was: Fdescfs ... Brian Somers
- Re: superduperopen(3) (was: Fde... Gerhard Sittig
- Re: superduperopen(3) (was: Fde... Peter van Dijk
- Re: superduperopen(3) (was: Fde... Gerhard Sittig
- RE: superduperopen(3) (was: Fde... Tony Johnson
- Re: Fdescfs updates--coming to a devfs n... Adrian Filipi-Martin
- Re: Fdescfs updates--coming to a dev... Bruce Evans
- Re: Fdescfs updates--coming to ... Adrian Filipi-Martin
- Re: Fdescfs updates--coming to a devfs near ... Frank Mayhar
- Re: Fdescfs updates--coming to a devfs near ... Garrett Wollman
- Re: Fdescfs updates--coming to a devfs n... Ben Smithurst
