Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: nohistsubstpattern and :s//
On Mon, 6 Jul 2015 13:51:07 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author