From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Lb1lg-0006Ii-Ro for garchives@archives.gentoo.org; Sun, 22 Feb 2009 00:00:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3494E039D; Sun, 22 Feb 2009 00:00:21 +0000 (UTC) Received: from smtp-out.neti.ee (smtp-out.neti.ee [194.126.126.44]) by pigeon.gentoo.org (Postfix) with ESMTP id 6B818E045F for ; Sun, 22 Feb 2009 00:00:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at estpak.ee Received: from Relayhost3.neti.ee (relayhost3.estpak.ee [88.196.174.169]) by MXR-8.estpak.ee (Postfix) with ESMTP id 5F81D87CFC for ; Sun, 22 Feb 2009 02:00:17 +0200 (EET) X-SMTP-Auth-NETI-Businesmail: no Subject: Re: [gentoo-dev] Re: bash-4.0 regression heads up (escaped semicolons in subshells) From: Mart Raudsepp To: gentoo-dev@lists.gentoo.org In-Reply-To: <200902211855.37679.vapier@gentoo.org> References: <200902211827.10563.vapier@gentoo.org> <20090221173855.404ebed9@halo.dirtyepic.sk.ca> <200902211855.37679.vapier@gentoo.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-wnzwNvvspeVzxju1MwBo" Date: Sun, 22 Feb 2009 02:00:19 +0200 Message-Id: <1235260819.23876.4.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.22.0 X-Archives-Salt: d70095b1-7344-4823-a74f-53f95a576f92 X-Archives-Hash: 4e6324d3a00a563dbe0372a77179f16c --=-wnzwNvvspeVzxju1MwBo Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2009-02-21 at 18:55 -0500, Mike Frysinger wrote: > On Saturday 21 February 2009 18:38:55 Ryan Hill wrote: > > On Sat, 21 Feb 2009 18:27:10 -0500 Mike Frysinger wrote: > > > looks like bash-4.0 has broken semicolon escaping in subshells. this > > > comes up when using find's -exec like we do in a few places in > > > eclasses: ls=3D$(find "$1" -name '*.po' -exec basename {} .po \;); sh= ift > > > you can work around the issue in a couple of ways: > > > - quote the semicolon: > > > .... ';') > > > - use backticks > > > `find .... \;` > > > > > > i'll tweak the eclasses to use quoting for now > > > > is this a bug or broken on purpose? >=20 > i say it's a bug, but i'm not the bash maintainer >=20 > i imagine it's fall out from attempts to fix support for case statements = in=20 > subshells Then the bug should be fixed, instead of changing usage to something apparently less common, as the conversion could miss some. And more importantly users still want to use \; for find -exec ending on their command line and their very own scripts. And who knows how many shell scripts shipped by packages use the escaping method. --=20 Mart Raudsepp Gentoo Developer Mail: leio@gentoo.org Weblog: http://planet.gentoo.org/developers/leio --=-wnzwNvvspeVzxju1MwBo Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (GNU/Linux) iEYEABECAAYFAkmglZMACgkQkeYb6olFHJed0wCgl2PDo07cPTRz5kXs8dfxEwtw gToAoNqLIYeb4/m4w7ts5GdSte9IjTwc =6TaR -----END PGP SIGNATURE----- --=-wnzwNvvspeVzxju1MwBo--