bug-bash
[Top][All Lists]
Advanced

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

Re: Double slash root cwd


From: Jonathan Zdziarski
Subject: Re: Double slash root cwd
Date: Sun, 11 Dec 2016 17:17:35 -0500

Cool... thanks!

Pardon teh spellnig; Sent form my iPhone

> On Dec 11, 2016, at 4:55 PM, Chet Ramey <chet.ramey@case.edu> wrote:
> 
>> 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    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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