bug-bash
[Top][All Lists]
Advanced

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

Re: Double slash root cwd


From: Chet Ramey
Subject: Re: Double slash root cwd
Date: Sun, 11 Dec 2016 16:55:37 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

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    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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