On Mon, Aug 28 2017, Stuart Henderson <s...@spacehopper.org> wrote: > On 2017-08-28, mar...@martinbrandenburg.com <mar...@martinbrandenburg.com> > wrote: >> What works is to set EDITOR in your profile, then set -o emacs. The other >> order will result in the shell changing to vi mode. > > That's fine until you su :) > >> Or we could all set EDITOR to ed, the STANDARD text editor. > > An alternative hack is "ln -s vi emacs-not-really" and use > EDITOR="emacs-not-really" ...
I thought about mentioning your hack in a previous mail in this thread; but really, this supposedly user-friendly behavior is just a pita. -- jca, who uses a shell script for $EDITOR...