git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaac491
)
Don't leak temporary variables.
author
Iain Patterson
<me@iain.cx>
Mon, 2 Jul 2007 08:49:23 +0000
(08:49 +0000)
committer
Iain Patterson
<me@iain.cx>
Mon, 2 Jul 2007 08:49:23 +0000
(08:49 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@61
6be0d1a5
-5cfe-0310-89b6-
964be062b18b
.profile.d/PATH.bashrc
patch
|
blob
|
history
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