delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-10.3 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4FC8BCE5.2070605@redhat.com> |
Date: | Fri, 01 Jun 2012 07:00:21 -0600 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Shell script loop runs out of memory |
References: | <loom DOT 20120531T193933-322 AT post DOT gmane DOT org> <CANs8wdBYOBGsmp2iFSSOOd5FZ4qb3i3a-E2EM8LBbPKz=su5Pg AT mail DOT gmail DOT com> <786EBDA1AC46254B813E200779E7AD36023A42C2 AT srv1163ex1 DOT flightsafety DOT com> <loom DOT 20120531T211830-607 AT post DOT gmane DOT org> <0105D5C1E0353146B1B222348B0411A20A770C827D AT NIHMLBX02 DOT nih DOT gov> <CE9C056E12502146A72FD81290379E9A4360C73F AT ENFIRHMBX1 DOT datcon DOT co DOT uk> |
In-Reply-To: | <CE9C056E12502146A72FD81290379E9A4360C73F@ENFIRHMBX1.datcon.co.uk> |
OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
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 |
--------------enig9D81D147C90BCAEA42A02BC2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 06/01/2012 03:20 AM, Adam Dinwoodie wrote: > Buchbinder, Barry wrote: >> You might try changing >> [[ condition ]] >> to >> [ condition ] >> Perhaps single brackets use memory differently than double brackets. >=20 > They do: [[ condition ]] is interpreted by the shell; [ condition ] forks= to > call /usr/bin/[.exe. No, it doesn't. Bash has a built-in [ rather than forking, since running tests is so common. --=20 Eric Blake eblake AT redhat DOT com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig9D81D147C90BCAEA42A02BC2 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.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJPyLzlAAoJEKeha0olJ0Nqk8IH/izuhuNEZ3kT5JNUmSXesHD9 QOl0wOIY+6kIjEuYqRNhmqbO4GuzDcBdTTU1LWrnw2zwiNscqPJIDLANVDc8eVsq ytaWhpMCVVPdVGnpGejPzspWffU2ALnGFbAEkcyT5Z4Z6oFYDj78mw+odD0dlncz YMNu+DRWSsEc6nGgjD8utcwsyfB0asWX0s1OFhsVH18KQUZHssM7AYSzQLxKMn7r Zr5cG6WPrqPAd+g38syiblPtNQsnrGImfce665tcUjySS2A/HT/MRv1o9P9TErnF fbOyv07Hm8GHO0u+uRXGRsDPPn+gObxJwXeCgXouxmZs6U6fFpyUveWCak3Oj+o= =J70C -----END PGP SIGNATURE----- --------------enig9D81D147C90BCAEA42A02BC2--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |