Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 2024 20:13:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 280889] bin/sh: `set -o vi` in .profile has no effect
Message-ID:  <bug-280889-227-FqRZFkAQXj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-280889-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280889

Ed Maste <emaste@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bapt@FreeBSD.org

--- Comment #1 from Ed Maste <emaste@freebsd.org> ---
This is caused by the bind commands that exist by default in .~/shrc, e.g.

# csh like history on arrow up and down
bind ^[[A ed-search-prev-history
bind ^[[B ed-search-next-history

With these commands commented out `set -o vi` in .profile functions as
expected. This is the same sort of issue described in PR215958.

If I call histedit() unconditionally in bindcmd the problem is avoided. Perhaps
individual bind commands undo the effect of `el_set(el, EL_EDITOR, "vi")`?

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280889-227-FqRZFkAQXj>