From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10667 invoked by alias); 9 May 2012 18:01:39 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17070 Received: (qmail 14673 invoked from network); 9 May 2012 18:01:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at zeitlins.org does not designate permitted sender hosts) Date: Wed, 9 May 2012 19:25:31 +0200 From: Vadim Zeitlin Subject: Re[2]: how to use character range [] in substitution pattern :gs To: Zsh Users MIME-Version: 1.0 Content-Type: MULTIPART/SIGNED; protocol="application/pgp-signature"; micalg=pgp-sha1; BOUNDARY="71377032-41-1336584331=:15984" References: <4FAA78BD.3020602@gmail.com> <20120509153848.3d756e82@pwslap01u.europe.root.pri> <4FAA94AB.40104@gmail.com> <20120509173445.488cdcda@pwslap01u.europe.root.pri> <4FAAA572.5070401@gmail.com> In-Reply-To: <4FAAA572.5070401@gmail.com> X-Mailer: Mahogany 0.68.0 'Cynthia', running under Windows 7 (build 7600), 64-bit edition Message-Id: --71377032-41-1336584331=:15984 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-Disposition: INLINE On Wed, 09 May 2012 10:12:18 -0700 reckoner wrote: r> On Wednesday, May 09, 2012 9:34:45 AM, Peter Stephenson wrote: r> > On Wed, 9 May 2012 09:00:43 -0700 r> > reckoner wrote: r> >>> ${x//[\(\)]/_} r> >> r> >> This last one doesn't work for me with or without the HIST_SUBST_PATTERN. r> > r> > Hmm... there's not a lot to go wrong unless your version of zsh is r> > very old. r> > r> > % zsh -f r> > % x="foo(bar())rod" r> > % print ${x//[\(\)]/_} r> > foo_bar___rod r> r> here's my version: zsh 4.3.11 (i686-pc-cygwin) FWIW the above commands work correctly with exactly the same zsh version for me... Regards, VZ --71377032-41-1336584331=:15984 Content-Type: APPLICATION/PGP-SIGNATURE -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iEYEABECAAYFAk+qqIsACgkQBupB3k9sHoaQmQCffdHi5isgUe/qkbjZDIX+te/H HnMAnA78WYpCWXGSzCvi3wKWCaDmEQu+ =NPjo -----END PGP SIGNATURE----- --71377032-41-1336584331=:15984--