Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
That's what my PS1 is set to. However, bash ALSO chooses to display the pwd after each cd when CDPATH is set.
From the bash man page:
If a non-empty directory name from CDPATH is used, or if - is the
first argument, and the directory change is successful, the
absolute pathname of the new working directory is written to the
So this is the expected behaviour. If you want to supress the output, you will have to use something like the hack catkin suggested.