From owner-freebsd-questions@FreeBSD.ORG Tue Dec 21 12:11:40 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 7D0081065679 for ; Tue, 21 Dec 2010 12:11:40 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (ns2.r-bonomi.com [204.87.227.129]) by mx1.freebsd.org (Postfix) with ESMTP id 0FB0F8FC16 for ; Tue, 21 Dec 2010 12:11:39 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.3/rdb1) id oBLCBbJW007155; Tue, 21 Dec 2010 06:11:37 -0600 (CST) Date: Tue, 21 Dec 2010 06:11:37 -0600 (CST) From: Robert Bonomi Message-ID: <201012211211.oBLCBbJW007155@mail.r-bonomi.com> To: christer.solskogen@gmail.com, freebsd-questions@freebsd.org Cc: 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 12:11:40 -0000 > From owner-freebsd-questions@freebsd.org Tue Dec 21 04:58:59 2010 > Date: Tue, 21 Dec 2010 11:58:38 +0100 > From: Christer Solskogen > To: FreeBSD Mailing List > Subject: A jail with a dash in its name > > 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? It looks to me like yo're chasing the wrong problem. That statement appears to be a shell variable assignment, yet the error message indicates that the system is trying to find an executable by the name of the entire expression. You need to show us the actual line in /etc/rc.conf _and_ the surrounding context.