Bash Emacs外壳命令输出";无法设置“终端进程组”;及;“此外壳中没有作业控制”;

Bash Emacs外壳命令输出";无法设置“终端进程组”;及;“此外壳中没有作业控制”;,bash,emacs,debian,Bash,Emacs,Debian,当我在Debian6.0(挤压)上的Emacs中运行shell命令时,例如 (shell命令“ls”) 输出前面有 bash: cannot set terminal process group (-1): Invalid argument bash: no job control in this shell bash:无法设置终端进程组(-1):参数无效 bash:此shell中没有作业控制 当将shell命令(例如perltidy)应用于缓冲区时,这尤其令人讨厌,因为这些行最终位于缓冲区的

当我在Debian6.0(挤压)上的Emacs中运行shell命令时,例如

(shell命令“ls”)
输出前面有

bash: cannot set terminal process group (-1): Invalid argument bash: no job control in this shell bash:无法设置终端进程组(-1):参数无效 bash:此shell中没有作业控制 当将shell命令(例如perltidy)应用于缓冲区时,这尤其令人讨厌,因为这些行最终位于缓冲区的顶部

这是一个新安装的Debian 6.0(挤压)系统,带有来自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 %联阿援助团 Linux 2.6.32-5-xen-amd64#1 SMP周二3月8日00:01:30 UTC 2011 x86_64 GNU/Linux %emacs——版本 GNU Emacs 23.2.1 %dpkg-l | grep emacs 二、emacs 23.2+1-7 ii emacs23 23.2+1-7 ii emacs23标准箱普通23.2+1-7 ii emacs23通用23.2+1-7 ii emacsen通用1.4.22
乐意提供所需的其他信息。谢谢

没关系,这是因为:

(set-variable 'shell-command-switch "-ic")

我怀疑故事还有更多的内容。请参阅上报告的问题(这是针对Cygwin环境的问题,但潜在的错误可能会影响Linux和Cygwin上的bash行为)。

它将“-ic”传递给shell,这意味着shell的行为应该是一个交互式shell(“-i”),它将从“-c”后面的字符串中读取命令。链接似乎已失效。web.archive.org建议改为: