Be more specific how to call arguments of modifiers.
Reviewed By: wiz
This commit is contained in:
parent
de1dbc74c4
commit
3d7c8fcb51
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: make.1,v 1.71 2003/01/03 14:11:18 mjl Exp $
|
||||
.\" $NetBSD: make.1,v 1.72 2003/01/09 01:22:30 uebayasi Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1990, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -573,7 +573,8 @@ Replaces each word in the variable with its suffix.
|
|||
.It Cm H
|
||||
Replaces each word in the variable with everything but the last component.
|
||||
.It Cm M Ns Ar pattern
|
||||
Select only those words that match the rest of the modifier.
|
||||
Select only those words that match
|
||||
.Ar pattern .
|
||||
The standard shell wildcard characters
|
||||
.Pf ( Ql * ,
|
||||
.Ql ? ,
|
||||
|
@ -587,7 +588,7 @@ The wildcard characters may be escaped with a backslash
|
|||
This is identical to
|
||||
.Ql Cm M ,
|
||||
but selects all words which do not match
|
||||
the rest of the modifier.
|
||||
.Ar pattern .
|
||||
.It Cm O
|
||||
Order every word in variable alphabetically.
|
||||
.It Cm Q
|
||||
|
@ -666,17 +667,24 @@ modifier is just like the
|
|||
modifier except that the old and new strings, instead of being
|
||||
simple strings, are a regular expression (see
|
||||
.Xr regex 3 )
|
||||
string
|
||||
.Ar pattern
|
||||
and an
|
||||
.Xr ed 1 Ns \-style
|
||||
replacement string.
|
||||
Normally, the first occurrence of the pattern in
|
||||
each word of the value is changed.
|
||||
string
|
||||
.Ar replacement .
|
||||
Normally, the first occurrence of the pattern
|
||||
.Ar pattern
|
||||
in each word of the value is substituted with
|
||||
.Ar replacement .
|
||||
The
|
||||
.Ql 1
|
||||
modifier causes the substitution to apply to at most one word; the
|
||||
.Ql g
|
||||
modifier causes the substitution to apply to as many instances of the
|
||||
search pattern as occur in the word or words it is found in.
|
||||
search pattern
|
||||
.Ar pattern
|
||||
as occur in the word or words it is found in.
|
||||
Note that
|
||||
.Ql 1
|
||||
and
|
||||
|
|
Loading…
Reference in New Issue