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 1Lb2cP-0005Xx-1j for garchives@archives.gentoo.org; Sun, 22 Feb 2009 00:54:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E372E0122; Sun, 22 Feb 2009 00:54:51 +0000 (UTC) Received: from smtp-out.neti.ee (smtp-out.neti.ee [194.126.126.44]) by pigeon.gentoo.org (Postfix) with ESMTP id 8BEA7E0122 for ; Sun, 22 Feb 2009 00:54:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by MXR-4.estpak.ee (Postfix) with ESMTP id B8E8423D6DD for ; Sun, 22 Feb 2009 02:54:49 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at Relay4.estpak.ee Received: from smtp-out.neti.ee ([127.0.0.1]) by localhost (MXR-4.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eh-rRKTU-S-8 for ; Sun, 22 Feb 2009 02:54:49 +0200 (EET) Received: from Relayhost1.neti.ee (Relayhost1 [88.196.174.141]) by MXR-4.estpak.ee (Postfix) with ESMTP id 4AD7F23BA7A for ; Sun, 22 Feb 2009 02:54:49 +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: <200902211944.35760.vapier@gentoo.org> References: <200902211827.10563.vapier@gentoo.org> <200902211929.29115.vapier@gentoo.org> <1235263113.23876.19.camel@localhost> <200902211944.35760.vapier@gentoo.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-z6K4J237h5oukxqTAoZ2" Date: Sun, 22 Feb 2009 02:54:51 +0200 Message-Id: <1235264091.23876.24.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: 8aadb19e-8c38-4883-b895-74b79ccf5d99 X-Archives-Hash: 88652d68752dcd622fa3f7511609f35d --=-z6K4J237h5oukxqTAoZ2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 2009-02-21 at 19:44 -0500, Mike Frysinger wrote: > 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 subshell= s.=20 > > > > > > > this comes up when using find's -exec like we do in a few pla= ces > > > > > > > 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 somethin= g > > > > apparently less common, as the conversion could miss some. And mor= e > > > > importantly users still want to use \; for find -exec ending on the= ir > > > > 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. >=20 > no one suggested doing any of this crap you're talking about. if you wan= t to=20 > get all retarded, dont install the masked ebuild. i gave a heads up to p= eople=20 > who might want to experiment so they wouldnt have to figure out weird err= ors. =20 > in the mean time, i tweaked a few common files so people wouldnt hit erro= rs=20 > and could investigate even further. =EF=BB=BFPerhaps you should actually state those intentions at the start in= stead of starting to rant out on people replying. Sounds good now that we actually know what the plan is. --=20 Mart Raudsepp Gentoo Developer Mail: leio@gentoo.org Weblog: http://planet.gentoo.org/developers/leio --=-z6K4J237h5oukxqTAoZ2 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) iEYEABECAAYFAkmgolsACgkQkeYb6olFHJd6dQCfTgTfeDJZbbVp56DHv/KkJnXZ D5gAn2XIr/+RWnYq8+R7mbSiWZezfGKE =j0iC -----END PGP SIGNATURE----- --=-z6K4J237h5oukxqTAoZ2--