zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: nohistsubstpattern and :s//
Date: Tue, 07 Jul 2015 12:15:35 +0100	[thread overview]
Message-ID: <20150707121535.5d228e2f@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <150706135107.ZM4131@torch.brasslantern.com>

On Mon, 6 Jul 2015 13:51:07 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:

> On Jul 6,  9:49am, Peter Stephenson wrote:
> }
> } I don't think it's *that* much of a problem that the modifiers behave
> } differently in contexts that are themselves intrinsically rather
> } different.
> 
> Some doc below, but there's still some odd stuff going on.
> 
> $b != ${b} in parameter expansion:
> 
> torch% a=(abc dbe fbg)
> torch% unset b
> torch% print ${a:gs/b/$b/}  
> a d f

Perhaps the line is turning into "a$bc", "d$be", "f$bg" before the
substitution?

This is new:  the existing code gives

ac de fg

so maybe this is a clue to why the current code works the way it does.

pws


  parent reply	other threads:[~2015-07-07 11:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-04 13:22 Mikael Magnusson
2015-07-05  0:01 ` Bart Schaefer
2015-07-05 10:30   ` Peter Stephenson
2015-07-05 21:11     ` Bart Schaefer
2015-07-06  8:49       ` Peter Stephenson
2015-07-06 20:51         ` Bart Schaefer
2015-07-06 23:04           ` Mikael Magnusson
2015-07-07 11:15           ` Peter Stephenson [this message]
2015-07-07 11:54             ` Peter Stephenson
2015-07-07 15:11               ` Bart Schaefer
2015-07-07 15:28                 ` Peter Stephenson
2015-07-07 15:48                   ` Bart Schaefer
2015-07-07 16:10                     ` Peter Stephenson
2015-07-07 18:10                       ` Bart Schaefer
2015-07-08 14:37                         ` Bart Schaefer
2015-07-07 14:48             ` Bart Schaefer

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=20150707121535.5d228e2f@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=zsh-workers@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).