Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: nohistsubstpattern and :s//



On Tue, 7 Jul 2015 12:15:35 +0100
Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> > 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.

Hmm, it seems to have gone back to the old way after a full
recompilation --- unless there's something flaky in the memory
or pointer management.

pws



Messages sorted by: Reverse Date, Date, Thread, Author