zsh-workers
 help / color / mirror / code / Atom feed
From: Chris Lamb <lamby@debian.org>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: zsh-workers@zsh.org
Subject: Re: Please make "apt install <tab>" completion work on "local" .deb files
Date: Thu, 22 Mar 2018 15:34:02 +0000	[thread overview]
Message-ID: <1521732842.2106774.1312435968.2F9326ED@webmail.messagingengine.com> (raw)
In-Reply-To: <27489.1521711405@thecus>

Dear Oliver,

> > > Is any path valid, just so long as it contains at least one slash? Or does
> > > it have to be something like "./"?
> >
> > Has to be "./"

I misspoke here - "apt install /full/path/to/filename.deb" *also*
works and is not covered by your patch, but at least we can detect
the leading "/" or ".". Indeed, I suspect this line is the relevant
one?

  +	/.\// -'[[ $subcmd = install ]]' /'[]'/ ':files:package file:_files -g

> This patch allows stuff like ./dir/zsh.deb or ./../../somewhere/zsh.deb.
> Are those valid?

(Yep.)

> Is the same feature applicable to apt-get or aptitude? 

(Nope. `apt` is being a bit magic here, alas.)

.. apart from that, your patch is great and works for me :)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-


  reply	other threads:[~2018-03-22 15:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-27 16:54 Chris Lamb
2018-03-22  0:09 ` Oliver Kiddle
2018-03-22  0:16   ` Chris Lamb
2018-03-22  9:36     ` Oliver Kiddle
2018-03-22 15:34       ` Chris Lamb [this message]
2018-04-03  7:58         ` Chris Lamb
2018-04-05  9:47           ` Oliver Kiddle
2018-04-05  9:53             ` Chris Lamb

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=1521732842.2106774.1312435968.2F9326ED@webmail.messagingengine.com \
    --to=lamby@debian.org \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-workers@zsh.org \
    /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).