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

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



Hello Jonathan,

On Mon, Nov 06 2017, Jonathan Nieder wrote:

> 	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 read strictly, this says that I must use "/usr/bin/editor" instead
> of invoking "editor" from the $PATH.  (I'm not sure I agree with that
> interpretation, but it came up in https://bugs.debian.org/682347.)
> Running "editor" from the $PATH instead of using that full path should
> be perfectly acceptable and IMHO is a better behavior, since it allows
> the user to put a custom editor in /usr/local/bin or $HOME/bin.

ISTM that the intention is for the user to set EDITOR and PAGER to
select an editor or pager, rather than putting things called 'editor'
and 'pager' into PATH.  This seems sensible because 'editor' and 'pager'
are fairly generic terms and a user might have things in ~/bin/editor or
~/bin/pager that don't edit or page, respectively.

-- 
Sean Whitton

Attachment: signature.asc
Description: PGP signature


Reply to: