On Wed, Oct 26, 2005 at 01:31:38AM +0200, Christian Boltz wrote:
> Am Dienstag, 25. Oktober 2005 23:50 schrieb Eberhard Moenkeberg:
> > If I would need it, I would do
> >
> > grep ^MemTotal /proc/meminfo | (read a b c; echo $b )
> >
> > and here bash needs the "(...)" to force the subprocess forking at
> > the right point...
> 
> No, it does *not* need a subprocess. You just need to expand the 
> pipe ;-)
> 
> grep ^MemTotal /proc/meminfo | { read a b c; echo $b ; }
> 
> Topped again :-)

No.  In this case the implementation requires forking bash like in the example
above to handle the fifo queue thus there is actually no difference here.

Robert

-- 
Robert Schiele                  Tel.: +49-621-181-2214
Dipl.-Wirtsch.informatiker      mailto:[EMAIL PROTECTED]

Attachment: pgpAF8QDBWIi6.pgp
Description: PGP signature

Reply via email to