version 1.57, 2003/09/29 11:35:11 |
version 1.58, 2003/11/22 11:52:49 |
|
|
The colon may be escaped with a backslash |
The colon may be escaped with a backslash |
.Pq Ql \e . |
.Pq Ql \e . |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
.It Cm E |
.It Cm :E |
Replaces each word in the variable with its suffix. |
Replaces each word in the variable with its suffix. |
.It Cm H |
.It Cm :H |
Replaces each word in the variable with everything but the last component. |
Replaces each word in the variable with everything but the last component. |
.It Cm L |
.It Cm :L |
Replaces each word in the variable with its lower case equivalent. |
Replaces each word in the variable with its lower case equivalent. |
.It Cm U |
.It Cm :U |
Replaces each word in the variable with its upper case equivalent. |
Replaces each word in the variable with its upper case equivalent. |
.It Cm M Ns Ar pattern |
.It Cm :M Ns Ar pattern |
Select only those words that match the rest of the modifier. |
Select only those words that match the rest of the modifier. |
The standard shell wildcard characters |
The standard shell wildcard characters |
.Pf ( Ql * , |
.Pf ( Ql * , |
|
|
be used. |
be used. |
The wildcard characters may be escaped with a backslash |
The wildcard characters may be escaped with a backslash |
.Pq Ql \e . |
.Pq Ql \e . |
.It Cm N Ns Ar pattern |
.It Cm :N Ns Ar pattern |
This is identical to |
This is identical to |
.Cm M , |
.Cm :M , |
but selects all words which do not match |
but selects all words which do not match |
the rest of the modifier. |
the rest of the modifier. |
.It Cm Q |
.It Cm :Q |
Quotes every shell meta-character in the variable, so that it can be passed |
Quotes every shell meta-character in the variable, so that it can be passed |
safely through recursive invocations of |
safely through recursive invocations of |
.Nm make . |
.Nm make . |
.It Cm R |
.It Cm :R |
Replaces each word in the variable with everything but its suffix. |
Replaces each word in the variable with everything but its suffix. |
.Sm off |
.Sm off |
.It Cm S No \&/ Ar old_string Xo |
.It Cm :S No \&/ Ar old_string Xo |
.No \&/ Ar new_string |
.No \&/ Ar new_string |
.No \&/ Op Cm 1g |
.No \&/ Op Cm 1g |
.Xc |
.Xc |
|
|
.Pq Ql \&$ , |
.Pq Ql \&$ , |
not a preceding dollar sign as is usual. |
not a preceding dollar sign as is usual. |
.Sm off |
.Sm off |
.It Cm C No \&/ Ar pattern Xo |
.It Cm :C No \&/ Ar pattern Xo |
.No \&/ Ar replacement |
.No \&/ Ar replacement |
.No \&/ Op Cm 1g |
.No \&/ Op Cm 1g |
.Xc |
.Xc |
.Sm on |
.Sm on |
The |
The |
.Cm C |
.Cm :C |
modifier is just like the |
modifier is just like the |
.Cm S |
.Cm :S |
modifier except that the old and new strings, instead of being |
modifier except that the old and new strings, instead of being |
simple strings, are a regular expression (see |
simple strings, are a regular expression (see |
.Xr regex 3 ) |
.Xr regex 3 ) |
|
|
are orthogonal; the former specifies whether multiple words are |
are orthogonal; the former specifies whether multiple words are |
potentially affected, the latter whether multiple substitutions can |
potentially affected, the latter whether multiple substitutions can |
potentially occur within each affected word. |
potentially occur within each affected word. |
.It Cm T |
.It Cm :T |
Replaces each word in the variable with its last component. |
Replaces each word in the variable with its last component. |
.It Ar old_string Ns No = Ns Ar new_string |
.It Ar :old_string Ns No = Ns Ar new_string |
This is the |
This is the |
.At V |
.At V |
style variable substitution. |
style variable substitution. |