zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Clint Adams <schizo@debian.org>
Cc: Vincent Lefevre <vincent@vinc17.org>,
	262157-forwarded@bugs.debian.org, zsh-workers@sunsite.dk
Subject: Re: Bug#262157: zsh: Missed completion for apt-get install -t unstable
Date: Fri, 30 Jul 2004 19:09:45 +0200	[thread overview]
Message-ID: <5843.1091207385@trentino.logica.co.uk> (raw)
In-Reply-To: <20040730154111.GB4059@scowler.net>

Clint wrote:
> >   apt-get install -t unstable pbb[TAB]
> > 
> > and zsh completed it to pbbuttonsd-dev, though I wanted to install
> > the unstable version of pbbuttonsd.
> 
> I see three options:
> 
> a) status quo
> b) complete pbuttonsd even if it's already installed and pbuttonsd-dev
>    matches

It should do that anyway! apt-get install can be used to upgrade a single
package that is already installed. If we don't take account of things
like -t unstable then this option is definitely the way to go.

> c) add intelligence to figure out whether or not one is trying to
>    install a different version of an installed package (or the same
>    version if --reinstall is given)

Good luck making sense of _regex_arguments.

We really ought to rewrite apt-get completion without using
_regex_arguments. _regex_arguments is a nice idea and if it didn't rely
on nasty things like all the nulls, it could be quite good. Would be
nice if apt completion took account of things like --reinstall and used
separate tags for already installed packages and uninstalled ones etc.

It is also the case that stuff like:
_deb_packages_cache_uninstalled=( $(print -l $_deb_packages_cache_avail $_deb_packages_cache_installed|sort|uniq -u) )
is actually faster than the zsh stuff it currently does. We ought to be
careful about blindly assuming the native zsh stuff is quicker.

I've sort of meant to do something about deb completion but I've not
had the time. I also started using aptitude's command-line interface
instead so care less about apt-get. (aptitude seems to be able to
keep track of stuff that was only installed to fulfill a dependency).

Oliver


  reply	other threads:[~2004-07-30 17:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040729225547.GA3042@ay.vinc17.org>
2004-07-30 15:41 ` Clint Adams
2004-07-30 17:09   ` Oliver Kiddle [this message]
2004-07-30 17:10   ` Vincent Lefevre
2004-08-01 14:13     ` Clint Adams

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=5843.1091207385@trentino.logica.co.uk \
    --to=okiddle@yahoo.co.uk \
    --cc=262157-forwarded@bugs.debian.org \
    --cc=schizo@debian.org \
    --cc=vincent@vinc17.org \
    --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).