Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2001 17:43:22 -0800
From:      "Freddie Cash" <fcash@bigfoot.com>
To:        Freebsd-chat <freebsd-chat@FreeBSD.ORG>
Subject:   Re: whats this?!
Message-ID:  <3C18E8BA.24815.F0A8EDA@localhost>
In-Reply-To: <XFMail.011213173055.jhb@FreeBSD.org>
References:  <3C1954A6.8264978A@pantherdragon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> On 14-Dec-01 Darren Pilgrim wrote:
> > "Gary W. Swearingen" wrote:
> >> Nathan Mace <nmace85@yahoo.com> writes:
> >> > type 'cd //' and then do a pwd.
> >> > what causes this?  found it by accident

> >> I get "/" in pdksh, as expected.
> >> You might have found a feature of some proprietary shell.

> > I wouldn't exactly call bash a proprietary shell:

> But it certainly is a buggy shell. :)

It's a Bash "feature".  Anywhere that you can use / in a path, you can 
use multiple /'s.  It only sees the first one and ignores everything up 
to the first non-/ character.

I've run across this several times in the past, especially with autoconf-
generated init.d scripts on Linux systems running Bash1 and Bash2.

Even though it shows you multiple slashes, internally it treats them all 
as one.  [shrug] go fig.

Cheers,
Freddie			PhoenixTek Consulting
fcash@bigfoot.com	Unix / Networking Services
			(250) 314-4029


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C18E8BA.24815.F0A8EDA>