lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Use cat rather than echo for result script to avoid interpreted


From: David Kastrup
Subject: [PATCH] Use cat rather than echo for result script to avoid interpreted backslashes
Date: Tue, 12 Feb 2013 11:21:54 +0100

This time with the correct escape sequence (my copy of Python did the
right thing anyway, so the output should be unchanged).  Sorry for the
confusion.

---
 patches/compile_lilypond_test/__init__.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/patches/compile_lilypond_test/__init__.py 
b/patches/compile_lilypond_test/__init__.py
index 19b7d1d..64afc49 100644
--- a/patches/compile_lilypond_test/__init__.py
+++ b/patches/compile_lilypond_test/__init__.py
@@ -339,7 +339,7 @@ class AutoCompile (object):
         script_filename = os.path.join (self.auto_compile_dir,
             "show-regtests-%s.sh" % (issue_id))
         out = open (script_filename, 'w')
-        out.write ("echo %s\n" % pipes.quote  (title))
+        out.write ("cat <<\\EOFxyzzy\n%s\nEOFxyzzy\n" % title)
         out.write ("firefox %s\n" % os.path.join (
             self.build_dir, "../show-%i/test-results/index.html" % issue_id))
         out.close ()
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]