Control: retitle -1 command-not-found: ignores binaries which can be changed 
with update-alternatives

Hi,

Julian Andres Klode wrote:
> On Thu, Mar 26, 2009 at 11:49:43AM +0000, Sam Morris wrote:
> > command-not-found doesn't seem to know about zsh. Not sure why!
> > 
> > $ /usr/share/command-not-found/command-not-found zsh; echo $?
> > 127
> 
> ZSH uses file diversions [dpkg-divert(8)].

This is wrong. zsh uses the alternatives system.

> Those are not listed in the Contents-*.gz files.

That also counts for the alternatives system.

> Because command-not-found currently uses those files to create its
> command list, zsh is not included.

This also counts for any other command which is a symlink into
/etc/alternatives/, e.g. /bin/sh:

→ /usr/share/command-not-found/command-not-found sh
Command 'sh' is available in '/bin/sh'
sh: command not found
→

> I would need a complete Debian mirror to be able to create a list
> of all diversions,

... or all alternatives...

I've retitled the bug report accordingly as this is clearly not a
zsh-specific issue.

Nevertheless this will be fixed in zsh with one of the next uploads as
there's no more need for the alternatives system for zsh packages as
there's only one zsh version left in Debian.

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <[email protected]>, http://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

Reply via email to