diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-03-08 20:08:13 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-03-08 20:08:13 +0000 |
commit | 6b82500e4279ff9df9f8131d26ed63d60636c47f (patch) | |
tree | 55d3620170660558e2897ee897c7f9ea1278bf52 /eclass | |
parent | Force using of autoconf 2.5 while doing the trace, as that works with 2.1 con... (diff) | |
download | gentoo-2-6b82500e4279ff9df9f8131d26ed63d60636c47f.tar.gz gentoo-2-6b82500e4279ff9df9f8131d26ed63d60636c47f.tar.bz2 gentoo-2-6b82500e4279ff9df9f8131d26ed63d60636c47f.zip |
Use echo instead of <<< for bash 2.x compatibility. See bug #107556.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/portability.eclass | 10 |
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 } |