Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
how to use character range [] in substitution pattern :gs
- X-seq: zsh-users 17064
- From: reckoner <reckoner@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: how to use character range [] in substitution pattern :gs
- Date: Wed, 09 May 2012 07:01:33 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=7c2dylnfw+2l1Jkm7ATWhUTHnNbVDzCWGEuZM9lx9DQ=; b=u1Nyd9cpkK9tILo8zkkSGaFicFOnMDGjJfCd3OLiUYBZ5R1at1susQZ+ZvN1Dtatye wKmInvoh29Yj0Y3M5SnooCd7av59Nucfr1FSw1BaVMqWM5jvy36/Ur/cOjYlEU938RfJ zi7HLcx7thQ4MxDLoDrTAFT1yxw62OUcL/ekd/NGt5aDkOO/nfvhRz4IgxSX5mxzUuik sQUb/QvRwFOp6vJt3A2AXIbORF13OQdkBq+ilulGI12ivdMyGEi0tSM2chHSCJh6fSkz R9RpuLE+tFe8cbXwbI8pz4XFExj4CDjVXNY7TSqSxSDmdcX5rAPgMtvbeF586qqszNJ6 QbwA==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I'm trying to use the the [] character range to substitute for embedded
parenthesis as in the following:
% echo ${x:gs/[()]/_/}
But This isn't working for some reason. It's not complaining about
syntax, so I'm pretty sure that I'm using the character range []
incorrectly somehow.
Any help appreciated.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author