Posted by member 99 on 2006-04-26 20:38:17 link

If the first quote is ", it ignores ' and [] and goes until the next ". It will not nest. Same with " and ' swapped, goes until the next ' with no nesting whatsoever. If the first quote is [ you get nesting until the matched ]. I don't remember exactly, but I don't believe it will ignore [] inside " and '.

A variable used in $$ will take the value of the first token on the line after the variable name. If that token has quotes around it, they will be stripped.

x1 "a b" c d
x2 "'a b' c d"

($x1$) = (a b)
($x2$) = ('a b' c d)


For settings, it depends on the module but usually the whole line is used. So if x1 is used as a setting read directly by a module and not used as a variable in .rc, it will be "a b" c d instead.

So if SC1RClick is used as a variable, I'd recommend:
SC1RClick "'$CmdPrompt$' /t:78"


OTOH, if SC1RClick is used directly by a module, you probably want:
SC1RClick "$CmdPrompt$" /t:78


Hopefully I've gotten this right...