nmh-workers
[Top][All Lists]
Advanced

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

Re: [nmh-workers] Unnecessary dependency on vi???


From: Ralph Corderoy
Subject: Re: [nmh-workers] Unnecessary dependency on vi???
Date: Sun, 18 Mar 2018 12:23:08 +0000

Hi David,

> > sensible-editor(1) that programs can fall back on.
>
> That Debian package is available (sensible-utils) on Fedora.  If a
> suitable editor can't be found via VISUAL, EDITOR, etc., it falls back
> to nano.

It tries

    $VISUAL
    . ~/.selected_editor
    # Maybe run select-editor.
    $EDITOR
    $SELECTED_EDITOR
    nano
    nano-tiny
    vi
    # Error: tell user to set $EDITOR.
    
select-editor is run if $EDITOR isn't set and stdin is a TTY.

> It breaks when run under env -i.

No PATH confuses which(1).  I expect no PATH confuses quite a few
things.  :-)

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]