On 31 January 2016 at 18:24, Axel Beckert <[email protected]> wrote: > 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...
Both. Might be solved at some point with manual meta data or declarative alternatives and diversions, I don't know. Nothing I can do about (I could scan a mirror for the patterns like Ubuntu does and ship that, but I don't like that.) -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

