Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] bash-4.0 regression heads up (escaped semicolons in subshells)
Date: Sat, 21 Feb 2009 23:27:14
Message-Id: 200902211827.10563.vapier@gentoo.org
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=$(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
-mike

Attachments

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

Replies