X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4F44006D.1070002@redhat.com> Date: Tue, 21 Feb 2012 13:37:01 -0700 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Environment passing bug? References: <4F42D201 DOT 4000901 AT cwilson DOT fastmail DOT fm> <20120221095025 DOT GD22597 AT calimero DOT vinschen DOT de> <4F43EE3C DOT 6030306 AT cwilson DOT fastmail DOT fm> In-Reply-To: <4F43EE3C.6030306@cwilson.fastmail.fm> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig9D50DEE0ABCBE4E1305C4DA0" 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 --------------enig9D50DEE0ABCBE4E1305C4DA0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 02/21/2012 12:19 PM, Charles Wilson wrote: >=20 > =3D=3D=3D=3D=3D=3D xp-64 =3D=3D=3D=3D=3D=3D=3D=3D > $ printf "'%s'\n'%s'\n'%s'\n'%s'\n'%s'\n'%s'\n" "$TEMP" "$TMP" "$TMPDIR" Side note: You know, POSIX requires (and cygwin supports) a shorthand form of this: printf "'%s'\n" "$TEMP" "TMP" "$TMPDIR" That is, if you provide more arguments to printf than % specifiers, then it wraps and reapplies the format string to the remaining arguments. --=20 Eric Blake eblake AT redhat DOT com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig9D50DEE0ABCBE4E1305C4DA0 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/ iQEcBAEBCAAGBQJPRAB2AAoJEKeha0olJ0NqvqQH/iLeTL7GsQOnECLQAN6zbnyO cnRn754Az8LHEmfIgEtYg66q88COdqch1elCqMwgxcl3BmfyjrlgAE3dnCt87D/W 1DKPgPpsEpz0awA3vwJzF14OisvnykZj1pl5nYhMaNo0v57adVuF8I/WvpiKMAd4 I1XvvwiV4k8KvgWTGffUgKyH9xv5akdRCWZJVLZ7S1ZklOyI7jKLzzHImehItiC8 uQnaoWHi/1PKDTho4KbpFghqPupuXkNub1HAXNuOIId1IqZ5/rxHGsw+WgI/bfpg 4N/s6gcP93iNu2mdaVpwQcWTwfWFAwMtVU3jdzKCLCxPZLTLfzDrvH+FFm9+5zk= =6DJm -----END PGP SIGNATURE----- --------------enig9D50DEE0ABCBE4E1305C4DA0--