all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: "Wicki Gabriel (wicg)" <wicg@zhaw.ch>
Cc: 62814-done@debbugs.gnu.org
Subject: bug#62814: [PATCH] Clarify substitute* docstring with an additional example
Date: Thu, 11 May 2023 14:38:56 +0200	[thread overview]
Message-ID: <87ednn3uvz.fsf@gnu.org> (raw)
In-Reply-To: <ZR0P278MB0268B5F3B738F33123BA2F98C1989@ZR0P278MB0268.CHEP278.PROD.OUTLOOK.COM> (Wicki Gabriel's message of "Thu, 13 Apr 2023 11:44:11 +0000")

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’.




      reply	other threads:[~2023-05-11 12:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-13 11:44 [bug#62814] [PATCH] Clarify substitute* docstring with an additional example Wicki Gabriel (wicg)
2023-05-11 12:38 ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ednn3uvz.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=62814-done@debbugs.gnu.org \
    --cc=wicg@zhaw.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.