X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: bob Subject: export arrays in cygwin ksh Date: Tue, 23 May 2006 14:36:30 +0000 (UTC) Lines: 38 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Help Trying to use ksh and export arrays in cygwin. It works on my unix workstation but not on PC cygwin. Any help would be appreciated. Tried to post earlier and it did not make it apparently. Thanks Bob #!/bin/ksh echo "in test1" vname[1]="Dog" vname[2]="Cat" for i in 1 2 do echo "vname[$i]=${vname[$i]}" done export vname[*] test2 #!/bin/ksh echo "in test2" for i in 1 2 do echo "vname[$i]=${vname[$i]}" done Output: test1 in test1 vname[1]=Dog vname[2]=Cat ./test1: line 8: export: `vname[*]': not a valid identifier in test2 vname[1]= vname[2]= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/