From: Alexey Tourbin <at@altlinux.ru>
To: zsh-workers@sunsite.dk
Subject: Re: bug: _store_cache and ksh arrays
Date: Tue, 19 Oct 2004 16:49:47 +0400 [thread overview]
Message-ID: <20041019124947.GK2017@solemn.turbinal.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0410182150400.28361@toltec.zanshin.com>
[-- Attachment #1: Type: text/plain, Size: 1337 bytes --]
On Mon, Oct 18, 2004 at 09:54:21PM -0700, Bart Schaefer wrote:
> > I think I found a bug. _store_cache produces wrong output when
> > both KSH_TYPESET and MAGIC_EQUAL_SUBST are set.
>
> _store_cache is meant to be called from the completion system functions,
> which are meant to execute only with the setopts in the $_comp_options
> array in effect. Nearly all functions in the completion system assume
> those settings and make no effort to work with arbitrary combinations of
> setopts.
The bug still persists when _store_cache is called from completion
system functions (this is how I tracked down _store_cache), and I believe
that the bug can be easily reproduced.
Please consider this:
$ rm -rf ~/.zcomp*
$ zsh
$ emulate -R zsh
$ zstyle ':completion::complete:*' use-cache 1
$ perl -M<TAB>
zsh: do you wish to see all 1917 possibilities (959 lines)? n
$ head -c70 ~/.zcompcache/perl_modules; echo
_perl_modules=( 'AcidRip::acidrip' 'AcidRip::interface' 'AcidRip::sign
$ rm -rf ~/.zcomp*
$ zsh
$ emulate -R zsh
$ setopt KSH_TYPESET MAGIC_EQUAL_SUBST
$ zstyle ':completion::complete:*' use-cache 1
$ perl -M<TAB>
zsh: do you wish to see all 1917 possibilities (959 lines)? n
$ head -c70 ~/.zcompcache/perl_modules; echo
_perl_modules=( 'AcidRip::acidrip AcidRip::interface AcidRip::signals
$
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-10-19 12:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-19 2:48 Alexey Tourbin
2004-10-19 4:54 ` Bart Schaefer
2004-10-19 12:49 ` Alexey Tourbin [this message]
2004-10-19 14:15 ` Alexey Tourbin
2004-10-22 15:44 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041019124947.GK2017@solemn.turbinal.org \
--to=at@altlinux.ru \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).