X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <4D04C262.50507@gmail.com> Date: Sun, 12 Dec 2010 04:38:58 -0800 From: Daniel Colascione User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Executable named "[.exe" in c:\cygwin\bin? References: <4D04C14E DOT 90607 AT gmx DOT de> In-Reply-To: <4D04C14E.90607@gmx.de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2461E75413037BB1A78DE98D" 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 --------------enig2461E75413037BB1A78DE98D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 12/12/10 4:34 AM, Matthias Andree wrote: >> [ -f file ] && echo is > you cannot run scripts containing this > under a "set -e" regime. Yes you can. `-e' Exit immediately if a simple command (*note Simple Commands::) exits with a non-zero status, unless the command that fails is part of the command list immediately following a `while' or `until' keyword, part of the test in an `if' statement, part of a `&&' or `||' list, or if the command's ^^^^^^^^^^^^^^^^^^^^^^^^^^^ return status is being inverted using `!'. A trap on `ERR', if set, is executed before the shell exits. --------------enig2461E75413037BB1A78DE98D 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.11 (Darwin) iEYEARECAAYFAk0EwmUACgkQ17c2LVA10VsjNgCfZIZivq0WOQWNuEgAIkg3Ocea gYgAniP4FLYvBLslJ6zVyAnVa8477l2w =gFXQ -----END PGP SIGNATURE----- --------------enig2461E75413037BB1A78DE98D--