Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: tr alke expansion?
- X-seq: zsh-users 10259
- From: Clint Adams <clint@xxxxxxx>
- To: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- Subject: Re: tr alke expansion?
- Date: Fri, 12 May 2006 12:08:35 -0400
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <4464ABAF.2050504@xxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <4464A5CE.9090603@xxxxxxxxxxxxxxxxxx> <20060512152017.GA7842@xxxxxxxxxxx> <4464ABAF.2050504@xxxxxxxxxxxxxxxxxx>
> something wrong there : there are accents in my original post :)
Sorry; embarrassing glitch on my side. Lifted from
http://www.zsh.org/mla/users/2001/msg00221.html:
first=éèê
second=eee
a=bébèbê
print ${a//(#b)([$first])/${second[${first[(I)$match]}]}}
This does not work with multibyte character sets such
as UTF-8.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author