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

2013-12-30 Thread Suvayu Ali
Hi, On Thu, Dec 26, 2013 at 06:22:19PM -0500, Chet Ramey wrote: > 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 exte

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

2013-12-30 Thread Chet Ramey
On 12/30/13 11:22 AM, Suvayu Ali wrote: > Hi, > > On Thu, Dec 26, 2013 at 06:22:19PM -0500, Chet Ramey wrote: >> 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 pip

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

2013-12-30 Thread Suvayu Ali
Hi Chet, On Mon, Dec 30, 2013 at 11:33:43AM -0500, Chet Ramey wrote: > On 12/30/13 11:22 AM, Suvayu Ali wrote: > > Hi, > > > > On Thu, Dec 26, 2013 at 06:22:19PM -0500, Chet Ramey wrote: > >> On 12/25/13, 1:33 AM, Pierre Gaston wrote: > >> > >>> If I remember correctly, POSIX allows the lastpipe