Date: Tue, 22 Feb 2005 23:44:48 +0300 From: Vladimir Grebenschikov <vova@fbsd.ru> To: Andreas Kohn <andreas.kohn@gmx.net> Cc: freebsd-current@freebsd.org Subject: Re: cd into // works? Message-ID: <1109105088.1274.2.camel@localhost> In-Reply-To: <1109103592.84939.11.camel@klamath.syndrom23.de> References: <1109103592.84939.11.camel@klamath.syndrom23.de>
next in thread | previous in thread | raw e-mail | index | archive | help
=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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1109105088.1274.2.camel>