From owner-freebsd-questions Mon Feb 4 8:41: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from relay3-gui.server.ntli.net (relay3-gui.server.ntli.net [194.168.4.200]) by hub.freebsd.org (Postfix) with ESMTP id 7A6BF37B417 for ; Mon, 4 Feb 2002 08:40:59 -0800 (PST) Received: from pc4-card4-0-cust162.cdf.cable.ntl.com ([80.4.14.162] helo=rhadamanth.private.submonkey.net ident=mailnull) by relay3-gui.server.ntli.net with esmtp (Exim 3.03 #2) id 16XmAr-00051c-00; Mon, 04 Feb 2002 16:40:57 +0000 Received: from setantae by rhadamanth.private.submonkey.net with local (Exim 3.34 #1) id 16XmAq-0001Kh-00; Mon, 04 Feb 2002 16:40:56 +0000 Date: Mon, 4 Feb 2002 16:40:56 +0000 From: Ceri To: "F. Xavier Noria" Cc: freebsd-questions@freebsd.org Subject: Re: Stupid sh(1) question Message-ID: <20020204164056.GA5008@rhadamanth> Mail-Followup-To: Ceri , "F. Xavier Noria" , freebsd-questions@freebsd.org References: <20020204154923.GA4312@rhadamanth> <20020204171525.7a78cdc9.fxn@isoco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020204171525.7a78cdc9.fxn@isoco.com> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 04, 2002 at 05:15:25PM +0100, F. Xavier Noria wrote: > On Mon, 4 Feb 2002 15:49:23 +0000 > Ceri wrote: > > : a) How to initialise an array in sh > : > : b) How to access an array in sh. > > According to O'Reilly's book about Bash sh(1) doesn't support arrays, so > one has to use sh(1) idioms you probably know to emulate them. Many thanks to all who responded. At least now I know, and it seems that it might not have been such a stupid question after all ;) Ceri -- keep a mild groove on To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message