Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Dec 2010 16:31:38 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: A jail with a dash in its name
Message-ID:  <ieqh8q$o0q$1@dough.gmane.org>
In-Reply-To: <AANLkTinNFWOyj4bbb2YNaf0BE0=zh7F2Yf1HMkzghZMo@mail.gmail.com>
References:  <AANLkTi=XQa2hWqc9CCUMVWYMVyScEAaJ%2BVyMbpG1c4ZJ@mail.gmail.com>	<AANLkTi=ckci0WfOqLPkLQsAJKa1nQB7N2_8jSnbdbBCU@mail.gmail.com> <AANLkTinNFWOyj4bbb2YNaf0BE0=zh7F2Yf1HMkzghZMo@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 21/12/2010 12:23, Christer Solskogen wrote:
> On Tue, Dec 21, 2010 at 12:06 PM, krad<kraduk@gmail.com>  wrote:
>> i'd stay away from characters like that. It should be ok in theory to use
>> but in my experience it is more likely to cause problems in the future
>>
>
> There's no problem of having a dash in a hostname, so why should it be
> in a jailname?

Well, the immediate reason here is this:

http://www.gnu.org/software/bash/manual/bashref.html#Definitions

"""
name
     A word consisting solely of letters, numbers, and underscores, and 
beginning with a letter or underscore. Names are used as shell variable 
and function names. Also referred to as an identifier.
"""

(ignoring that /bin/sh is not bash but the syntax is the same for this 
purpose).

/etc/rc.conf is basically a shell script containing only variable 
assignments.

I think you actually *could* have jails with arbitrary names (including 
international / utf-8 if you're not worried about formatting much) but 
only if you are going to manage them manually, not with /etc/rc.conf.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ieqh8q$o0q$1>