[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cd // produces unexpected results
From: |
Chet Ramey |
Subject: |
Re: cd // produces unexpected results |
Date: |
Fri, 22 Jun 2012 15:47:02 -0400 |
> 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.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/