Curious bash evaluation

Suvayu Ali fatkasuvayu+linux at gmail.com
Mon Dec 27 16:43:52 UTC 2010


On Monday 27 December 2010 08:05 AM, Rodolfo Alcazar Portillo wrote:
> Hello. See this:
>
> # A="echo 'hi'"

I think this assignment makes the single quotes part of the string to be 
"echo"ed. Its is equivalent to saying, echo \'hi\'.

If you don't want the single quotes echoed, don't use them inside the 
double quotes either.

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list