From: John Mandereau Date: Tue, 9 Sep 2008 08:36:41 +0000 (+0200) Subject: Fix #672 X-Git-Tag: release/2.11.58-1~16 X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=commitdiff_plain;h=457115a261254e366c50adf67c63d560ca163f08;p=lilypond.git Fix #672 Reported by Renaud Flavigny. The output directory name sometimes contain spaces or other characters that should be escaped, but lilypond-book does not escape characters neither quote the snippets file name, which makes lilypond crash. The bug can be reproduced by writing an input file test.tex in a directory path that contains spaces and running "lilypond-book --output=out test.tex". --- diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 6f0c75193b..09fecd1540 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -1601,7 +1601,7 @@ def process_snippets (cmd, snippets, 'snippet-names-%d.ly' % checksum) file (name, 'wb').write (contents) - system_in_directory (' '.join ([cmd, name]), + system_in_directory (' '.join ([cmd, ly.mkarg (name)]), lily_output_dir)