From owner-freebsd-current@FreeBSD.ORG Wed Feb 23 03:36:35 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 678ED16A4CE for ; Wed, 23 Feb 2005 03:36:35 +0000 (GMT) Received: from les.ath.cx (12.41.244.43.ap.yournet.ne.jp [43.244.41.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id B420243D53 for ; Wed, 23 Feb 2005 03:36:33 +0000 (GMT) (envelope-from qhwt+fbsd@les.ath.cx) Received: by les.ath.cx (Postfix, from userid 1000) id 6FD651B8760; Wed, 23 Feb 2005 12:36:30 +0900 (JST) Date: Wed, 23 Feb 2005 12:36:30 +0900 From: YONETANI Tomokazu To: Andreas Kohn Message-ID: <20050223033630.GA996@les.ath.cx> References: <1109103592.84939.11.camel@klamath.syndrom23.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1109103592.84939.11.camel@klamath.syndrom23.de> User-Agent: Mutt/1.5.6i cc: freebsd-current@freebsd.org Subject: Re: cd into // works? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 03:36:35 -0000 On Tue, Feb 22, 2005 at 09:19:52PM +0100, Andreas Kohn wrote: > due to a typo, I typed > > [klamath] ~>cd // > > today. Okay, I'm used to the shell[1] changing any // into /, so I > expected to get to /. Now, I got there, but pwd/$PWD still have "//" in > them? > > [klamath] //>pwd > // > [klamath] //>echo $PWD > // > [klamath] //>cd //home// > [klamath] //home>pwd > //home Hi, I may be missing your point, but it's in the bash FAQ: $ less "+/^POSIX.2," /usr/local/share/doc/bash/FAQ > I checked with Linux, and there everything works as expected: > [catalina] ~>cd // > [catalina] />pwd > / > > Is this expected behavior? This one isn't expected, or maybe the bash version is old (according to CHANGES file, bash-2.0.1-release is the first release with this change in path canonicalization). Cheers.