Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: bash-4.0 regression heads up (escaped semicolons in subshells)
Date: Sat, 21 Feb 2009 23:55:41
Message-Id: 200902211855.37679.vapier@gentoo.org
In Reply to: [gentoo-dev] Re: bash-4.0 regression heads up (escaped semicolons in subshells) by Ryan Hill
1 On Saturday 21 February 2009 18:38:55 Ryan Hill wrote:
2 > On Sat, 21 Feb 2009 18:27:10 -0500 Mike Frysinger wrote:
3 > > looks like bash-4.0 has broken semicolon escaping in subshells. this
4 > > comes up when using find's -exec like we do in a few places in
5 > > eclasses: ls=$(find "$1" -name '*.po' -exec basename {} .po \;); shift
6 > > you can work around the issue in a couple of ways:
7 > > - quote the semicolon:
8 > > .... ';')
9 > > - use backticks
10 > > `find .... \;`
11 > >
12 > > i'll tweak the eclasses to use quoting for now
13 >
14 > is this a bug or broken on purpose?
15
16 i say it's a bug, but i'm not the bash maintainer
17
18 i imagine it's fall out from attempts to fix support for case statements in
19 subshells
20 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies