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?

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

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matt...@infracaninophile.co.uk               Kent, CT11 9PW

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to