> And in general, it is a bad idea to export CDPATH.  Using it in
> interactive shells as a non-environment shell variable is fine, but
> exporting it affects non-interactive shells.

There are good reasons to export CDPATH.  In particular, CDPATH is
inherited by interactive subshells.  For precisely that reason, my
startup files are careful to avoid resetting CDPATH, so that if I want
to change it and then invoke an interactive subshell I won't have to
change it a second time.

In general, it's a bad idea to assume that one's own usage patterns
match those of all other users.
-- 
    Geoff Kuenning   [EMAIL PROTECTED]   http://www.cs.hmc.edu/~geoff/

The P in "PDF" is a lie.






Reply via email to