zsh-workers
 help / color / mirror / code / Atom feed
* [^ax-y] doesn't work but [^x-ya] does
@ 2017-02-24 20:38 Sebastian Gniazdowski
  2017-02-25  7:32 ` Bart Schaefer
  0 siblings, 1 reply; 14+ messages in thread
From: Sebastian Gniazdowski @ 2017-02-24 20:38 UTC (permalink / raw)
  To: zsh-workers

Hello,
I couldn't create minimal test case interactively. In my big script, I
have:

disp_list=(
"${disp_list[@]//(#b)([$'\03'-$'\010'$'\022'])(${ZUI[PLUS]}([$'\011'-$'\020'])|)([^$'\03'-$'\010'${ZUI[COLOR_END]}]#)${ZUI[COLOR_END]}/${colormap[${match[1]}]}${colormap[${match[3]}]}$match[4]$RESET}"
)

Sorry, in vim it looks better. The point is about this part (this one
works):

[^$'\03'-$'\010'${ZUI[COLOR_END]}]#

So, no chars between code 3 .. 8 and no $ZUI[COLOR_END] (also single
char). The replaced line is in raw text:

"  [Regenerate] this module ON-THE-FLY, without list restart"

The point is: "ON-THE-FLY" isn't replaced because it contains "-", and
this happens if the above bit is written instead as:

[^${ZUI[COLOR_END]}$'\03'-$'\010']#

This however works on zsh-5.2-dev-0 and starts not working with
zsh-5.2-dev-1 reaching zsh-5.3.1-dev-0.

-- 
  Sebastian Gniazdowski
  psprint2@fastmail.com


^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <CGME20170302073436epcas2p1ee2d6d723bc7b0865e11243777a08417@epcas2p1.samsung.com>]

end of thread, other threads:[~2017-03-09 10:30 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-24 20:38 [^ax-y] doesn't work but [^x-ya] does Sebastian Gniazdowski
2017-02-25  7:32 ` Bart Schaefer
2017-02-25  8:21   ` Sebastian Gniazdowski
     [not found] <CGME20170302073436epcas2p1ee2d6d723bc7b0865e11243777a08417@epcas2p1.samsung.com>
2017-03-02  7:33 ` Sebastian Gniazdowski
2017-03-02  8:36   ` Sebastian Gniazdowski
2017-03-02 10:47   ` Peter Stephenson
2017-03-02 11:22     ` Sebastian Gniazdowski
2017-03-02 11:53       ` Peter Stephenson
2017-03-04 23:21         ` Bart Schaefer
2017-03-06 11:28           ` Peter Stephenson
2017-03-07 10:51             ` Peter Stephenson
2017-03-08 19:12               ` Martijn Dekker
2017-03-09  5:18                 ` Bart Schaefer
2017-03-09 10:29                   ` Peter Stephenson

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