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 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: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDA5820EF3C957CE28F5A34E1" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 --------------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--