Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: echo $fred:s/str1/str2/



On Tue, 17 May 2005 17:08:53 +0100,  wrote:

>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.
thx found the right part of help now

-- 
zzapper
vim -c ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?"
http://www.rayninfo.co.uk/tips/ vim, zsh & success tips



Messages sorted by: Reverse Date, Date, Thread, Author