[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] builtin read from pipe (echo foo | read) does not affect the r
Re: [BUG] builtin read from pipe (echo foo | read) does not affect the result variable
Wed, 12 Dec 2001 11:17:46 -0500
Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)
"Eddy Razanajatovo" <address@hidden> wrote:
> The workaround requires filespace space in a temporary directory, and
> commands do not perform concurrently, as in the following example:
> ) | (
> while read
> manage_a_result_line $REPLY
This does not require any temporary space in the filesystem. In this
specific case, the parentheses are unnecessary as well.
> Note that this affects bash even if it is invoked in Bourne-Shell mode using
> "sh" or "/bin/sh" instead of "bash".
> So the above example must be rewritten as:
No rewriting is necessary; the above will work.