[Pkg-zsh-devel] Bug#883158: Bug#883158: zsh-common: no completion for "apt install /path/to/filename.deb"

Axel Beckert abe at debian.org
Thu Nov 30 13:53:26 UTC 2017


Control: tag -1 + upstream confirmed
Control: reassign -1 zsh 5.4.2-2
Control: severity -1 wishlist

Hi,

[Despite the requested feature is in a file in zsh-common, the
functionality is missing in zsh as a whole thing and people will
rather look for it in bug reports against zsh, not zsh-common, so
reassigning while staying in the same source package.]

Boyuan Yang wrote:
> However, zsh does not provide completion to installing local deb packages now.
> As new apt is gradually getting around we should really add such completion
> feature.

Indeed, and the current behaviour looks rather buggy:

→ apt install ./<Tab>
\ 500\ http://ppa.launchpad.net/…/release/ubuntu\ yakkety/main\ amd64\ Packages
\ \ \ \ \ release\ n=screen
\ \ \ \ \ release\ n=zsh
buildd-experimental
buildd-sid
buildd-unstable
buster
experimental
experimental-debug
rc-buggy-debug
screen
sid
sid-debug
stable
testing
unstable
unstable-debug
yakkety
zsh

… even if there are a lot of .deb files in the current directory.

(The buggy part is the one with the lot of backslashes. Those seem
lines from /etc/apt/prefences which are likely not correctly parsed.)

> P.S. Bash can already complete "apt install ./*.deb" correctly.

That again works well for me with zsh, too, but might depend on the
activated completion options:

→ apt install ./*.deb<Tab>

yields for me in the very same directory:

→ apt install ./zsh-common_5.2-5_all.deb […] ./zsh_5.4.2-2_amd64.deb ./zsh_5.4.2-3_amd64.deb

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



More information about the Pkg-zsh-devel mailing list