* Bug in guess what?
@ 1999-02-19 16:44 Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 1999-02-19 16:44 UTC (permalink / raw)
To: Zsh hackers list
I think I've got all the patches to date (I certainly hope so), but I'm
still getting problems with the following completion:
% _foo() { [[ -string '=' ]] && complist -f; }
% defcomp _foo foo
% foo bar=^D
now pauses for a long time, then asks if I want to see its list of 1931
completions, which I don't much but they seem to be external commands
(except that there are 2757 of those and I get them much more quickly).
-class does the same. However, the following works splendidly.
_foo() {
if [[ $PREFIX = *'='* ]]; then
IPREFIX=${PREFIX%%=*}=
PREFIX=${PREFIX#*=}
complist -f
fi
}
(And maybe it's just me, but sometimes when I look at set -x output from
these things, PREFIX is full of \'s (such as \= in the above), and
sometimes they're not there. I haven't worked this out, but maybe it's not
important.)
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-02-20 13:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-19 16:44 Bug in guess what? 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).