Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2003 22:16:40 -0400 (EDT)
From:      Chris BeHanna <behanna@behanna.org>
To:        FreeBSD-Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: getfsent(3) and spaces in fstab
Message-ID:  <20030731221450.A75410@topperwein.pennasoft.com>
In-Reply-To: <20030731000842.GE531@zi025.glhnet.mhn.de>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030731221450.A75410>