Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
#!/bin/tcsh
set gf = \"
set namestr = "-pointsize 80 -draw $gf gravity NorthWest fill black text 0,12 a $gf"
echo $namestr
convert a.tif $namestr b.tif
-pointsize 80 -draw " gravity NorthWest fill black text 0,12 a "
convert: unable to open image `gravity': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/504.
convert: unable to open image `NorthWest': No such file or directory @ error/blob.c/OpenBlob/2705.
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/504.
....
You want the shell to act on the quotes. As far as I know, *nix shells interpret quotes before expanding variables, so a quote within the variable value won't do what you want.
(Windows shells work differently, and can do what you want.)
The problem is with shell scripting, not IM. I suggest you ask in a shell scripting forum.