From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 31 19:57:17 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 52F6837B401 for ; Thu, 31 Jul 2003 19:57:17 -0700 (PDT) Received: from mail.distalzou.net (203.141.139.231.user.ad.il24.net [203.141.139.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53DA143FBF for ; Thu, 31 Jul 2003 19:57:16 -0700 (PDT) (envelope-from devin@spamcop.net) Received: from glass.pun-pun.prv ([192.168.7.1]) by mail.distalzou.net with esmtp (TLSv1:AES256-SHA:256) (Exim 4.20) id 19iQ6T-000Lus-PI; Fri, 01 Aug 2003 11:57:13 +0900 Date: Fri, 1 Aug 2003 11:57:13 +0900 (JST) From: Tod McQuillin X-X-Sender: devin@glass.pun-pun.prv To: chris@behanna.org In-Reply-To: <20030731221450.A75410@topperwein.pennasoft.com> Message-ID: <20030801115526.U4264@glass.pun-pun.prv> 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> <20030731221450.A75410@topperwein.pennasoft.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: FreeBSD-Hackers Subject: Re: getfsent(3) and spaces in fstab X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list 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:57:17 -0000 On Thu, 31 Jul 2003, Chris BeHanna wrote: > What about > > test%201 /mnt/test%201 ufs ro 0 0 > > ? > Ugly, yes, but that's how a lot of tools escape spaces. Just FYI, here is how Linux handles this (from fstab(5)): The second field, (fs_file), describes the mount point for the filesys- tem. For swap partitions, this field should be specified as `none'. If the name of the mount point contains spaces these can be escaped as `\040'. It might be a good idea to use this method rather than inventing a new one. -- Tod McQuillin