[EMAIL PROTECTED] wrote:
>> > XXX=10; { XXX=20; } | read; echo $XXX
>
> It's clear that 'read' is executed as an separate process and its
> result (REPLY variable value) is lost but 'XXX=20'  command is done by
> the same process as 'XXX=10'.

No, every element of a pipeline is executed in its own process.  So
the only commands that are executed in the main shell process are
"XXX=10" and "echo $XXX".


paul


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to