On 12/11/16 4:10 PM, Jonathan Ździarski wrote: > Hey there- > > Noticed in bash you can cd into paths prefixed with double slash; e.g. “cd > //usr/sbin” and it will set the pwd environment variable as such; not sure if > this was intended or not, but can see where some poor guy’s aliases or bash > scripts are likely to barf.
Posix requires it. Look at the Bash FAQ, question E10, or one of the previous bug-bash discussions, such as https://lists.gnu.org/archive/html/bug-bash/2011-08/msg00294.html Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/