nmh-workers
[Top] [All Lists]

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

2018-03-18 07:23:24
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

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>