Fall back on /usr/bin/editor on Debian and derivatives
This is to comply with Debian Policy §11.4, see https://www.debian.org/doc/debian-policy/#editors-and-pagers
For example, on my Debian notebook:
reposurgeon% edit
reposurgeon: you have not specified an editor and $EDITOR is not set
reposurgeon: using /usr/bin/editor -> /usr/bin/vim.basic instead
Fixes https://bugs.debian.org/877011, will enter Debian packaging of reposurgeon (3.44-3).
Hi Eric,
Yes, this patch is somewhat Debian-specific, but hopefully I have added enough checks in place so that it won't negatively affect other platforms. Nevertheless, please feel free to accept or reject it as you see fit.
Cheers, Anthony