[Bug 569979] Re: git does not use sensible-editor when EDITOR not defined
Anders Kaseorg
andersk at mit.edu
Wed Dec 9 21:43:57 UTC 2015
Git uses /usr/bin/editor as the fallback editor, in accordance with
Debian Policy:
https://www.debian.org/doc/debian-policy/ch-customized-
programs.html#s11.4
“Thus, every program that launches an editor or pager must use the
EDITOR or PAGER environment variable to determine the editor or pager
the user wishes to use. If these variables are not set, the programs
/usr/bin/editor and /usr/bin/pager should be used, respectively.
If it is very hard to adapt a program to make use of the EDITOR or PAGER
variables, that program may be configured to use /usr/bin/sensible-
editor and /usr/bin/sensible-pager as the editor or pager program
respectively.”
Since Git does make use of the EDITOR variable, this policy requires Git
to fall back to /usr/bin/editor, not /usr/bin/sensible-editor.
** Changed in: git (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to git in Ubuntu.
https://bugs.launchpad.net/bugs/569979
Title:
git does not use sensible-editor when EDITOR not defined
Status in git package in Ubuntu:
Invalid
Status in git-core package in Debian:
Unknown
Bug description:
Binary package hint: git-core
git does not use sensible-editor as a fallback when $EDITOR is not
defined, instead falling back on the system editor. Git should try
$EDITOR, sensible-editor, and then editor in that order instead of
$EDITOR, editor as it does now.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/git/+bug/569979/+subscriptions
More information about the foundations-bugs
mailing list