A jail with a dash in its name

Ivan Voras ivoras at freebsd.org
Tue Dec 21 15:31:51 UTC 2010

On 21/12/2010 12:23, Christer Solskogen wrote:
> On Tue, Dec 21, 2010 at 12:06 PM, krad<kraduk at 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:


     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 

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

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.

More information about the freebsd-questions mailing list