[Top][All Lists]

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

Re: Why bash command "cd //" set path "//" ?

From: Eric Blake
Subject: Re: Why bash command "cd //" set path "//" ?
Date: Fri, 26 Aug 2011 11:20:09 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110817 Fedora/3.1.12-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.12

On 08/26/2011 04:38 AM, Andrey Demykin wrote:
Why bash command "cd //" set path "//" ?

Because POSIX says that implementations may (but not must) treat // specially. And rather than special case just the implementations that do treat it specially (such as cygwin), bash globally respects // on all platforms even where it is not special.

I found this in all version of the bash.
Excuse me , if it is not a bug.

Not a bug.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

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