Don't leak temporary variables.
authorIain Patterson <me@iain.cx>
Mon, 2 Jul 2007 08:49:23 +0000 (08:49 +0000)
committerIain 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

index a7d4420..20fbf9b 100644 (file)
@@ -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 copypath
+unset dirs copypath makepath newpath