From: Iain Patterson Date: Mon, 2 Jul 2007 08:49:23 +0000 (+0000) Subject: Don't leak temporary variables. X-Git-Url: http://git.iain.cx/?p=profile.git;a=commitdiff_plain;h=508ebf773fb67e7970f4087fab4591399bc59edb Don't leak temporary variables. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@61 6be0d1a5-5cfe-0310-89b6-964be062b18b --- diff --git a/.profile.d/PATH.bashrc b/.profile.d/PATH.bashrc index a7d4420..20fbf9b 100644 --- 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 copypath +unset dirs copypath makepath newpath