I try to write a tcsh-script which works with ImageMagick.
The following command line works perfectly:
convert a.tif -pointsize 80 -draw " gravity NorthWest fill black text 0,12 a " b.tif
I use the following code in a script (it is a minimal example to show the problem):
#!/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
In my opinion, the last line of the code should do the same as the above command. However, the last line produces error messages, which are related to the "-symbols in namestr.
Quotes inside quotes don't work that way. Once they're in a string, they're literal characters. This is to prevent chaos and unintended results whenever your input contains ".
What problem are you trying to solve with quotes-in-quotes? Argument splitting?