leahneukirchen / mblaze

Unix utilities to deal with Maildir
Other
441 stars 48 forks source link

fallback to $VISUAL #206

Closed ghost closed 3 years ago

ghost commented 3 years ago

I would suggest EDITOR="${VISUAL:-${EDITOR:-vi}}" in mcom instead of only ${EDITOR:-vi}.

On OpenBSD in man ksh it says under EDITOR:

                Note: traditionally, EDITOR was used to specify the name of
                an (old-style) line editor, such as ed(1), and VISUAL was
                used to specify a (new-style) screen editor, such as vi(1).
                Hence if VISUAL is set, it overrides EDITOR.

Can create a pull request if appreciated. Thanks for the great work!