summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-06-27 08:08:10 +0000
committerMike Frysinger <vapier@gentoo.org>2006-06-27 08:08:10 +0000
commitc534c897b5bc5b4382584d10a463349b7a4a91ce (patch)
tree707fcf5a43b77ea8ed05d7b4dde09a5a5c46e3f1 /sys-devel
parentStable on hppa. (diff)
downloadgentoo-2-c534c897b5bc5b4382584d10a463349b7a4a91ce.tar.gz
gentoo-2-c534c897b5bc5b4382584d10a463349b7a4a91ce.tar.bz2
gentoo-2-c534c897b5bc5b4382584d10a463349b7a4a91ce.zip
add quotes to user variable setup
(Portage version: 2.1.1_pre1-r2)
Diffstat (limited to 'sys-devel')
-rwxr-xr-xsys-devel/crossdev/files/crossdev5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys-devel/crossdev/files/crossdev b/sys-devel/crossdev/files/crossdev
index 822725363fc9..afcb42fac879 100755
--- a/sys-devel/crossdev/files/crossdev
+++ b/sys-devel/crossdev/files/crossdev
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.67 2006/06/27 07:21:48 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.68 2006/06/27 08:08:10 vapier Exp $
cd /
@@ -387,7 +387,8 @@ fi
# grab user settings
for v in ABI UCLIBC_CPU USE BVER GVER KVER LVER STAGE CFLAGS LDFLAGS ASFLAGS ; do
if [[ -e /etc/portage/crossdev/${CTARGET}/${v} ]] ; then
- export ${v}=$(</etc/portage/crossdev/${CTARGET}/${v})
+ # yes, quotes are needed in this instance (export $var="...")
+ export ${v}="$(</etc/portage/crossdev/${CTARGET}/${v})"
einfo "Restoring user setting '${v}' to '${!v}'"
fi
if [[ -e /etc/portage/crossdev/${CTARGET}/env ]] ; then