今天翻看 bash manual 的时候猛然发现 bash 居然有一个 EMACS 变量,用来指示 bash 是否在 Emacs 的 shell buffer 中执行,这种情况下 bash 会禁止行编辑功能。
关于 EMACS 变量的说明如下
EMACS If bash finds this variable in the environment when the shell
starts with value "t", it assumes that the shell is running in
an Emacs shell buffer and disables line editing.
