[ale] string escaping [continued]

Danny Cox danscox at mindspring.com
Thu Jun 21 08:49:01 EDT 2001


Christopher,

Christopher Bergeron wrote:
> 
> Thanks for all the tips!!!
> 
> Here is the script:
> 
> #!/bin/bash
> t= "'text \"something here\"'"
> echo $t
> 
> But it still doesn't seem to work...

	That's because the shell is intrepreting it twice: first on the t=
line, and again on the echo line.  Try this:

#!/bin/bash
t="'text \"something here\"'"
echo "$t"

Also, note the lack of spaces around the '='....

-- 
"Men occasionally stumble over the truth, but most of them pick 
themselves up and hurry off as if nothing had happened." 
   -- Winston Churchill 

Danny
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list