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
This commit is contained in:
mattijs
2010-03-23 10:22:45 +00:00
parent f65fe3244a
commit 52fc076b47

View File

@ -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"`