Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[^ax-y] doesn't work but [^x-ya] does
- X-seq: zsh-workers 40628
- From: Sebastian Gniazdowski <psprint2@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [^ax-y] doesn't work but [^x-ya] does
- Date: Fri, 24 Feb 2017 12:38:03 -0800
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=jusLHBOtJwrF5vyGq5Nhv2x+kus=; b=SO73FKWc8aH9GozJHT51k pQyqaq1zAtEPERyabqFQTwGJ+cOb+YlrhMAHbP/Ckfzdcf+mLgoQFgoM1Z3TwfKD LluC5hm8L8T67X7/PYaOmCENDoL6D9oPJAHfFbU5H1J0bvccfs3P6FrQEXQyjMIC VFi9GF+Vnq3gWYThceV8FM=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=smtpout; bh=jusLHBOtJwrF5vyGq5Nhv2x+k us=; b=Oocb1/aq50GG7gvZB7vSUXEJ3UBo+2Sc58SY1As2buXGKq28nmfMkWrVj Rt/rEHWn/827tA1D2Z/7/bjx5REAPqy0ELe2+uxPG6j1SOYm7jHYWHyzmM1lsIpY 0q+46VrELWZ20e4iLKFO01oO6x1Jz2qkXKZfFFqxuL6LNE9OJ8=
- 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
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@xxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author