Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Slow completion when using aptitude



On Jan 26,  9:05am, Bart Schaefer wrote:
} Subject: Re: Slow completion when using aptitude
}
} Comparing _complete_debug output for the two, the main difference
} seems to be that _aptitude passes through _deb_packages repeatedly
} if you have a matcher-list, while _apt makes only a single pass.

Oh, forgot to mention -- the _apt completer, at least for apt-get,
seems to suffer from the common bug of returning 0 when it finds no
completions, fooling the higher layers into thinking it succeeded
but there's nothing to do rather than that it failed.  Of course it
may be that this is the right thing in this case, and _aptitude is
instead buggy when it returns 1 in the same circumstance.

That's probably why the number of passes through _deb_packages differs.



Messages sorted by: Reverse Date, Date, Thread, Author