|
Charges the current working directory to dir (which is quoted).
If dir is relative (does not begin with a /),
and the CDPATH environment variable is defined,
then cd will search each of the directories in CDPATH
for a sub-directory dir. Here, CDPATH is a string
of directory names, separted by colons; it should begin with ..
cd will try to hide symbolic links: If you cd
down a symbolic link, and later cd .., you will get back
where you started. In contrast, the chdir routine will
follow the physical .. link in the file system.
If dir is -, it is replaced by the value of $OLDPWD.
Thus cd - is the same as cd $OLDPWD.
|