zsh-users
 help / color / mirror / code / Atom feed
From: Vadim Zeitlin <vz-zsh@zeitlins.org>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re[2]: how to use character range [] in substitution pattern :gs
Date: Wed, 9 May 2012 19:25:31 +0200	[thread overview]
Message-ID: <E1SSAds-0001l8-Gp@smtp.tt-solutions.com> (raw)
In-Reply-To: <4FAAA572.5070401@gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 664 bytes --]

On Wed, 09 May 2012 10:12:18 -0700 reckoner <reckoner@gmail.com> 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<reckoner@gmail.com>  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

[-- Attachment #2: Type: APPLICATION/PGP-SIGNATURE, Size: 196 bytes --]

      reply	other threads:[~2012-05-09 18:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-09 14:01 reckoner
2012-05-09 14:23 ` Jérémie Roquet
2012-05-09 14:38   ` Peter Stephenson
2012-05-09 16:00     ` reckoner
2012-05-09 16:34       ` Peter Stephenson
2012-05-09 17:12         ` reckoner
2012-05-09 17:25           ` Vadim Zeitlin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1SSAds-0001l8-Gp@smtp.tt-solutions.com \
    --to=vz-zsh@zeitlins.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).