bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash treats the directory '//' specially.


From: Chet Ramey
Subject: Re: Bash treats the directory '//' specially.
Date: Mon, 9 Jul 2001 10:50:42 -0400

> Machine Type: i386-pc-linux-gnu
> 
> Bash Version: 2.03
> Patch Level: 0
> Release Status: release
> 
> Description:
> 
> chiark:~$ cd /; pwd
> /
> chiark:/$ cd //; pwd
> //
> chiark://$ cd ///; pwd
> /
> chiark:/$ cd //u2/jdamery; pwd
> //u2/jdamery
> chiark://u2/jdamery$ cd /u2/jdamery; pwd
> /u2/jdamery

This is not a bug.  POSIX.2 requires that two leading slashes in a pathname
be preserved.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]