Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Explain that ${VAR:M*} will normalise the inter...
details: https://anonhg.NetBSD.org/src/rev/185523fde655
branches: trunk
changeset: 790896:185523fde655
user: apb <apb%NetBSD.org@localhost>
date: Fri Oct 25 22:05:00 2013 +0000
description:
Explain that ${VAR:M*} will normalise the inter-word spacing.
diffstat:
usr.bin/make/make.1 | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r a41c4eefac28 -r 185523fde655 usr.bin/make/make.1
--- a/usr.bin/make/make.1 Fri Oct 25 21:42:30 2013 +0000
+++ b/usr.bin/make/make.1 Fri Oct 25 22:05:00 2013 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: make.1,v 1.223 2013/10/25 20:57:02 apb Exp $
+.\" $NetBSD: make.1,v 1.224 2013/10/25 22:05:00 apb Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -1066,6 +1066,13 @@
be used.
The wildcard characters may be escaped with a backslash
.Pq Ql \e .
+As a consequence of the way values are split into words, matched,
+and then joined, a construct like
+.Dl ${VAR:M*}
+will normalise the inter-word spacing, removing all leading and
+trailing space, and converting multiple consecutive spaces
+to single spaces.
+.
.It Cm \&:N Ns Ar pattern
This is identical to
.Ql Cm \&:M ,
Home |
Main Index |
Thread Index |
Old Index