bug-bash
[Top][All Lists]
Advanced

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

Re: I think bash logic in a loop like : while [ condition] |read somevar


From: Chet Ramey
Subject: Re: I think bash logic in a loop like : while [ condition] |read somevar is flawed.
Date: Thu, 26 Dec 2013 18:22:19 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 12/25/13, 1:33 AM, Pierre Gaston wrote:

> If I remember correctly, POSIX allows the lastpipe behaviour.

It does, in its usual fashion: "each command of a multi-command pipeline
is in a subshell environment; as an extension, however, any or all
commands in a pipeline may be executed in the current environment."

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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