From 508ebf773fb67e7970f4087fab4591399bc59edb Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Mon, 2 Jul 2007 08:49:23 +0000 Subject: [PATCH] Don't leak temporary variables. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@61 6be0d1a5-5cfe-0310-89b6-964be062b18b --- .profile.d/PATH.bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.7.4