delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/14/21:46:32

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4B4FD6FC.4060903@byu.net>
Date: Thu, 14 Jan 2010 19:46:20 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, David DOT Damo AT CIBC DOT com
Subject: Re: Can't set variables in a while loop that is passed to the rest of the script.
References: <EDF49EC9787F914CA157FF6927D65A88302633AB3C AT CBMCC-X7-MBX10 DOT ad DOT cibc DOT com>
In-Reply-To: <EDF49EC9787F914CA157FF6927D65A88302633AB3C@CBMCC-X7-MBX10.ad.cibc.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

--------------enigDA5820EF3C957CE28F5A34E1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

According to Damo, David on 1/14/2010 3:39 PM:
> Hi,
>=20
> I had a script that worked on UNIX, but on Cygwin it does not work. When =
I set a variable in a while loop I can't use it after the loop. However, th=
is worked in UNIX. Any ideas why?

Yes.  ksh vs. bash.  http://tiswww.case.edu/php/chet/bash/FAQ, E4.  Not
cygwin-specific.

--=20
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net


--------------enigDA5820EF3C957CE28F5A34E1
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktP1v8ACgkQ84KuGfSFAYAZYQCfWpgMmt1ZI6Xjkxa2TZn99V4n
NDwAnjRBolCgFN6tL611zdmNJOwxWuLv
=Y7uv
-----END PGP SIGNATURE-----

--------------enigDA5820EF3C957CE28F5A34E1--

- Raw text -


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