doc: Clarify substitute* docstring with an example.
* doc/guix.texi (Build Utilities): Update the corresponding passage. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
61031dd32f
commit
199218e372
1 changed files with 3 additions and 1 deletions
|
@ -10379,7 +10379,9 @@ Alternatively, @var{file} may be a list of file names, in which case
|
||||||
they are all subject to the substitutions.
|
they are all subject to the substitutions.
|
||||||
|
|
||||||
Be careful about using @code{$} to match the end of a line; by itself it
|
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. For example, to match a
|
||||||
|
whole line ending with a backslash, one needs a regex like
|
||||||
|
@code{"(.*)\\\\\n$"}.
|
||||||
@end defmac
|
@end defmac
|
||||||
|
|
||||||
@subsection File Search
|
@subsection File Search
|
||||||
|
|
Reference in a new issue