David Kastrup [off-list ref] writes:
Not sure whether this is the problem: either cd does not understasnd
the double slashes, or your shell used for scripts has modified cd to
output some stuff when it is working (people sometimes imprudently
make shell functions or aliases for this).
Try writing something like
type cd
in a script file and see what output you get.
A one-word guess: CDPATH.
Bill, setting CDPATH in your interactive shell as a shell
variable is Ok, but exporting it as an environment does not make
much sense.
Really.