[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Use cat rather than echo for result script to avoid interpre
From: |
David Kastrup |
Subject: |
Re: [PATCH] Use cat rather than echo for result script to avoid interpreted backslashes |
Date: |
Tue, 12 Feb 2013 11:16:38 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
> ---
> 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..6de9627 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)
Oops, cancel that: this should be \\EOF instead (string quotes!). Will
follow up.
--
David Kastrup