Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Localize MATCH, MBEGIN, etc. in _zstyle and _globquals
- X-seq: zsh-workers 41962
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: Sebastian Gniazdowski <psprint@xxxxxxxxxxx>
- Subject: Re: Localize MATCH, MBEGIN, etc. in _zstyle and _globquals
- Date: Sun, 29 Oct 2017 18:07:21 -0400
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201708; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=sWP7CQ8kx7R5YsqwK+b+rHixJdxUEdXFL1cjYZBVo4g=; b=FCXytLKKDbF9ym6nlnZdkabfBp 8LyvRW27KMgf9hF4oUchHCgJNXSxtEbyKD3sQkwEXj78n+2QTiWm3b9S+mVyV147H+Qq+mrUTxh7V DMVD9RWcPp/m7/diw9pN7gz7tTSvJUkB9UCYngBk/Oi6A42voAw+fUkTnTVajuuy8Nb8SmfZGYDE1 b2zpAG1Q9xsOLOAm5Z4wHK3ENXmU;
- In-reply-to: <etPan.59f5be1b.1dad7c90.98a8@zdharma.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Openpgp: url=https://www.security.spodhuis.org/PGP/keys/0x4D1E900E14C1CC04.asc
- References: <etPan.59f5be1b.1dad7c90.98a8@zdharma.org>
On 2017-10-29 at 12:40 +0100, Sebastian Gniazdowski wrote:
> I was searching for regex usage (=~) and didn't find anything
> meaningful (would replace with (#b) or (#m) so that e.g. default
> static build works fine). However found (#m) use and not defined local
> MATCH, MBEGIN, MEND. To not surprise user with overwriting his
> matching results, I've localized those parameters in two Zsh-related
> completions.
_main_complete localizes `match` already. So if we don't localize all
of them in the same place then we're risking inconsistency, no matter
what.
Anyone know of a good reason to not just localize _all_ of the =~
non-BASH_REMATCH variables in _main_complete so that they're always
isolated to the completion-system, if =~ or -regex-match or -pcre-match
is used within the completion system?
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author