delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type; q=dns; s=default; b=kDtF3Y | |
y6Vc0it8kgsS2IiOuj0QVxMbh0sdXWwCKxvJNCqK2F/BaeEau1L9T+UWrtDPzIh8 | |
+j3vZKYkTRRK1Xv015crJc4jvyJW0oRcjV3SPvA3OkuP44gPatxVvMU80Ad+5wFZ | |
LHETKjK7tDepjw5Dz/u1oW9nA7Nq+omyuoihE= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type; s=default; bh=UealBWJh5aGM | |
9zdMEf/Q8n74lUE=; b=PIKjvpHesh2/TEszaEhRVUFvsCxx5fU+TJYus7OI6/wo | |
kmMpUH4H3VBaso2fkj5dTpnUGvx2OOFZMXxiaL8TZuf64AnN4CbPh45Ogu75a7oE | |
VIUUGot/N9g4kQZrWHy1H0BlkUo38LDi6h1BgD97MpdbgMSKKxpGx84mZ9SBn/0= | |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-0.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mx1.redhat.com |
Message-ID: | <52B1BF11.3050305@redhat.com> |
Date: | Wed, 18 Dec 2013 08:28:17 -0700 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Change in behavior of bash / if [ |
References: | <6CF2FC1279D0844C9357664DC5A08BA21F8C0A AT MLBXV06 DOT nih DOT gov> <52B11F9C DOT 9050100 AT redhat DOT com> <6CF2FC1279D0844C9357664DC5A08BA21F8DF5 AT MLBXV06 DOT nih DOT gov> |
In-Reply-To: | <6CF2FC1279D0844C9357664DC5A08BA21F8DF5@MLBXV06.nih.gov> |
OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
X-IsSubscribed: | yes |
--QB8xhLcPK2e4T9nh6Hr0HsPnMIeIFqRJ2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12/18/2013 07:18 AM, Buchbinder, Barry (NIH/NIAID) [E] wrote: >>> if [ "x$1" =3D xclip ] >> >> Yes, this is the correct fix for the improper quotation of the earlier >> example. >=20 > But why would it need quoting unless the first argument unless the > command line is quoted and might have a space"? It wasn't. It was > called from a script that was being sourced by a bash interactive shell > as follows. >=20 > lddir clip I'd need to see your entire script to know for sure. Perhaps you are using calls to 'set' or using shell functions, either of which modifies $1 from the value that you passed on the command line. But the point remains - your improper quoting of $1 is not a cygwin-specific issue. > Speculation: Since cygwin1.dll was updated last week, perhaps > something happened there. Less likely. But without seeing your entire script, it's hard to say. You haven't given anyone else enough to go on. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --QB8xhLcPK2e4T9nh6Hr0HsPnMIeIFqRJ2 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.15 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJSsb8RAAoJEKeha0olJ0NqeZ4H/ijJ5COYbLLMwi+e5Bzr0otW R/PcTnpSYYvMgSQONKKX8oKXKSBrO3pjXYRIoFXWl+FroSEYyFaeTOwgj/zzp2z6 wPC7OcLtexNyStrnp12Ym6HQcTKUoulB9mV5zHNvT5hfrO4HBCnXcL/+8hNsw8ND V/dox3j+4FWjt3wUHzVuxto6PcPG1YHE560oyl6tqubY7SNcnceq2FOHU26M+hCv THj8ArZLFnwiMiC1/+Qet68tmDmt/vMv83n5X2CSAqGy1+OvPuBtLpGQx0o/303i LIa846V5YiHzC60HWHvR/vInawbl9DcvYjW7xvYKst2GNSSlSkJ3mvg0MeoKYJA= =FNF9 -----END PGP SIGNATURE----- --QB8xhLcPK2e4T9nh6Hr0HsPnMIeIFqRJ2--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |