git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't leak temporary variables.
[profile.git]
/
.profile.d
/
PATH.bashrc
diff --git
a/.profile.d/PATH.bashrc
b/.profile.d/PATH.bashrc
index
a7d4420
..
20fbf9b
100644
(file)
--- a/
.profile.d/PATH.bashrc
+++ b/
.profile.d/PATH.bashrc
@@
-34,6
+34,7
@@
function makepath() {
path="$path:$dir"
done
+ unset dir
# Sanitise path.
path=${path#:}
@@
-53,4
+54,4
@@
copypath LD_RUN_PATH LD_LIBRARY_PATH
makepath MANPATH mandirs
makepath PKG_CONFIG_PATH pkgdirs
-unset
sedscr makepath copy
path
+unset
dirs copypath makepath new
path