bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] gnulib-tool: unterminated substitute pattern


From: Bruno Haible
Subject: Re: [bug-gnulib] gnulib-tool: unterminated substitute pattern
Date: Thu, 2 Nov 2006 14:56:48 +0100
User-agent: KMail/1.9.1

Roger Persson wrote:
> Great. But I wonder if there is one malfunction still in the script.
> What if the escape character isn't preceeded by a whitespace?

You're right. I wasn't aware that "make" replaces backslash-newline with
a space (unlike "sh", which replaces it with nothing). I'm applying this:


2006-11-02  Bruno Haible  <address@hidden>

        * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
        newline sequence in the Makefile.am snippet as a space, like "make"
        does.
        Reported by Roger Persson <address@hidden>.

*** gnulib-tool 1 Nov 2006 13:20:07 -0000       1.185
--- gnulib-tool 2 Nov 2006 13:56:39 -0000
***************
*** 916,922 ****
        sed_combine_lines='/\\$/{
          :a
          N
!         s/\\\n//
          s/\\$/\\/
          ta
        }'
--- 916,922 ----
        sed_combine_lines='/\\$/{
          :a
          N
!         s/\\\n/ /
          s/\\$/\\/
          ta
        }'




reply via email to

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