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 1Lb2Mi-0003G8-Fb for garchives@archives.gentoo.org; Sun, 22 Feb 2009 00:38:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0A6D8E03DB; Sun, 22 Feb 2009 00:38:39 +0000 (UTC) Received: from smtp-out.neti.ee (smtp-out.neti.ee [194.126.126.44]) by pigeon.gentoo.org (Postfix) with ESMTP id 902A8E03DB for ; Sun, 22 Feb 2009 00:38:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by MXR-5.estpak.ee (Postfix) with ESMTP id 89E291ED890 for ; Sun, 22 Feb 2009 02:38:37 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at estpak.ee Received: from smtp-out.neti.ee ([127.0.0.1]) by localhost (MXR-5.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HHNEMaKi+LUR for ; Sun, 22 Feb 2009 02:38:30 +0200 (EET) Received: from Relayhost2.neti.ee (Relayhost2 [88.196.174.142]) by MXR-5.estpak.ee (Postfix) with ESMTP id D01831E3D25 for ; Sun, 22 Feb 2009 02:38:30 +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: <200902211929.29115.vapier@gentoo.org> References: <200902211827.10563.vapier@gentoo.org> <200902211855.37679.vapier@gentoo.org> <1235260819.23876.4.camel@localhost> <200902211929.29115.vapier@gentoo.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-DjHj7+wTkTjbJUCqzOlI" Date: Sun, 22 Feb 2009 02:38:33 +0200 Message-Id: <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 X-Mailer: Evolution 2.22.0 X-Archives-Salt: 8bf9b4e7-8706-4268-905a-1c3d0aafeb1b X-Archives-Hash: d797eba19c8623ef2a4255d7b29b148f --=-DjHj7+wTkTjbJUCqzOlI Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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. = 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 stateme= nts > > > 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. >=20 > i think you missed the entire point of this thread: there's a bug in bash= -4.0=20 > 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 Mart Raudsepp Gentoo Developer Mail: leio@gentoo.org Weblog: http://planet.gentoo.org/developers/leio --=-DjHj7+wTkTjbJUCqzOlI 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) iEYEABECAAYFAkmgnokACgkQkeYb6olFHJfzFwCglhCjkCNRUS4ThuIdMZPzShJv G48AoLhXqnhguJDnICiy/i9Jb7q87K1K =QQ3g -----END PGP SIGNATURE----- --=-DjHj7+wTkTjbJUCqzOlI--