From nobody Tue Apr 29 00:12:41 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZmgkK5jD7z5v67C for ; Tue, 29 Apr 2025 00:12:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZmgkK0PC3z3PCb for ; Tue, 29 Apr 2025 00:12:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1745885561; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Fm4EaE5B6aqbFXLzly/5r/VnUOrx//uhUPt1q7IpqTg=; b=BKrEiJy3oG3KLIIZS14VnYHslx3C/W2WiiSeTTeaKSW2JUpME5LeYMSzkaMCNFbctvoMoC O0DfZMh8n7uRqk+MSHheN5KMj54dsW3VcW3VsISII7ptpp/fjlGHrYEa64utIueQ4PpSfa p95iML52YgtmoQyFuJS2ZV9u3yVmMGkBvjfzw4Ndluaq6IAeZpjoBa6Ob7Ucd0OTh8AL+D 3GsB7688ZSKdqhmnApt2hITwEFs1tdSK+24RtR51JxpWox7QBWIAZIwGeh1qoaBIgWznNd 0Ij4IAsJMMrp4aKtypjtO7Z4FDFSkaGrV/f3fC8VOp1Ss9HA6/MT5ckS+b9zGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1745885561; a=rsa-sha256; cv=none; b=Zqs4EKmnHR60nPIhEBQHLdpTVo9GX67Gb+FI8DO9nR+vq/CpuGw3hDrmOyBQ1P+7C8lSMu AJsQ8w0PeExXn27PicQbMLSx/Y2qFx1nnkCGVfWflbOeGWJ1j2M+iD8PyLt2kDa5NEeEbi U+NQEQrZk7zfPFO+ZHLVLT3s2mDSYCHqDRSNOuGhU2KJqVV3WOeezmbUZKbXWr1DlPLayQ jGQpUXkdBanjVtmSqvFaTvEZma4XtlnHZ5R5xRu2kK2RhvHGA0uRFQC4ZxCESPU/V1biFW niD6k9hZb9Bjva41h5RC+21763Q1SgeH1dQ2e2KRXwDcAOQOhZVJhoN8CY69yA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1745885561; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Fm4EaE5B6aqbFXLzly/5r/VnUOrx//uhUPt1q7IpqTg=; b=GD4MiTH810o5RrPA5QwV8epoZt36QtuxvELGc19rb2bxKHYPKvG3Kdc+EpfHWn5b5vcZX/ 8ZSEzBMv+HoVpm3qAYlTVNioUFkClbRk00JPXEd0fCO5AaSE8YgcSlhFejOrDT1ovXH8So YR/lskT8MiVsHSI7vYx/cM7xg3EVSIUP69UiAqnz4AjtIuPYAhNkbo1SddsNFBCAH+zNnr 3pdBqSSoZ2y9d0ZY7j/If7cZzKCdoqQg5j1kjH4vkEQmJYaJNXtgP7/NquQN0SEwWlCh8w D1h5snCzfdkabfWUjSE26570MvPDzaqBODnow2AV7wHRUTl+sMo2D8YfMWXoiQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZmgkJ6yRbzxRH for ; Tue, 29 Apr 2025 00:12:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 53T0CeRL085591 for ; Tue, 29 Apr 2025 00:12:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 53T0CeO9085590 for bugs@FreeBSD.org; Tue, 29 Apr 2025 00:12:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 286429] vi mode in /bin/sh not leaving insert mode until set -o is run Date: Tue, 29 Apr 2025 00:12:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mason@blisses.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D286429 --- Comment #1 from Mason Loring Bliss --- If I jexec into /bin/sh and source root's .shrc, for instance, I see the=20 same issue. In either case - ssh or jexec - if I say set -o vi, it works=20 right off the bat. And... It's one of the binds. Or all of them. If I comment them all out, vi mode works appropriately. If I uncomment any of them, I see the broken behaviour. # # csh like history on arrow up and down #bind ^[[A ed-search-prev-history #bind ^[[B ed-search-next-history # # ctrl+arrow allow to jump from words to words #bind "\\e[1;5C" em-next-word #bind "\\e[1;5D" ed-prev-word alias history=3D'fc -l' # Fix home/del for mobaxterm #bind ^[[5~ ed-move-to-beg #bind ^[[6~ ed-move-to-end I'm still unclear on why running "set -o" mitigates the issue. I'm a little curious if that undoes those binds, when vi mode is enabled. --=20 You are receiving this mail because: You are the assignee for the bug.=