aboutsummaryrefslogtreecommitdiff
path: root/sh/functions.sh.in
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-11-07 00:22:33 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2012-11-07 00:22:33 +0000
commit1b0130961ebc308bba4c9ced3988558bfac103d9 (patch)
tree40dcef0a3f194d4741a8ae3ea9c12015e0bc89df /sh/functions.sh.in
parent3809eac54d575d52d8793df38f826f1d7d7398fb (diff)
checkbashisms: clean up export statements.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'sh/functions.sh.in')
-rw-r--r--sh/functions.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/sh/functions.sh.in b/sh/functions.sh.in
index cdd88563..23f3f627 100644
--- a/sh/functions.sh.in
+++ b/sh/functions.sh.in
@@ -85,13 +85,13 @@ if [ -n "$_LOCAL_PREFIX" ]; then
_PATH="$_PATH:$_LOCAL_PREFIX/bin:$_LOCAL_PREFIX/sbin"
fi
_path="$(_sanitize_path "$PATH")"
-export PATH="$_PATH${_path:+:}$_path"
+PATH="$_PATH${_path:+:}$_path" ; export PATH
unset _sanitize_path _PREFIX _PKG_PREFIX _LOCAL_PREFIX _PATH _path
for arg; do
case "$arg" in
--nocolor|--nocolour|-C)
- export EINFO_COLOR="NO"
+ EINFO_COLOR="NO" ; export EINFO_COLOR
;;
esac
done
@@ -106,7 +106,7 @@ else
for _e in ebegin eend error errorn einfo einfon ewarn ewarnn ewend \
vebegin veend veinfo vewarn vewend; do
eval "$_e() { local _r; command $_e \"\$@\"; _r=\$?; \
- export EINFO_LASTCMD=$_e; return \$_r; }"
+ EINFO_LASTCMD=$_e; export EINFO_LASTCMD ; return \$_r; }"
done
unset _e
fi