Re: Logically equivalent statements output different results. Suspect problem with 'pipe'.

2010-03-02 Thread Chet Ramey
On 3/2/10 5:11 AM, Kalidas Yeturu wrote: > Bash Version: 3.2 > Patch Level: 33 > Release Status: release > > Description: > [Detailed description of the problem, suggestion, or complaint.] > > Logically equivalent statements output different results. Suspect problem > with 'pipe'. These are

Re: Minor German localization itch

2010-03-02 Thread Chet Ramey
On 2/28/10 11:21 PM, Tim Landscheidt wrote: > Bash Version: 4.0 > Patch Level: 23 > Release Status: release > > Description: > In a German environment, if there are no jobs, "fg" > reports "Kein solche Job." > > Repeat-By: > "LANG=de_DE.utf8 bash", "fg". > > Fix: > It sh

Re: Logically equivalent statements output different results. Suspect problem with 'pipe'.

2010-03-02 Thread Henning Garus
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.wooled

Re: Logically equivalent statements output different results. Suspect problem with 'pipe'.

2010-03-02 Thread Greg Wooledge
On Tue, Mar 02, 2010 at 03:41:36PM +0530, Kalidas Yeturu wrote: > p=0; for lig in `cat a`; do cat b | while read i; do echo "printing $p"; > ((p=$p+1)); done; done > > #outputs(I DO NOT EXPECT p TO BE RESET EACH TIME WHILE RUNS) > printing 0 > printing 1 > printing 2 > printing 0 > printin

Logically equivalent statements output different results. Suspect problem with 'pipe'.

2010-03-02 Thread Kalidas Yeturu
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -

Minor German localization itch

2010-03-02 Thread Tim Landscheidt
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPAC