[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#880992: debian-policy should not recommend running editor using absolute path



Control: tags -1 = pending

Sean Whitton <spwhitton@spwhitton.name> writes:
> On Mon, Dec 25 2017, Russ Allbery wrote:

>>> 	not set, the commands "editor" and "pager" should be used,
>>> 	respectively. These commands can be invoked explicitly (e.g.  as
>>> 	/usr/bin/editor), or through a $PATH search (e.g. as editor).

>>> ?

>> This wording seems fine to me.  Seconded.  (I volunteer to turn this
>> into a Git change if it gets enough seconds.)

> Likewise seconded.

Here's what I applied:

--- a/policy/ch-customized-programs.rst
+++ b/policy/ch-customized-programs.rst
@@ -81,6 +81,8 @@ 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.
+These commands may be invoked explicitly (e.g., as ``/usr/bin/editor``) or
+via a PATH search (e.g., as ``editor``).
 
 These two files are managed through the ``dpkg`` "alternatives"
 mechanism. Every package providing an editor or pager must call the

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: