[ale] string escaping - part 2
Wandered Inn
esoteric at denali.atlnet.com
Thu Jun 21 09:15:39 EDT 2001
Christopher Bergeron wrote:
>
> Everyone, thanks for the help! Here's the bizarre thing: When I echo that
> to a file it works properly, but when I send it to a command, it fails.
> Here is the script:
>
> #!/bin/bash
> d=`date +%D`
> t="'text 50,50 \"$d\"'"
> mogrify -draw $t /root/jet/max.gif
Try mogrify -draw "$t" /root/jet/max.gif
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ should work (but doesn't)
--
Until later: Geoffrey esoteric at denali.atlnet.com
"Great spirits have always found violent opposition from mediocre minds.
The latter cannot understand it when a man does not thoughtlessly submit
to hereditary prejudices but honestly and courageously uses his
intelligence." - Albert Einstein
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
More information about the Ale
mailing list