summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-03-08 20:08:13 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-03-08 20:08:13 +0000
commit8e702fdf31e0c72ed8a0fd3b36919c6372cb5792 (patch)
tree1446150c17a22eada43b7abcd68bb9be11cc8261 /eclass
parentForce using of autoconf 2.5 while doing the trace, as that works with 2.1 con... (diff)
downloadhistorical-8e702fdf31e0c72ed8a0fd3b36919c6372cb5792.tar.gz
historical-8e702fdf31e0c72ed8a0fd3b36919c6372cb5792.tar.bz2
historical-8e702fdf31e0c72ed8a0fd3b36919c6372cb5792.zip
Use echo instead of <<< for bash 2.x compatibility. See bug #107556.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/portability.eclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/portability.eclass b/eclass/portability.eclass
index 5213b8342fe2..90d1b3139589 100644
--- a/eclass/portability.eclass
+++ b/eclass/portability.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.7 2005/12/14 19:52:22 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.8 2006/03/08 20:08:13 flameeyes Exp $
#
# Author: Diego Pettenò <flameeyes@gentoo.org>
#
@@ -70,11 +70,11 @@ egethome() {
case ${CHOST} in
*-darwin*|*-freebsd*|*-dragonfly*)
# Darwin, OSX, FreeBSD and DragonFly use position 9 to store homedir
- cut -d: -f9 <<<${ent}
+ echo ${ent} | cut -d: -f9
;;
*)
# Linux, NetBSD and OpenBSD use position 6 instead
- cut -d: -f6 <<<${ent}
+ echo ${ent} | cut -d: -f6
;;
esac
}
@@ -90,11 +90,11 @@ egetshell() {
case ${CHOST} in
*-darwin*|*-freebsd*|*-dragonfly*)
# Darwin, OSX, FreeBSD and DragonFly use position 9 to store homedir
- cut -d: -f10 <<<${ent}
+ echo ${ent} | cut -d: -f10
;;
*)
# Linux, NetBSD and OpenBSD use position 6 instead
- cut -d: -f7 <<<${ent}
+ echo ${ent} cut -d: -f7
;;
esac
}