From: Julien Rioux Date: Tue, 13 Dec 2011 12:43:30 +0000 (-0500) Subject: lilylib.py : Wrap arguments with double quotes and clarify a comment. X-Git-Tag: release/2.15.23-1~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d1b269cbfdbb6c150b60ea63201c022a2d3c54c1;p=lilypond.git lilylib.py : Wrap arguments with double quotes and clarify a comment. --- diff --git a/python/lilylib.py b/python/lilylib.py index 26eb743a11..4f0801ba5e 100644 --- a/python/lilylib.py +++ b/python/lilylib.py @@ -149,11 +149,12 @@ please read 'Setup for MacOS X' in Application Usage.") os.system ("open http://python.org/download/") sys.exit (2) -# Modified version of the commands.mkarg(x), which always uses -# double quotes (since Windows can't handle the single quotes: +# A modified version of the commands.mkarg(x) that always uses +# double quotes (since Windows can't handle the single quotes) +# and escapes the characters \, $, ", and ` for unix shells. def mkarg(x): if os.name == 'nt': - return x + return ' "%s"' % x s = ' "' for c in x: if c in '\\$"`':