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 1Lb2SV-0003sU-HM for garchives@archives.gentoo.org; Sun, 22 Feb 2009 00:44:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB273E03F2; Sun, 22 Feb 2009 00:44:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7BE99E03F2 for ; Sun, 22 Feb 2009 00:44:37 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 78FC2B68DB for ; Sun, 22 Feb 2009 00:44:36 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: bash-4.0 regression heads up (escaped semicolons in subshells) Date: Sat, 21 Feb 2009 19:44:35 -0500 User-Agent: KMail/1.11.0 (Linux/2.6.28; KDE/4.2.0; x86_64; ; ) References: <200902211827.10563.vapier@gentoo.org> <200902211929.29115.vapier@gentoo.org> <1235263113.23876.19.camel@localhost> In-Reply-To: <1235263113.23876.19.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 Content-Type: multipart/signed; boundary="nextPart1506905.rd2QdHYtgY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200902211944.35760.vapier@gentoo.org> X-Archives-Salt: 1f7940b1-6818-4d23-8884-a2a8819e0c80 X-Archives-Hash: 8e5ad8eb76638667490a01b7a3e31242 --nextPart1506905.rd2QdHYtgY Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 21 February 2009 19:38:33 Mart Raudsepp wrote: > On Sat, 2009-02-21 at 19:29 -0500, Mike Frysinger wrote: > > On Saturday 21 February 2009 19:00:19 Mart Raudsepp wrote: > > > 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.= =20 > > > > > > 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 > > > > > > \;); shift 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? > > > > > > > > i say it's a bug, but i'm not the bash maintainer > > > > > > > > i imagine it's fall out from attempts to fix support for case > > > > statements in 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. > > > > i think you missed the entire point of this thread: there's a bug in > > bash-4.0 that code is likely to hit. > > I think you missed the entire point of my reply. > That bug should be fixed, not workarounds applied all over the tree, as > users still want to be able to escape semi-colons. no one suggested doing any of this crap you're talking about. if you want = to=20 get all retarded, dont install the masked ebuild. i gave a heads up to peo= ple=20 who might want to experiment so they wouldnt have to figure out weird error= s. =20 in the mean time, i tweaked a few common files so people wouldnt hit errors= =20 and could investigate even further. i guess in the future i simply wont post heads up so i dont have to listen = to=20 people whine about non-existent issues. =2Dmike --nextPart1506905.rd2QdHYtgY Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iQIcBAABAgAGBQJJoJ/zAAoJEEFjO5/oN/WBs3MQANarF6bdsBzVvjo2D7mgmwW5 r+nHFAvVUf8tSX/aT0gS1ObBl2oVDMsBgSuCSm5hxCDb+b1fwGPW0HrTEcDnXJ8L VLFO6LBs6j02AMY9DCg8BJrbNxAyA0e36ap+/vFgWtG7Wyq0+ymDbqDqQUXWeuPk SqmF2SwdSzZrO11X3zm1I4miYkLnHRdTINC5/QU5y78RlBPcvyj60o9FrD5A25HX 9+Xo+WvrTJqpTcJhGpbPvoc+7d8wQOPXxF27A6pe1RC7h6tR90rFIgt6/t3OfcrE KxLtw5yQEWOa5R8X1QGav9mACCFBH6MN6wpXOiAxK+GVjtJ0wR9bd4zzb14mK0jd 8rOO2l1FKBMTnABLFxBmGI2HRU816y2RYtNZPlQgXq9fY4erorEctQiO8HtdrX4K tVC9MEPyY4SZAGwpPuT0oTUeDlxtVG8Q5WMl2GMEPqmGJqistfpnpgZnd80VoPwj /huFuBkQAa2mZ9dwG0hHskkKFupuZ6qwl01tvxYZx1dN3H30/giRSo8wiJpOaz9n cxmVMkNMj+U0eQJLAD69yZsq2GY2IJzUl19RSkz6ANJz2qJ3m+PLL9TdSCNzKHy5 M/Ix53X4+MqJGjRiji4zo9TSkLbUP8Gk0ejCjdV9GkovoQk2vqPCWxvKFH/Ti/Kz FVObaYO/ycO7Sk3Ni5o8 =vb5C -----END PGP SIGNATURE----- --nextPart1506905.rd2QdHYtgY--