delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/23/11:39:14

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: mwoehlke <mwoehlke AT tibco DOT com>
Subject: Re: export arrays from cygwin ksh
Date: Tue, 23 May 2006 10:37:56 -0500
Lines: 23
Message-ID: <e4va8l$5rt$1@sea.gmane.org>
References: <loom DOT 20060523T132435-985 AT post DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.2 (X11/20060420)
In-Reply-To: <loom.20060523T132435-985@post.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

bob wrote:
> I have an hp unix script that runs in ksh and am porting it to PC.  It uses and 
> exports arrays in hp unix.  Does not seem to work in cygwin.  Can anybody offer 
> suggestions to accomodate?  I tried to put an example below, but I was labeled 
> a top poster and it would not let me do it.  

Eh? I've never had a message bounce (is there actually something that 
tries to bounce http://cygwin.com/acronyms/#TOFU? ...must not work very 
well.)

Did you try submitting your example as an attachment?

Back to the question: by "exports arrays" you mean it needs to export an 
array so that it is inherited by sub-shells? Also, what shell are you 
using on Cygwin?

It does seem like this doesn't work - at least, not how I would expect 
it to - on bash (either on Cygwin or on Linux). Maybe you should try ksh 
on Cygwin.

-- 
Matthew
Interix, Sphinterix. Cygwin apps don't crash. :-)


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019