From owner-freebsd-doc@FreeBSD.ORG Tue Oct 25 23:18:50 2005 Return-Path: X-Original-To: freebsd-doc@FreeBSD.org Delivered-To: freebsd-doc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B920F16A41F; Tue, 25 Oct 2005 23:18:50 +0000 (GMT) (envelope-from trhodes@FreeBSD.org) Received: from pittgoth.com (ns1.pittgoth.com [216.38.206.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id B00DC43D49; Tue, 25 Oct 2005 23:18:47 +0000 (GMT) (envelope-from trhodes@FreeBSD.org) Received: from localhost (net-ix.gw.ai.net [205.134.160.6] (may be forged)) (authenticated bits=0) by pittgoth.com (8.13.4/8.13.4) with ESMTP id j9PNShYN040027 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 25 Oct 2005 19:28:46 -0400 (EDT) (envelope-from trhodes@FreeBSD.org) Date: Tue, 25 Oct 2005 19:17:51 -0400 From: Tom Rhodes To: Brooks Davis Message-Id: <20051025191751.36c120f6.trhodes@FreeBSD.org> In-Reply-To: <20051024174054.GA7433@odin.ac.hmc.edu> References: <200510230010.j9N0AKEc038996@freefall.freebsd.org> <20051024174054.GA7433@odin.ac.hmc.edu> X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-doc@FreeBSD.org, keramida@FreeBSD.org Subject: Re: docs/87351: Jail building instructions don't work as described with default CSH shell X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2005 23:18:50 -0000 On Mon, 24 Oct 2005 10:40:54 -0700 Brooks Davis wrote: > On Sun, Oct 23, 2005 at 12:10:20AM +0000, Giorgos Keramidas wrote: > > The following reply was made to PR docs/87351; it has been noted by GNATS. > > > > From: Giorgos Keramidas > > To: "Eli K. Breen" > > Cc: freebsd-gnats-submit@freebsd.org > > Subject: Re: docs/87351: Jail building instructions don't work as described with default CSH shell > > Date: Sat, 22 Oct 2005 20:32:32 +0300 > > > > On 2005-10-13 00:05, "Eli K. Breen" wrote: > > > Building jails does not work as perscribed in the man (8) jail > > > docs. The default shell for root on a new and stock FreeBSD box is > > > csh, the instruction include the line: > > > > > > D=/path/to/your/jail > > > > > > ..which does not work under csh, this returns a Command Not Found error. > > > > > switch to csh, try to build a jail using the supplied instructions > > > from the jail(8) manpage. > > > > > user@box# csh > > > user@box# D=/path/to/your/jail > > > D=/path/to/your/jail: Command not found. > > > user@box# > > > > > jail manpage currently reads: > > > > > > D=/here/is/the/jail > > > cd /usr/src > > > mkdir -p $D > > > make world DESTDIR=$D > > > cd etc > > > make distribution DESTDIR=$D > > > mount_devfs devfs $D/dev > > > cd $D > > > ln -sf dev/null kernel > > > > > > ..and should read: > > > > > > set D=/here/is/the/jail > > > cd /usr/src > > > mkdir -p $D > > > make world DESTDIR=$D > > > cd etc > > > make distribution DESTDIR=$D > > > mount_devfs devfs $D/dev > > > cd $D > > > ln -sf dev/null kernel > > > > > > .. or specify that the instructions do not work under csh. > > > > I'd certainly support adding a note that these commands work fine fror > > sh(1) and other Bourne shells. Then we can probably add another set of > > commands for csh, if that seems nice to have. > > Shell examples are traditionally in sh. I'd really rather not see use > bloat every instance of them with a csh example. Users can always type > "sh". I'm inclined to agree with Brooks. -- Tom Rhodes