Date: Tue, 21 Dec 2010 20:26:43 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: A jail with a dash in its name Message-ID: <4D110D83.9080702@infracaninophile.co.uk> In-Reply-To: <201012211211.oBLCBbJW007155@mail.r-bonomi.com> References: <201012211211.oBLCBbJW007155@mail.r-bonomi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBACEECABA3726F7C0511B705 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 21/12/2010 12:11, Robert Bonomi wrote: >> I want to create a jail called forest-friend. And having a dash in the= >> > name seems to create problems for me. >> > >> > /etc/rc.conf: jail_forest-friend_rootdir=3D/usr/jails/forest-friend:= not found >> > >> > how do I escape that? You don't. rc.conf uses bourne shell syntax. The entries are all variable initializations. "jail_forest-friend_rootdir" is illegal as a variable name -- you can't have a '-' character in there. I suggest you /call/ your jail forest_friend and use that form in everything that appears on the LHS of an assignment in rc.conf. Of course, there's no problem with using the form 'forest-friend' on the RHS of any assignments, so long as it's properly quoted, of course. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enigBACEECABA3726F7C0511B705 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0RDYoACgkQ8Mjk52CukIwOpQCgjk54397YCjwTrNaJEPMmfm6m GsUAn0tgiHbL0Y20qzsMiOLBPS0K6V+u =jlvv -----END PGP SIGNATURE----- --------------enigBACEECABA3726F7C0511B705--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D110D83.9080702>