Re: Assigning variable value in right behalf of pipeline has no effect

2007-07-05 Thread xandrous
That's sad. Thank you anyway. ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Re: Assigning variable value in right behalf of pipeline has no effect

2007-07-05 Thread xandrous
> XXX=10; { XXX=20; } | read; echo $XXX > > XXX=10; { XXX=20; }; echo $XXX > > I suppose both of them should output '20' but the first one outputs > '10'. Is it feature of bug? This is normal. It's explained in entry E4 in the bash FAQ. Oh, sorry, I made a mistake in the subject, it should ha

Assigning variable value in right behalf of pipeline has no effect

2007-07-05 Thread xandrous
Hi, bash developers! I've noticed strange bash behaviour. If I assign variable value in right behalf of pipeline it has no effect. Just try to execute: XXX=10; { XXX=20; } | read; echo $XXX XXX=10; { XXX=20; }; echo $XXX I suppose both of them should output '20' but the first one outputs '10'