Re: Problem with single quotes

2009-06-29 Thread grvs
. Regards Eric Blake wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to grvs on 6/29/2009 1:00 AM: >> Hi all >> I am new in cygwin as well as linux and I am trying to learn shell >> scripting >> I tried to write following script whic

Problem with single quotes

2009-06-29 Thread grvs
Hi all I am new in cygwin as well as linux and I am trying to learn shell scripting I tried to write following script which doesn't give me appropriate result. x=3 y='[ $x -eq 10 ]' z='[ $x -lt 10 ]' echo x=&x y=$y z=$z and the output is: x=5 y=[ $x -eq 10 ] z=[ $x -lt 10 ] I expected x=5 y=0 z