A jail with a dash in its name
m.seaman at infracaninophile.co.uk
Tue Dec 21 20:26:56 UTC 2010
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=/usr/jails/forest-friend: not found
>> > how do I escape that?
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.
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew at infracaninophile.co.uk Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20101221/498d2406/signature.pgp
More information about the freebsd-questions