On 5/30/05, m ike <[EMAIL PROTECTED]> wrote:
> this
> 
>   convert  -draw "line 10,10,20,20"  text.jpg out.jpg
> 
> draws a line on the image from 10,10 to 20,20
> 
> so does this:
> 
>   g="line 10,10,20,20"
>   convert -draw "$g"  text.jpg out.jpg
> 
> but this chokes:
> 
>   g='-draw "line 10,10,20,20"'
>   echo $g
>   convert $g text.jpg out.jpg
> 
> appearantly convert is seeing "line 10,10,20,20" as two
> arguments, divided at the space.

quote the argument, weakly
    echo "$g"

For lots of information see "A Guide to Unix Shell Quoting"
< http://www.mpi-sb.mpg.de/~uwe/lehre/unixffb/quoting-guide.html > 

For complete information overload, Google with keywords
unix shell quoting

    carl
-- 
    carl lowenstein         marine physical lab     u.c. san diego
                                                 [EMAIL PROTECTED]


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to