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

Re: nohistsubstpattern and :s//



On Tue, 7 Jul 2015 08:11:01 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Jul 7, 12:54pm, Peter Stephenson wrote:
> }
> } 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.
> 
> "Gone back to the old way" means what, precisely?  Sorry I lost track.

"Old way" is misleading: I mean the expected result with b -> empty
string because b is unset.  I've been updating and recompiling without
properly keeping track of the version.

Even this afternoon(!) I'm still getting

% a=(abc dbe fbg)
% setopt histsubstpattern
% unset b
% print ${a:gs/b/$b/}
ac de fg

and I confirmed with zsh -f, too.

pws



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