From owner-freebsd-questions Mon Mar 16 20:50:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA18661 for freebsd-questions-outgoing; Mon, 16 Mar 1998 20:50:10 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA18601 for ; Mon, 16 Mar 1998 20:49:58 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id PAA08702; Tue, 17 Mar 1998 15:19:34 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id PAA29156; Tue, 17 Mar 1998 15:19:34 +1030 (CST) (envelope-from grog) Message-ID: <19980317151933.37369@freebie.lemis.com> Date: Tue, 17 Mar 1998 15:19:33 +1030 From: Greg Lehey To: Christopher Raven , freebsd-questions Subject: Re: Link to Ports CDROM References: <01bd510c$4b127480$0300a8c0@admin.cian.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <01bd510c$4b127480$0300a8c0@admin.cian.net>; from Christopher Raven on Mon, Mar 16, 1998 at 06:49:11PM -0000 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 16 March 1998 at 18:49:11 -0000, Christopher Raven wrote: > Help ! > > when attempting (with FreeBSD 2.2.5) to use the command : - > > # for i in *; do >> ln -s $i /usr/ports/distfiles/$i >> done > > in order to create a symbolic link to the ports on "/cdrom" (as > documented in The complete FreeBSD 2nd edition, p.96), I get as far as > > for i in *; do (RETURN) > > and the console returns the error:- > > for: Command not found > do: Command not found > > I have obviously set about this incorrectly but don't know why. Can > anybody enlighten me please ? My machine is not currently Interneted > so I need to install from the ports CDROM. As somebody else pointed out (and as you can see on page xxxiv), I assume the Bourne shell (not bash) in the book. This may not be the wisest choice in view of the fact that out of the box the system comes with the C shell for root. With the C shell, you would write # foreach i (*) ? ln -s $i /usr/ports/distfiles/$i ? end I'll put this in the errata. Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message