Homec4science

Fallback from $EDITOR to `editor` to configured fallback editor.

Authored by epriestley <git@epriestley.com> on Feb 4 2012, 00:22.

Description

Fallback from $EDITOR to editor to configured fallback editor.

Summary: Debian, etc., provide an editor binary which is a better fallback
than nano if $EDITOR is not set. See T833.

Test Plan: Used test/interactive_editor.php to test a bunch of configurations.
Verified that "editor" is selected if available.

Reviewers: btrahan

Reviewed By: btrahan

CC: jtolds, aran, epriestley

Maniphest Tasks: T833

Differential Revision: https://secure.phabricator.com/D1566

Details

Committed
epriestley <git@epriestley.com>Feb 4 2012, 00:22
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUe284f7f0065e: Add parseStandardArguments() to PhutilArgumentParser
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU50c67c60c44c: Fallback from $EDITOR to `editor` to configured fallback editor. (authored by epriestley <git@epriestley.com>).Feb 4 2012, 00:22