Oops here's the patch.
http://code.google.com/p/lilypond/issues/detail?id=2107
From dbd9b50d1b9bc7f1bda5dbfdacb9163731afb489 Mon Sep 17 00:00:00 2001
From: Julien Rioux <[email protected]>
Date: Tue, 13 Dec 2011 07:43:30 -0500
Subject: [PATCH] lilylib.py : Wrap arguments with double quotes and clarify a comment.
---
python/lilylib.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/python/lilylib.py b/python/lilylib.py
index 0f33ed4..6a36dba 100644
--- a/python/lilylib.py
+++ b/python/lilylib.py
@@ -147,11 +147,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 '\\$"`':
--
1.7.4.1
_______________________________________________
lilypond-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-devel