Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sources.redhat.com/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Robert Mark Bram" <relaxedrob AT optushome DOT com DOT au> To: <cygwin AT cygwin DOT com> Subject: Arrays in Cygwin? Date: Fri, 31 May 2002 20:54:26 +1000 Message-ID: <AHENJAAPGAHKCFPLDPOJOEKNCGAA.relaxedrob@optushome.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <20020531052014.GC15432@redhat.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Howdy all! How can I get arrays in Cygin's Bash? I did a search in Google search and found this reference to "Cygwin array patch". http://sourceforge.net/tracker/?func=detail&atid=305470&aid=551009&group_id= 5470 Is this what I need? The excerpt below shows the error I get from trying to run a script with an array in it. Rob :) Robert Mark Bram AT DIJONG /home/Rob/ $ cat ass1.sh # array variables declaration # different file types type=( "Image File" "Text File" "Sound Clips") # store the application for files program=( "xv" "vi" "showaudio") # store the extension of the file types exten=( "*.gif *.jpg *.bmp" "*.txt *.doc" "*.wav *.mp3 *.mid") # initalise variable to 0 toQuit=0 Robert Mark Bram AT DIJONG /home/Rob/ $ sh ./ass1.sh ./ass1.sh: 4: Syntax error: word unexpected (expecting ")") -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/