Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: echo $fred:s/str1/str2/
- X-seq: zsh-users 8854
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: echo $fred:s/str1/str2/
- Date: Tue, 17 May 2005 17:08:53 +0100
- In-reply-to: <6a3k81phsnau8g7qgua7ai6k5h9bkm943f@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <7poj81po8fr55i9k6h6as8s6uco3jnre9c@xxxxxxx> <david@xxxxxxxxxx> of "Tue, 17 May 2005 13:31:09 BST." <7poj81po8fr55i9k6h6as8s6uco3jnre9c@xxxxxxx> <27161.1116334818@xxxxxxx> <6a3k81phsnau8g7qgua7ai6k5h9bkm943f@xxxxxxx>
zzapper wrote:
> On Tue, 17 May 2005 14:00:18 +0100, wrote:
> >You can't use patterns with that form, which is the history modifier
> >syntax. You can use patterns with this form:
> >
> >echo ${fred/bu/hhh}
> >
> Peter,
> I was expecting to use PCRE but it seems to only allow simplified patterns
>
> echo ${fred/ket*ll/yyy}
>
> Where can I find the rules?
They are standard shell globbing patterns, as described in the "Filename
Generation" section of the zshexpn manual. This is the only form of
pattern matching the standard shell syntax knows about.
You certainly shouldn't be expecting to use PCRE. That's never part of
standard shell syntax. It's only invoked in a few particular cases
loaded explicitly with the zsh/pcre module.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author