You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] bind set silently accepts invalid bell-style/keymap values (no "could not set value" diagnostic) #2871
bind 'set <var> <bogus>' 对枚举型 readline 变量 bell-style / keymap 给非法值时,rubash 静默接受、不报诊断;GNU 报 readline: <var>: could not set value to '<bogus>' 且保持原值。bell-style 的非法值还会被存下,bind -v 回读到非法值本身。
lib/readline/bind.c:2087 _rl_init_file_error ("%s: could not set value to %s'", name, value)`。
Regression seed:
bind'set bell-style bogus'2>&1;bind -v | grep bell-style
# GNU 期望:stderr 含 "readline: bell-style: could not set value to \`bogus'",且输出为 "set bell-style audible"bind'set keymap bogus'2>&1;bind -v | grep keymap
# GNU 期望:stderr 含 "readline: keymap: could not set value to \`bogus'",且输出为 "set keymap emacs"
Activity
fix(bind): r74 bind-face batch — set validation, listing untranslate,…