diff options
Diffstat (limited to 'app-shells/sandboxshell/files/sandboxshell.conf')
-rw-r--r-- | app-shells/sandboxshell/files/sandboxshell.conf | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app-shells/sandboxshell/files/sandboxshell.conf b/app-shells/sandboxshell/files/sandboxshell.conf index e824bb985956..75df274ca688 100644 --- a/app-shells/sandboxshell/files/sandboxshell.conf +++ b/app-shells/sandboxshell/files/sandboxshell.conf @@ -1,7 +1,7 @@ #!/bin/bash # Written by vapier@gentoo.org # public-domain code ... z0r ... -# $Header: /var/cvsroot/gentoo-x86/app-shells/sandboxshell/files/sandboxshell.conf,v 1.5 2005/11/20 07:54:10 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-shells/sandboxshell/files/sandboxshell.conf,v 1.6 2005/11/20 10:57:15 vapier Exp $ trap ":" INT QUIT TSTP @@ -31,10 +31,9 @@ if [[ ${PWD:0:${#sbs_pdir}} == "${sbs_pdir}" ]] ; then read env sbs_PREPWD=${PWD} if [[ ${env} == "y" ]] ; then - # First try to source variables and export them ... - eval $(sed -e '/^[[:alnum:]_-]*=/s:^:export :' -e '/^[[:alnum:]_-]* ()/Q' "${sbs_tmpenvfile}") 2>/dev/null - # Then grab everything (including functions) + set -a source "${sbs_tmpenvfile}" 2> /dev/null + set +a export SANDBOX_WRITE=${SANDBOX_WRITE}:${sbs_pdir}${sbs_bdir}:${sbs_pdir}/homedir fi PWD=${sbs_PREPWD} |