[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: echo thing | read thang

From: Paul Jarc
Subject: Re: echo thing | read thang
Date: Wed, 01 Aug 2001 20:46:44 -0400
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

Philip Lijnzaad <address@hidden> writes:
> But the variable the things are read 'in to' are 'seen' by the
> parent shell. At least, that's the way it appears to be with the if
> and while constructs.

For "cmd1 | cmd2", cmd2 is run in a separate process.  In the case of
a compound command like if or while, the whole compound command is run
in the same subprocess.  So the read value is visible in the body of
the compound command, but not outside the pipeline.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]