Source-Changes-D archive

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

Re: CVS commit: src/bin/sh



On Fri, Aug 19, 2022 at 04:15:52AM +0700, Robert Elz wrote:
> The effect of "set -o editor" (for whichever editor it uses), that
> is when the shell does: el_set(el, EL_EDITOR, editor); is to essentially
> set up all the key bindings so they match what that editor expects them
> to be.   Doing that after having processed .editrc seems backwards to me,
> as whatever that file did (at least for key bindings) is going to be lost.

This makes sense.  I have been mulling over whether NetBSD should
install an ~/.editrc file by default, and in this case it "feels
right" that runtime commands take precedence over config files.

However, there's some non-trivial ways this can go wrong, including
your example.

I wish editing mode and whether editing was enabled was more clearly
divorced.


Home | Main Index | Thread Index | Old Index