Pierre Gaston wrote: > I think I did, if bash is invoked as sh, it behaves differently, one > of these differences is that > cd will not try to search in you current directory. > as soon as CDPATH is set, "cd Desktop" will only work if Desktop is in a > subdir > of the directories defined in CDPATH and will fail even if Desktop is > in your current dir. > > This behaviour is documented in the reference guide read again my first mail. > > It seems that this documented behaviour is a "bug" because POSIX > doesn't define it this way. I tend to agree with Erik on this point.
I have not made up my mind about it. The bash behavior when invoked as `sh' (or in posix mode) is the historical sh behavior, and is what other shells claiming posix compliance (ksh93, dash) or as close as you can get to a straight-line descendant of the bourne shell (SVR2 sh, SVR3 sh, SVR4.2 sh) do. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/