Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 2008 15:13:24 -0800
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Maxim Sobolev <sobomax@sippysoft.com>
Cc:        "ports@freebsd.org" <ports@FreeBSD.ORG>
Subject:   Re: cd // - bash is funny???
Message-ID:  <20081114231324.GA57195@icarus.home.lan>
In-Reply-To: <491DFC74.2040301@sippysoft.com>
References:  <491DFC74.2040301@sippysoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 14, 2008 at 02:32:20PM -0800, Maxim Sobolev wrote:
> [sobomax@sobomac ~]$ cd //
> [sobomax@sobomac //]$ pwd
> //
> [sobomax@sobomac //] /bin/pwd
> /
> [sobomax@sobomac //]
>
> What's that? Happens on bash 3.x, checked range of boxes from 6.x to 8.x  
> and arches from powerpc to amd64. "cd ///" at the same time is OK:
>
> [sobomax@sobomac //]$ cd ///
> [sobomax@sobomac /]$
>
> Is it off-by-one error?

The Bash FAQ covers this, I think.  See E10.

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081114231324.GA57195>