snip
------------------------- >8 -------------------------
> And sometimes not:
> ------------------------- >8 -------------------------
> $ a=3;echo | while [ $a -lt 6 ];do a=$[a+1];done; echo "Res:" $a
> Res: 3
> ------------------------- >8 -------------------------
> I think, it works like a subshell, but it shouldn't.
Ah, actually I think it should. Doesn't the pipe fork a seperate process?