summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2011-06-14 20:16:51 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2011-06-14 20:16:51 +0000
commit7e17a78e3538ed64e216e1fbeaa4135064f964b4 (patch)
treee8198b0e2b97f6a7291d57e3cc8e7648d19100d5 /eclass
parentx86 stable, bug #370509 (diff)
downloadgentoo-2-7e17a78e3538ed64e216e1fbeaa4135064f964b4.tar.gz
gentoo-2-7e17a78e3538ed64e216e1fbeaa4135064f964b4.tar.bz2
gentoo-2-7e17a78e3538ed64e216e1fbeaa4135064f964b4.zip
Escape $ in double quotes when it's meant to be used literally. Acked by flameeyes.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index b2b10ff4d4b5..e72d4944ef92 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.356 2011/04/18 15:09:16 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.357 2011/06/14 20:16:51 betelgeuse Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -499,7 +499,7 @@ egetent() {
*-darwin[678])
case "$2" in
*[!0-9]*) # Non numeric
- nidump $1 . | awk -F":" "{ if (\$1 ~ /^$2$/) {print \$0;exit;} }"
+ nidump $1 . | awk -F":" "{ if (\$1 ~ /^$2\$/) {print \$0;exit;} }"
;;
*) # Numeric
nidump $1 . | awk -F":" "{ if (\$3 == $2) {print \$0;exit;} }"