[Bug 286429] sh: vi mode not leaving insert mode until set -o is run
Date: Wed, 20 May 2026 23:28:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286429 --- Comment #2 from Mason Loring Bliss <mason@blisses.org> --- Just noticed this again on FreeBSD 15, so presumably it'll make it into FreeBSD 15.1. And I note a number of people hitting it on Libera #freebsd over time. I'd recommend at the least adding a comment: --- a/usr/share/skel/dot.shrc 2026-05-20 23:25:15.512281000 +0000 +++ b/usr/share/skel/dot.shrc 2026-05-20 23:26:34.544628000 +0000 @@ -14,6 +14,10 @@ # Uncomment this to enable the builtin vi(1) command line editor in sh(1), # e.g. ESC to go into visual mode. +# XXX Warning! If you uncomment "set -o vi" then please comment out the +# "bind" lines, below, or "set -o vi" won't function. See the following +# bug: +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286429 # set -o vi -- You are receiving this mail because: You are the assignee for the bug.