> 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-hackers" in the body of the message
- Re: Fdescfs updates--coming to a devfs near you! Julian Elischer
- Re: Fdescfs updates--coming to a devfs near you! Peter Pentchev
- Re: Fdescfs updates--coming to a devfs near ... Poul-Henning Kamp
- Re: Fdescfs updates--coming to a devfs n... Ben Smithurst
- Re: Fdescfs updates--coming to a dev... Poul-Henning Kamp
- Re: Fdescfs updates--coming to ... Robert Withrow
- Re: Fdescfs updates--coming... Poul-Henning Kamp
- Re: Fdescfs updates--coming to ... Mike Meyer
- Re: "!.*" [ was: Fdes... patl
- Re: Fdescfs updates--coming to ... Bjoern Fischer
- Re: superduperopen(3) (was: Fde... Brian Somers
- Re: superduperopen(3) (was:... Gerhard Sittig
- Re: Fdescfs updates--coming to a dev... Adrian Filipi-Martin
- Re: Fdescfs updates--coming to ... Bruce Evans
- Re: Fdescfs updates--coming... Adrian Filipi-Martin
- Re: Fdescfs updates--coming to a devfs n... Frank Mayhar
- Re: Fdescfs updates--coming to a devfs n... John Baldwin
- Re: Fdescfs updates--coming to a devfs n... Garance A Drosihn
- Re: Fdescfs updates--coming to a devfs near you! Robert Watson
- Re: Fdescfs updates--coming to a devfs near you! Johnny Eriksson
- /proc & /dev/std* [Was: Fdescfs updates--com... Konstantin Chuguev

