zsh-workers
 help / color / mirror / code / Atom feed
* nohistsubstpattern and :s//
@ 2015-07-04 13:22 Mikael Magnusson
  2015-07-05  0:01 ` Bart Schaefer
  0 siblings, 1 reply; 16+ messages in thread
From: Mikael Magnusson @ 2015-07-04 13:22 UTC (permalink / raw)
  To: zsh workers

% setopt histsubstpattern; a=(aaa bab cac) b=d; echo $a:s/a/${b}/
daa bdb cdc
% setopt nohistsubstpattern; a=(aaa bab cac) b=d; echo $a:s/a/${b}/
${b}aa b${b}b cdc

(reported on irc).

I looked at the documentation of histsubstpattern and the :s/l/r/
flag, and it mostly talks about the effect of the option on the l
part. Even if this effect is somehow desired, it seems inconsistent
that the final element still gets the value of the parameter
substituted.

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-07-08 14:37 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-04 13:22 nohistsubstpattern and :s// 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
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

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).