delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | bob <robert DOT lambert AT ae DOT ge DOT com> |
Subject: | export arrays in cygwin ksh |
Date: | Tue, 23 May 2006 14:36:30 +0000 (UTC) |
Lines: | 38 |
Message-ID: | <loom.20060523T162715-39@post.gmane.org> |
Mime-Version: | 1.0 |
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: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |