summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/zsh/files/zprofile')
-rw-r--r--app-shells/zsh/files/zprofile8
1 files changed, 6 insertions, 2 deletions
diff --git a/app-shells/zsh/files/zprofile b/app-shells/zsh/files/zprofile
index 69cae0b39ff0..bec0e52fd3b4 100644
--- a/app-shells/zsh/files/zprofile
+++ b/app-shells/zsh/files/zprofile
@@ -1,5 +1,5 @@
# /etc/zsh/zprofile
-# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/files/zprofile,v 1.3 2007/04/30 16:26:06 usata Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/files/zprofile,v 1.4 2007/05/07 06:51:11 usata Exp $
# Load environment settings from profile.env, which is created by
# env-update from the files in /etc/env.d
@@ -31,9 +31,13 @@ unset ROOTPATH
[ -z "$EDITOR" ] && EDITOR="/bin/nano"
export EDITOR
+shopts=$-
+setopt nullglob
for sh in /etc/profile.d/*.sh ; do
if [ -r "$sh" ] ; then
. "$sh"
fi
done
-unset sh
+unsetopt nullglob
+set -$shopts
+unset sh shopts