From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 29 21:49:46 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EF5E16A41F for ; Tue, 29 Nov 2005 21:49:46 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51B3343D4C for ; Tue, 29 Nov 2005 21:49:45 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so79744wxc for ; Tue, 29 Nov 2005 13:49:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=syr2AXunMTD+t//8TKBZSdmSwHKaTU/01qCpn2ECcqvyUysS5A51t5P5Q9KbaEWIF3PdZLQkRxVRJC5wQ8ZgvPpxWckJ/Sm2ai+XHVDftLVB5sNroIFg9yr8KtzGz1/8d5XeA52hPAVmV6ftz17gdpWEjj23NrWtAh+flc7FPgU= Received: by 10.70.7.18 with SMTP id 18mr1525623wxg; Tue, 29 Nov 2005 13:49:43 -0800 (PST) Received: by 10.70.7.2 with HTTP; Tue, 29 Nov 2005 13:49:43 -0800 (PST) Message-ID: Date: Wed, 30 Nov 2005 03:19:43 +0530 From: Jayesh Jayan To: John-Mark Gurney , Jayesh Jayan , freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org In-Reply-To: <20051129212732.GL885@funkthat.com> MIME-Version: 1.0 References: <20051129212732.GL885@funkthat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Bash scripting -- Usage of arrays X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 21:49:46 -0000 Hi John, I already have bash installed from ports. It is bash 2.05b. On 11/30/05, John-Mark Gurney wrote: > > Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 02:39 +0530: > > Below is the output. > > > > # sh array.sh > > Install the bash port (as root: pkg_add -r bas), and then try again > using bash... > > FreeBSD doesn't have bash installed by default (and hence, /bin/sh is > not bash like it is usually on Linux), and our sh doesn't have that > feature... > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > -- Jayesh Jayan "The box said "Requires Windows 95, NT, or better", so I installed Linux." Visit my homepage @ http://www.jayeshjayan.com