Re: Logically equivalent statements output different results. Suspect pr
From:
Henning Garus
Subject:
Re: Logically equivalent statements output different results. Suspect problem with 'pipe'.
Date:
Tue, 2 Mar 2010 16:06:53 +0100
User-agent:
Mutt/1.5.20 (2009-06-14)
On Tue, 02.03.2010 um 15:41 +0530, Kalidas Yeturu wrote:
> Logically equivalent statements output different results. Suspect
> problem with 'pipe'.
>
This is not a bug, quoting man bash:
> Each command in a pipeline is executed as a separate process (i.e.,
> in a subshell).http://mywiki.wooledge.org/BashFAQ/024 covers this with more details.