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,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <502EA8A6.10108@redhat.com> Date: Fri, 17 Aug 2012 14:25:10 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Peter Rosin CC: "Yaakov (Cygwin/X)" , newlib AT sourceware DOT org, cygwin AT cygwin DOT com Subject: Re: wordexp bug References: <502EA058 DOT 1020806 AT lysator DOT liu DOT se> In-Reply-To: <502EA058.1020806@lysator.liu.se> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigB797E1ECCF40843F6FAB4B9A" 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 --------------enigB797E1ECCF40843F6FAB4B9A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 08/17/2012 01:49 PM, Peter Rosin wrote: > On 2012-08-17 15:35, Yaakov (Cygwin/X) wrote: >> AFAICS wordexp(3) is completely broken, returning WRDE_SYNTAX no >> matter what I supply as the string. STC attached. >=20 > I suspect you are using Cygwin, and if so I suspect that we have been > bitten by this change in bash-4.1-rc: >=20 > c. The (undocumented) --wordexp option is no longer included by default. Eeep. Thanks for bringing this to my attention. Delegating the work to an external process feels awkward, but is certainly easier to maintain than reimplementing the function from scratch in newlib. > The documentation states that you have to enable the WORDEXP_OPTION > when building bash, but I'll leave the details of how to do that to Eric, > the Cygwin bash maintainer. Yeah, I can figure that out. --=20 Eric Blake eblake AT redhat DOT com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigB797E1ECCF40843F6FAB4B9A 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/ iQEcBAEBCAAGBQJQLqinAAoJEKeha0olJ0NqA/YIAIh62hD4RrFPkHdNIZ0UjTEg 3uBGJ+/CK3jq9u6nu8t3snJqeem7IeQmNT68no3D+cOuv1Y9rQSqVGyqvvK0PiVX 0jwL1j0FoJ91bLbfFTwgZZjUCswLvkuxpiYOWa5vVnEYPW2oNysG1+xQ+YxzhfKi kWK7jXSGx3Y690vcw3DIy69cUoMeBa2UPX+vJ+f79YxNFpomRVOBR6o1O9t5WJCB dxA50rE+6cTF1QDYO9Eym2jAOFjpRkkkxNN72JTnd8holVmEvaWUg0ZCp6fsq3WY AZ5Per/Xs9xd4dVgm/s8AGQPS3+YCli84Vg2kiO17Gy8SRNTqJZY5jllOIPPMQE= =vuKl -----END PGP SIGNATURE----- --------------enigB797E1ECCF40843F6FAB4B9A--