Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make Emphasise the fact that the regexp and replacem...



details:   https://anonhg.NetBSD.org/src/rev/4ed6eafc0b1a
branches:  trunk
changeset: 792859:4ed6eafc0b1a
user:      apb <apb%NetBSD.org@localhost>
date:      Sun Jan 19 10:23:29 2014 +0000

description:
Emphasise the fact that the regexp and replacement in :C/// are
subjected to variable expansion before regexp parsing.  This was already
documented if you read carefully enough, but more emphasis would have
helped me to figure out why I needed three or four backslashes where I
expected to need only two.

diffstat:

 usr.bin/make/make.1 |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 9b8a1bc121c0 -r 4ed6eafc0b1a usr.bin/make/make.1
--- a/usr.bin/make/make.1       Sun Jan 19 07:01:55 2014 +0000
+++ b/usr.bin/make/make.1       Sun Jan 19 10:23:29 2014 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: make.1,v 1.228 2014/01/10 16:28:34 wiz Exp $
+.\"    $NetBSD: make.1,v 1.229 2014/01/19 10:23:29 apb Exp $
 .\"
 .\" Copyright (c) 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"    from: @(#)make.1        8.4 (Berkeley) 3/19/94
 .\"
-.Dd January 10, 2014
+.Dd January 19, 2014
 .Dt MAKE 1
 .Os
 .Sh NAME
@@ -1250,6 +1250,15 @@
 are orthogonal; the former specifies whether multiple words are
 potentially affected, the latter whether multiple substitutions can
 potentially occur within each affected word.
+.Pp
+As for the
+.Cm \&:S
+modifier, the
+.Ar pattern
+and
+.Ar replacement
+are subjected to variable expansion before being parsed as
+regular expressions.
 .It Cm \&:T
 Replaces each word in the variable with its last component.
 .It Cm \&:u



Home | Main Index | Thread Index | Old Index