Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Dec 2020 20:29:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 252091] forward delete key does not work for root user
Message-ID:  <bug-252091-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252091

            Bug ID: 252091
           Summary: forward delete key does not work for root user
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: sean@rogue-research.com

The forward delete key (aka "delete" aka "del", but *not* the "backspace" k=
ey)
does not work for the root user.

I have just created a vanilla FreeBSD 12.2-p1 (current newest) VM and if I =
ssh
to this server (from macOS 10.14.6, if it matters) as my own user then both=
 the
forward and backward delete keys work as expected.

But if I `su` then: backspace still works, but forward delete prints a tilde
and beeps.

At a BSD user group meeting, I got a workaround, which is to edit /root/.cs=
hrc
and append:

bindkey "\e[3~" delete-char

I don't know what that means or why it helps, but it does.

I think it would be rather nicer if such a commonly used key worked as expe=
cted
out-of-the-box!

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



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