简体   繁体   中英

Changing directory echoes “Directory: <pwd>”

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM