From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 31 19:16:47 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58F2637B401 for ; Thu, 31 Jul 2003 19:16:47 -0700 (PDT) Received: from topperwein.pennasoft.com (user183.net446.oh.sprint-hsd.net [65.40.131.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5232D43FBF for ; Thu, 31 Jul 2003 19:16:46 -0700 (PDT) (envelope-from behanna@behanna.org) Received: from topperwein.pennasoft.com (topperwein.pennasoft.com [192.168.168.10])h712Gj9k075684 for ; Thu, 31 Jul 2003 22:16:45 -0400 (EDT) (envelope-from behanna@behanna.org) Date: Thu, 31 Jul 2003 22:16:40 -0400 (EDT) From: Chris BeHanna Sender: behanna@topperwein.pennasoft.com To: FreeBSD-Hackers In-Reply-To: <20030731000842.GE531@zi025.glhnet.mhn.de> Message-ID: <20030731221450.A75410@topperwein.pennasoft.com> References: <20030730224505.GD531@zi025.glhnet.mhn.de> <1059607242.64020.5.camel@mjtdev1.dand06.au.bytecraft.au.com> <1059608748.64020.10.camel@mjtdev1.dand06.au.bytecraft.au.com> <20030731000842.GE531@zi025.glhnet.mhn.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: getfsent(3) and spaces in fstab X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: chris@behanna.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2003 02:16:47 -0000 On Thu, 31 Jul 2003, Simon Barner wrote: > > Just a thort, not having tried it .. > > > > does either of the 'standard' methods of including spaces actually work > > in fstab ?? > > > > I speak of quoting (either single or double) and backslashing the space > > > > "/mnt/space/silly long dirname/filename also with spaces" > > > > or > > > > /mnt/space/silly\ long\ dirname/filename\ also\ with\ spaces > > Sorry, I should have written that I have performed tests: > > Here is what I did: > > test\ 1 /mnt/test\ 1 ufs ro 0 0 > 'test 2' '/mnt/test 2' ufs ro 0 0 > "test 3" "/mnt/test 3" ufs ro 0 0 > > This test program > > [...snipped...] > > Gives me the following output: > > fstab: /etc/fstab:14: Inappropriate file type or format > fstab: /etc/fstab:15: Inappropriate file type or format > fstab: /etc/fstab:16: Inappropriate file type or format What about test%201 /mnt/test%201 ufs ro 0 0 ? Ugly, yes, but that's how a lot of tools escape spaces. -- Chris BeHanna Software Engineer (Remove "bogus" before responding.) chris@bogus.behanna.org Turning coffee into software since 1990.