Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
nohistsubstpattern and :s//
- X-seq: zsh-workers 35684
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: nohistsubstpattern and :s//
- Date: Sat, 4 Jul 2015 15:22:26 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Ebn5rEtzbeoWD1r0PuMPh9PzIyVQa6uIxI5SxgxFE/Y=; b=edaawGscTXoriqqMZjHi1qie5nP63tb04yDuxUoGjq45tfeSmnJHSGwPpxdS1yx9lO Pf33VxfZ7Ny+jtTC69EdQk5rlvdkIpQBA/3ztv6x0gx9sDThnxf1OzO2cmqesEA/B3bl s6XsCeaoihjtUnWhoWz7pSNtCcmpy8pSCqVLP9fUrMpR/nu4lXUEcwpELx/mXw3NYits O0SB93Go3hxhAWEIyQ0iAPCJsStoVicLIuTSvRQO2q0NSVu3zeScDu4vPc99gzcAFPCT ISWLnK29DKXxgeA0jXNBwkXYiShJnqOWHbdVOg3+lltm8bopms4aK+eaTR/OSyT0diMm QM8w==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
% 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author