[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] string escaping [continued]
- Subject: [ale] string escaping [continued]
- From: danscox at mindspring.com (Danny Cox)
- Date: Thu, 21 Jun 2001 08:49:01 -0400
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.