Dexter
> What if you escaped the space with a backslash?

Carl
> quote the argument, weakly
>     echo "$g"

I appreciate your guesses, but had tried them already, and tried them
again (assuming I understand correctly)

for example, all of these choke too:

  g="-draw 'line 10,10,20,20'"
  convert "$g" test_01.tif out.jpg

  g='-draw "line 10,10,20,20"'
  convert "$g" test_01.tif out.jpg

  g='draw "line 10,10,20,20"'
  convert -"$g" test_01.tif out.jpg

  g='draw "line 10,10,20,20"'
  convert "-$g" test_01.tif out.jpg

The light quoting elicits an error, albeit a different one -- convert
reports that it does not recognize the option
`-draw "line 10,10,20,20"'

while escaping the space has no effect.

this is what I am working with:

## bash --version
GNU bash, version 3.00.0(1)-release (i586-suse-linux)
Copyright (C) 2004 Free Software Foundation, Inc.

## convert -version
Version: ImageMagick 6.0.7 03/11/05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC

If you get one to work, please let me know.  

Thanks in advance,

Mike


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

Reply via email to