bash - Emacs shell 命令输出 "cannot set terminal process group"和 "no job control in this shell"

标签 bash emacs debian

当我在 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/

相关文章:

emacs - 交互式选择多个项目

emacs - 在状态行中显示功能名称

google-chrome - Chromium 无法保存 http 身份验证凭据

docker - 在 Docker 构建期间安装 Homebrew 软件包

bash - sed 用多行替换变量

linux - 用多个尾随模式替换行

linux - 使用linux脚本发送电子邮件

Emacs 记住文本选择

JavaFX 应用程序在 Debian 上抛出空指针异常

linux - 隐藏明文密码不显示在 bash 脚本中?