On 6/22/12 5:58 PM, Stefano Lattarini wrote: > On 06/22/2012 09:47 PM, Chet Ramey wrote: >>> By accident I keyed in : >>> >>> cd // >>> >>> and noticed that my prompt included both slashes. >> >> Posix says shells have to leave two leading slashes in a pathname alone. >> Three or more can be collapsed to one, but two have to stay unchanged. >> This has come up multiple times in the past. >> > A little more info, quoting from the Autoconf manual:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html#tag_20_14 Step 8c. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/