[Bug 280889] bin/sh: `set -o vi` in .profile has no effect
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 280889] bin/sh: `set -o vi` in .profile has no effect"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Aug 2024 20:13:15 UTC
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.