Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NXk97-0001CC-7k for mharc-grub-devel@gnu.org; Wed, 20 Jan 2010 18:39:33 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXk95-0001Ad-Pd for grub-devel@gnu.org; Wed, 20 Jan 2010 18:39:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXk90-00013l-LZ for grub-devel@gnu.org; Wed, 20 Jan 2010 18:39:31 -0500 Received: from [199.232.76.173] (port=45659 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXk90-00013U-F0 for grub-devel@gnu.org; Wed, 20 Jan 2010 18:39:26 -0500 Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]:33626) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXk90-00042p-3u for grub-devel@gnu.org; Wed, 20 Jan 2010 18:39:26 -0500 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost03.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1NXk8y-0000xV-Jp for grub-devel@gnu.org; Wed, 20 Jan 2010 23:39:24 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1NXk8x-0005dV-00; Wed, 20 Jan 2010 23:39:23 +0000 Date: Wed, 20 Jan 2010 23:39:22 +0000 From: Colin Watson To: The development of GNU GRUB Message-ID: <20100120233922.GT5847@riva.ucam.org> References: <20100120233042.GA4749@pina.cat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100120233042.GA4749@pina.cat> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost03-IP: [82.69.40.219] X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: handling "/" X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2010 23:39:32 -0000 On Wed, Jan 20, 2010 at 11:30:42PM +0000, Carles Pina i Estany wrote: > I've seen a couple of patches about handling "/". > > In Linux (I think that it's up to Linux, but maybe is libc?) things like > ///bin///// are valid. Or things like /var/tmp// > > Is this not everywhere? I've not verified if POSIX paths says this, but > would avoid the things that has been patching and unpatching today. POSIX says: Multiple successive characters are considered to be the same as one , except for the case of exactly two leading characters. (Two leading characters are implementation-defined; I think this is for compatibility with the way some systems handle network mounts.) However, many people feel that multiple contiguous slashes are inelegant anyway, and strive to avoid them. -- Colin Watson [cjwatson@ubuntu.com]