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
commitb227a508be21b8a58f7f22b888e3d7f5137f3603 (patch)
tree2fb713acb7efe8e6a2d3336fd263d6f4d2c2a017 /eclass
parentx86 stable, bug #370509 (diff)
downloadhistorical-b227a508be21b8a58f7f22b888e3d7f5137f3603.tar.gz
historical-b227a508be21b8a58f7f22b888e3d7f5137f3603.tar.bz2
historical-b227a508be21b8a58f7f22b888e3d7f5137f3603.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;} }"