Please note:The SCons wiki is now restored from the attack in March 2013. All old passwords have been invalidated. Please reset your password if you have an account. If you note missing pages, please report them to webmaster@scons.org. Also, new account creation is currently disabled due to an ongoing spam flood (2013/08/27).

The $STRING expansion in actions makes some assumptions:

If you want to force a single string variable to be treated as a single argument, you can do this:

The curly braces cause "[MYVAR]" to be evaluated as a Python expression. [MYVAR] is a list containing the single string MYVAR. So your end result is that MYVAR will be quoted as a single arg if it happens to contain spaces.

ArgumentQuoting (last edited 2008-03-12 02:47:06 by localhost)