Here is another use case when the mechanism fails:

I'm using vim.nox as the default editor. The editor was set by me using 
update-alternatives --config editor. Apparently the binary was move by the 
package maintainer from /usr/bin/vim.nox to /usr/libexec/vim/vim.nox at
some time.

As a result, the script falsely complained on the command line when calling 
the editor

| /usr/bin/sensible-editor: 25: /usr/bin/vim.nox: not found
| /usr/bin/sensible-editor: 28: nano: not found
| /usr/bin/sensible-editor: 31: nano-tiny: not found

sensible-editor has added a second configuration in ~/.sensible-editor, but 
fails to keep both in sync. Additionally, none of the "nano" variants are 
installed or wanted.

Reply via email to