更改目录会回显“目录:

发布于 2024-09-25 06:27:54 字数 274 浏览 1 评论 0原文

在我的 SLED10 机器上使用 Screen 时,我遇到了一个恼人的问题。更改目录(cd、chdir、pushd/popd)时,结果路径会在终端中回显。

user@/home/user> cd ..
Directory: /home
user@/home> 

这个问题似乎只存在于Screen中。我检查了我的提示,它不包含与此行为相关的任何内容。我正在使用 tcsh/xterm。

如何消除目录的回显?!

此致, 斯特凡

I have an annoying problem when using Screen on my SLED10 machine. When changing directory (cd, chdir, pushd/popd) the resulting path is echoed in the terminal.

user@/home/user> cd ..
Directory: /home
user@/home> 

This problem only seem to exist in Screen. I have checked my prompt and it does not contain anything related to this behavior. I am using tcsh/xterm.

How do I get rid of the echo of the directory?!

Best Regards,
Stefan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

茶花眉 2024-10-02 06:27:54

也许 cd 已被别名或函数覆盖。

进入屏幕后,使用:
alias cd 查看是否存在别名,
declare -f 检查您的函数。

Maybe cd has been overridden with an alias or a function.

Once in screen, use:
alias cd to see if there is an alias and
declare -f to check your functions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文