On Mon, Aug 31, 2009 at 06:23:27AM -0600, Eric Blake wrote: > > Which version of POSIX are you looking at? POSIX 2008 added quite a few > clarifications about the handling of // that were not listed in POSIX 2001. > > http://www.opengroup.org/onlinepubs/9699919799/utilities/cd.html > > "5. Starting with the first pathname in the <colon>-separated pathnames of > CDPATH (see the ENVIRONMENT VARIABLES section) if the pathname is > non-null, test if the concatenation of that pathname, a <slash> character > if that pathname did not end with a <slash> character, and the directory > operand names a directory."... > > In other words, if CDPATH is "/", then you should not append any > additional <slash> characters, such that you end up checking for the > existence of "/foo", not "//foo". Fair enough. However, I noticed that they haven't fixed up PATH to do the same thing. Since we use the same function for PATH and CDPATH, I'm not going to make any changes until POSIX becomes consistent in this respect. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html