guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] utils: Preserve makefile shell arguments during patch.


From: Ludovic Courtès
Subject: Re: [PATCH] utils: Preserve makefile shell arguments during patch.
Date: Thu, 28 Aug 2014 17:41:11 +0200
User-agent: Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux)

Eric Bavier <address@hidden> skribis:

> Ludovic Courtès writes:
>
>>>        (let* ((old (string-append dir shell))
>>>               (new (or (find-shell shell) old)))
>>>          (unless (string=? new old)
>>>            (format (current-error-port)
>>>                    "patch-makefile-SHELL: ~a: changing `SHELL' from `~a' to 
>>> `~a'~%"
>>>                    file old new))
>>> -        (string-append "SHELL = " new "\n"))))
>>> +        (string-append "SHELL = " new " " args))))
>>
>> Are you sure the \n is no longer needed?  (I can never remember when it
>> is matched and when it’s not.)
>
> It's no longer needed in this case, since the '.' also matches a
> newline, so it will end up in 'args'.  

Ah OK.  Then please commit, with the long line wrapped.

> BTW, this is contrary to the GNU Emacs Regular Expressions documentation
> which states::
>
>   . (Period)
>   is a special character that matches any single character *except a
>   newline*...
>
> I'm not sure at what level the newline is being matched, whether in
> substitute* or in Guile's regex library.

Guile’s (ice-9 regex) builds on top of libc’s regexps, which are POSIX
extended regular expressions by default.

Thanks,
Ludo’.



reply via email to

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