mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user