summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarijn Schouten <hkbst@gentoo.org>2007-06-21 17:34:34 +0000
committerMarijn Schouten <hkbst@gentoo.org>2007-06-21 17:34:34 +0000
commitbeccbb09a52020e73c6ff47b4505c5d5a4a1696d (patch)
tree5b3d34c9435506e1ddaf549ebc459fa13cbc34c3 /eclass/common-lisp-common.eclass
parentMark 1.8.6 unstable on alpha/ia64/x86 wrt #181110 (diff)
downloadhistorical-beccbb09a52020e73c6ff47b4505c5d5a4a1696d.tar.gz
historical-beccbb09a52020e73c6ff47b4505c5d5a4a1696d.tar.bz2
historical-beccbb09a52020e73c6ff47b4505c5d5a4a1696d.zip
save and restore shopt nullglob, bug 160343
Diffstat (limited to 'eclass/common-lisp-common.eclass')
-rw-r--r--eclass/common-lisp-common.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/common-lisp-common.eclass b/eclass/common-lisp-common.eclass
index e6661fe99e2e..5dbe726d1e95 100644
--- a/eclass/common-lisp-common.eclass
+++ b/eclass/common-lisp-common.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/common-lisp-common.eclass,v 1.10 2005/10/18 16:36:10 mkennedy Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/common-lisp-common.eclass,v 1.11 2007/06/21 17:34:34 hkbst Exp $
#
# Author Matthew Kennedy <mkennedy@gentoo.org>
#
@@ -134,13 +134,14 @@ reregister-all-common-lisp-implementations() {
# Written by Kevin Rosenberg <kmr@debian.org>
# GPL-2 license
local clc_bin_dir=/usr/$(get_libdir)/common-lisp/bin
- shopt -s nullglob
+ local opt=$(shopt nullglob); shopt -s nullglob
cd $clc_bin_dir
for impl_bin in *.sh; do
impl=$(echo $impl_bin | sed 's/\(.*\).sh/\1/')
unregister-common-lisp-implementation $impl
register-common-lisp-implementation $impl
done
+ [[ $opt = *off ]] && shopt -u nullglob
}
# BIG FAT HACK: Since the Portage emerge step kills file timestamp