From owner-freebsd-chat Thu Dec 13 17:41:37 2001 Delivered-To: freebsd-chat@freebsd.org Received: from ocis.ocis.net (ocis.ocis.net [209.52.173.1]) by hub.freebsd.org (Postfix) with ESMTP id A215137B417 for ; Thu, 13 Dec 2001 17:41:33 -0800 (PST) Received: from phoenix (dial-39.ocis.net [209.52.173.71]) by ocis.ocis.net (8.9.3/8.9.3) with ESMTP id RAA13232 for ; Thu, 13 Dec 2001 17:41:32 -0800 From: "Freddie Cash" Organization: PhoenixTek Consulting To: Freebsd-chat Date: Thu, 13 Dec 2001 17:43:22 -0800 MIME-Version: 1.0 Subject: Re: whats this?! Reply-To: fcash@bigfoot.com Message-ID: <3C18E8BA.24815.F0A8EDA@localhost> In-reply-to: References: <3C1954A6.8264978A@pantherdragon.org> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > On 14-Dec-01 Darren Pilgrim wrote: > > "Gary W. Swearingen" wrote: > >> Nathan Mace 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