当我在 Debian 6.0 (Squeeze) 上的 Emacs 中运行 shell-command 时,例如
(shell-command "ls")
输出前面有
bash: cannot set terminal process group (-1): Invalid argument bash: no job control in this shell
这在将 shell 命令(例如 perltidy)应用于缓冲区时尤其烦人,因为这些行最终位于缓冲区的顶部。
这是新安装的 Debian 6.0 (Squeeze) 系统,带有来自 apt-get 的最新 emacs。
% uname -a Linux 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC 2011 x86_64 GNU/Linux % emacs --version GNU Emacs 23.2.1 % dpkg -l | grep emacs ii emacs 23.2+1-7 ii emacs23 23.2+1-7 ii emacs23-bin-common 23.2+1-7 ii emacs23-common 23.2+1-7 ii emacsen-common 1.4.22
很乐意根据需要提供其他信息。谢谢!
最佳答案
没关系,是因为这个:
(set-variable 'shell-command-switch "-ic")
关于bash - Emacs shell 命令输出 "cannot set terminal process group"和 "no job control in this shell",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9471341/