我安装了grml的配置文件,这些文件中的某些内容似乎导致多行命令在执行之前重新回显自己。例如
user@machine ~ % cat << EOF
\`heredoc> this
\`heredoc> that
\`heredoc> EOF
this
that
EOFthis
that
user@machine ~ %
我看了一下设定的选项,但似乎没有人对此负责。
你们知道如何禁用回音,这样上面的
...
\`heredoc> EOF
this
that
user@machine ~ %
(不论是否有空白行)
发布于 2013-08-03 08:59:25
使用抓取的配置与:
# IMPORTANT: please note that you might override an existing
# configuration file in the current working directory! =>
wget -O .zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
# Optionally also grab the user configration:
# wget -O .zshrc.local http://git.grml.org/f/grml-etc-core/etc/skel/.zshrc
(来自这里),我无法复制这个问题。我尝试使用和不使用用户配置进行复制(在上面的配置中使用~/.zshrc.local
):
simont@charizard ~ % cat << EOF
\`heredoc> this
\`heredoc> that
\`heredoc> EOF
this
that
simont@charizard ~ %
如果没有进一步的信息,很难对这个问题给出一个决定性的答案。要完全回答这个问题,有些事情是必要的:
~/.zshrc
的内容,我建议用zsh -f
加载一个新的shell,然后慢慢地添加配置的部分,直到您复制这种行为。
https://stackoverflow.com/questions/16120888
复制相似问题