summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2009-10-01 21:40:31 +0000
committerdsl <dsl@NetBSD.org>2009-10-01 21:40:31 +0000
commitb7ab3bd781fa5754117a0ee7cc80e928660c443b (patch)
tree9809a0055949de0b7ca5dd0358d4d23a5e74f18f /usr.bin/make
parent5526bb0709c093d15670c21214ba867fa29b83d1 (diff)
Add example of how to use the ?: modifier properly.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/make.111
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1
index e772664df32..cc7c2503be3 100644
--- a/usr.bin/make/make.1
+++ b/usr.bin/make/make.1
@@ -1,4 +1,4 @@
-.\" $NetBSD: make.1,v 1.161 2009/09/08 17:29:20 sjg Exp $
+.\" $NetBSD: make.1,v 1.162 2009/10/01 21:40:31 dsl 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 September 7, 2009
+.Dd October 1, 2009
.Dt MAKE 1
.Os
.Sh NAME
@@ -1061,8 +1061,11 @@ otherwise return the
Since the variable name is used as the expression, \&:\&? must be the
first modifier after the variable name itself - which will, of course,
usually contain variable expansions.
-If the expression is a single token, it will likely be treated as a check
-for the name being defined.
+A common error is trying to use expressions like
+.Dl ${NUMBERS:M42:?match:no}
+which actually tests defined(NUMBERS),
+to determine is any words match "42" you need to use something like:
+.Dl ${${NUMBERS:M42} != "":?match:no} .
.It Ar :old_string=new_string
This is the
.At V