]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh: reset sh bindings on bind -e, bind -v
authorPiotr Pawel Stefaniak <pstef@FreeBSD.org>
Sun, 19 Sep 2021 20:17:01 +0000 (22:17 +0200)
committerPiotr Pawel Stefaniak <pstef@FreeBSD.org>
Wed, 22 Sep 2021 08:54:51 +0000 (10:54 +0200)
commit9413dfd331e705a1d7909fe41f06a30e43c442f7
treeb4371d29e644cae09f7572e9ec2bd3ad478da3f1
parent908b8e32f9deb55441fac75b8d1e3865e3d5302f
sh: reset sh bindings on bind -e, bind -v

Until this change, any bindings set in histedit() were lost on calls to
bindcmd().

Only bind -e and bind -v call libedit's keymacro_reset(). Currently you
cannot fool libedit/map.c:map_bind() by trying something like bind -le
as when p[0] == '-', it does a switch statement on p[1].
bin/sh/histedit.c