Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Prepend/append to the members of a list
- X-seq: zsh-workers 22935
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Prepend/append to the members of a list
- Date: Tue, 31 Oct 2006 08:31:23 -0800
- In-reply-to: <200610311452.k9VEqKNI013158@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20061030170919.GA9507@xxxxxxxxxxxx> <200610311452.k9VEqKNI013158@xxxxxxxxxxxxxx>
On Oct 31, 2:52pm, Peter Stephenson wrote:
}
} +When tt(HIST_SUBST_PATTERN) is set, var(l) may start with a tt(#)
} +to indicate that the pattern must match at the start of the string
} +to be substituted, and a tt(%) may appear at the start or after an tt(#)
} +to indicate that the pattern must match at the end of the string
} +to be substituted.
The doc in parameter expansion says
The PATTERN may begin with a `#', in which case the PATTERN must
match at the start of the string, or `%', in which case it must
match at the end of the string.
Should that doc also say that #% is a legal pattern meaning "anchor
the match at both ends of the string"?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author