From 52fc076b47de39a34b49649dabaeb84e6a5654b0 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 23 Mar 2010 10:22:45 +0000 Subject: [PATCH] ENH: in csh: clear PATH local shell variable so enforcing use of environment one. Otherwise all $PATH will pick up the local one which will not be synchronised with $path --- etc/cshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/cshrc b/etc/cshrc index 1039445f24..fd3e7d6834 100644 --- a/etc/cshrc +++ b/etc/cshrc @@ -218,7 +218,10 @@ if (! $?MANPATH) setenv MANPATH '' #- Clean PATH (path) set cleaned=`$foamClean "$PATH" "$foamOldDirs"` -if ( $status == 0 ) setenv PATH $cleaned +if ( $status == 0 ) then + unset PATH + setenv PATH $cleaned +endif #- Clean LD_LIBRARY_PATH set cleaned=`$foamClean "$LD_LIBRARY_PATH" "$foamOldDirs"`