From owner-freebsd-current@FreeBSD.ORG Tue Feb 22 20:44:57 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 699A616A4CE for ; Tue, 22 Feb 2005 20:44:57 +0000 (GMT) Received: from vbook.fbsd.ru (user149.hovrino.net [82.179.232.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBBF843D49 for ; Tue, 22 Feb 2005 20:44:56 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.44 (FreeBSD)) id 1D3gtl-0000La-Lw; Tue, 22 Feb 2005 23:44:49 +0300 From: Vladimir Grebenschikov To: Andreas Kohn In-Reply-To: <1109103592.84939.11.camel@klamath.syndrom23.de> References: <1109103592.84939.11.camel@klamath.syndrom23.de> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Tue, 22 Feb 2005 23:44:48 +0300 Message-Id: <1109105088.1274.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.1.5 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: freebsd-current@freebsd.org Subject: Re: cd into // works? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 20:44:57 -0000 =F7 =D7=D4, 22/02/2005 =D7 21:19 +0100, Andreas Kohn =D0=C9=DB=C5=D4: >Hi, > >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 > >I checked with Linux, and there everything works as expected: >[catalina] ~>cd // >[catalina] />pwd >/ > >Is this expected behavior?=20 Looks like bash bug/feature a) /bin/pwd instead of internal pwd for bash - show real path b) try another shell sh or tcsh - both works as expected >Regards, >Andreas > >[1] I always thought it was the shell, but I have the same shell (bash=20 > 3) on FreeBSD and Linux.=20 Probably different version/build flags ? --=20 Vladimir B. Grebenchikov vova@fbsd.ru