bug-bash
[Top][All Lists]
Advanced

[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 18:36:09 -0400
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

Philip Lijnzaad <lijnzaad@ebi.ac.uk> writes:
> (I was actually exploring why on earth echo foo | read bar; echo $bar does
> not work; I consider this a bug as well, perhaps not as 'blatant' as the
> above one, but puzzling nonetheless).

See question E4 in the FAQ; each command in a pipeline is run in a
separate process, so the process that performs the "read" commands is
not the process that performs the subsequent "echo" command.  You may
find this useful: read var < <(command)


paul



reply via email to

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