[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash unexpected directory prompting
From: |
Bob Friesenhahn |
Subject: |
Re: Bash unexpected directory prompting |
Date: |
Sat, 12 Apr 2008 11:39:43 -0500 (CDT) |
On Sat, 12 Apr 2008, Eric Blake wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Bob Friesenhahn on 4/11/2008 9:01 PM:
| I find that every time bash changes directories to a subdirectory it
| prints out the new directory path, but it does not print out the
| directory path after 'cd ..'. This includes when bash is used to
| execute scripts and it is not in an interactive mode.
What is CDPATH set to?
I have since learned that if CDPATH is set, then the shell prints the
new path every time the directory path is changed (something I have
been looking at every day for years). What does not make sense to me
is that this happens in non-interactive scripts as well.
Testing with some other shells shows similar behavior.
Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/