Path: utzoo!attcan!uunet!husc6!cmcl2!rutgers!rochester!pt.cs.cmu.edu!andrew.cmu.edu!jl42+ From: jl42+@andrew.cmu.edu (Jay Mathew Libove) Newsgroups: comp.unix.xenix Subject: re: "cd path" strangeness Message-ID: <8Wh1Nyy00VoDI6mFk3@andrew.cmu.edu> Date: 13 Jun 88 17:53:02 GMT Organization: Carnegie Mellon Lines: 29 I tried Chip Salzenberger's "cd path" command on Berkeley Unix 4.3 and on CMU Mach 4.3, and got the same strangeness he described; So, I looked at "man csh" and found: (reproduced without permission from csh.1, CMU mach 4.3) >cd >cd name >chdir >chdir name > Change the shell's working directory to directory "name". > If no argument is given then change to the home directory of > the user. > If "name" is not found as a subdirectory of the current directory > (and does not begin with `/', `./' or `../'), then each component > of the variable "cdpath" is checked to see if it has a subdirectory > "name". Finally, if all else fails but "name" is a shell variable > whose value begins with `/', then this is tried to see if it is a > directory. That last item, "if all else fails but "name" is a shell variable"... Well, most of us have "path" set to something beginning with a / right? There you go.... This is NOT a bug :-) Jay Libove Arpa: Jay.Libove@andrew.cmu.edu Bitnet: Jay.Libove@drycas.bitnet UUCP: ...!{uunet, ucbvax, harvard}!andrew.cmu.edu!Jay.Libove UUCP: ...!{pitt | bellcore} !darth!libove!libove