|
From: | GNU bug Tracking System |
Subject: | bug#62814: closed ([PATCH] Clarify substitute* docstring with an additional example) |
Date: | Thu, 11 May 2023 12:40:02 +0000 |
Your message dated Thu, 11 May 2023 14:38:56 +0200 with message-id <87ednn3uvz.fsf@gnu.org> and subject line Re: bug#62814: [PATCH] Clarify substitute* docstring with an additional example has caused the debbugs.gnu.org bug report #62814, regarding [PATCH] Clarify substitute* docstring with an additional example to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@gnu.org.) -- 62814: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62814 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems
--- Begin Message ---Subject: [PATCH] Clarify substitute* docstring with an additional example Date: Thu, 13 Apr 2023 11:44:11 +0000
Hello
I've created this little patch after wondering how to match (and substitute*) against end-of-line. My patch is based on
982698c52fb388e278dc4cec4b124406f23f102a.
Thanks for review and merge.
gabber
0001-guix-build-utils-Clarify-substitute-docstring-with-a.patch
Description: 0001-guix-build-utils-Clarify-substitute-docstring-with-a.patch
--- End Message ---
--- Begin Message ---Subject: Re: bug#62814: [PATCH] Clarify substitute* docstring with an additional example Date: Thu, 11 May 2023 14:38:56 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Hi, "Wicki Gabriel (wicg)" <wicg@zhaw.ch> skribis: > From 5ae3c5512e85189a47c859c6128adfd3bfc63159 Mon Sep 17 00:00:00 2001 > From: Gabriel Wicki <gabriel@erlikon.ch> > Date: Thu, 13 Apr 2023 10:31:57 +0200 > Subject: [PATCH] guix: build: utils: Clarify substitute* docstring with an > example. > > * guix/build/utils.scm (substitute*): Add an example on how to match > end-of-line. > * doc/guix.texi (Build Utilities): Update the corresponding passage. [...] > Be careful about using @code{$} to match the end of a line; by itself it > -won't match the terminating newline of a line. > +won't match the terminating newline of a line, e.g. to match a whole > +line ending with a backslash, one needs a regex like @code{"(.*)\\\\\n$"}. Applied with a minor tweak and without the (guix build utils) change, which would entail a world rebuild. Thanks! Ludo’.
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |