Emacs Shell命令输出“无法设置终端进程组”和“此Shell中没有作业控制”

Jon*_*rtz 2 emacs bash debian

当我在Debian 6.0(Squeeze)上的Emacs中运行shell命令时,例如

(shell-command "ls")
Run Code Online (Sandbox Code Playgroud)

输出之前

bash:无法设置终端进程组(-1):无效的参数
bash:此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-版本
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常见的1.4.22

很高兴根据需要提供其他信息。谢谢!

Jon*_*rtz 5

没关系,这是因为:

(set-variable 'shell-command-switch "-ic")
Run Code Online (Sandbox Code Playgroud)

  • 那是做什么的? (3认同)