From owner-freebsd-questions@FreeBSD.ORG Tue Dec 21 20:26:56 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB4C41065740 for ; Tue, 21 Dec 2010 20:26:55 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 4CD688FC13 for ; Tue, 21 Dec 2010 20:26:55 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id oBLKQoWD026079 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 21 Dec 2010 20:26:50 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk oBLKQoWD026079 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1292963210; bh=S6baiOQBdmv9yn54jhVBY3jEzShA7hbtsiebPpJSxIM=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4D110D83.9080702@infracaninophile.co.uk>|Date:=20T ue,=2021=20Dec=202010=2020:26:43=20+0000|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20U=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20en-US=3B=20r v:1.9.2.13)=20Gecko/20101207=20Thunderbird/3.1.7|MIME-Version:=201 .0|To:=20freebsd-questions@freebsd.org|Subject:=20Re:=20A=20jail=2 0with=20a=20dash=20in=20its=20name|References:=20<201012211211.oBL CBbJW007155@mail.r-bonomi.com>|In-Reply-To:=20<201012211211.oBLCBb JW007155@mail.r-bonomi.com>|X-Enigmail-Version:=201.1.1|OpenPGP:=2 0id=3D60AE908C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp- sha1=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20 boundary=3D"------------enigBACEECABA3726F7C0511B705"; b=HGD4PuieNeXuWwDhEj5zk4wCzLvKz1S/IUITFCZ83d6yxdwl9ZzVOXCzK2XfBWXso 3ZQiaFHqz/94+O3hnSun1ByS1DHEc/+QzHP1hJm9guIQqLbO34exWxwYRUTmN02KB3 N8/zrmUECvw3nfW9hoTeAJ/bqDT5xUdexZ1ktXM0= Message-ID: <4D110D83.9080702@infracaninophile.co.uk> Date: Tue, 21 Dec 2010 20:26:43 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <201012211211.oBLCBbJW007155@mail.r-bonomi.com> In-Reply-To: <201012211211.oBLCBbJW007155@mail.r-bonomi.com> X-Enigmail-Version: 1.1.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBACEECABA3726F7C0511B705" X-Virus-Scanned: clamav-milter 0.96.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Subject: Re: A jail with a dash in its name X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 20:26:56 -0000 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--