Re: arithmetic + > + subshell might not be documented

2009-04-01 Thread Jan Schampera
jida...@jidanni.org wrote: > Might not be documented: > > $ cat q > for i in : :; do :|: > x$((++a)); echo =$a=; done; ls x?; rm x? > for i in : :; do : > x$((++b)); echo =$b=; done; ls x?; rm x? > $ bash q > == > == > x1 > =1= > =2= > x1 x2 > > I don't think it's specific to arithmetics. I

arithmetic + > + subshell might not be documented

2009-04-01 Thread jidanni
Might not be documented: $ cat q for i in : :; do :|: > x$((++a)); echo =$a=; done; ls x?; rm x? for i in : :; do : > x$((++b)); echo =$b=; done; ls x?; rm x? $ bash q == == x1 =1= =2= x1 x2