Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
56a5650f
Commit
56a5650f
authored
Mar 23, 2010
by
Mark Olesen
Browse files
ENH: in cshrc - prevent local variables from shadowing setenv variables
parent
52fc076b
Changes
1
Hide whitespace changes
Inline
Side-by-side
etc/cshrc
View file @
56a5650f
...
@@ -213,13 +213,15 @@ endsw
...
@@ -213,13 +213,15 @@ endsw
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set
foamClean
=
$WM_PROJECT_DIR
/bin/foamCleanPath
set
foamClean
=
$WM_PROJECT_DIR
/bin/foamCleanPath
#- prevent local variables from shadowing setenv variables
unset
PATH MANPATH LD_LIBRARY_PATH LD_PRELOAD
if
(!
$?
LD_LIBRARY_PATH
)
setenv LD_LIBRARY_PATH
''
if
(!
$?
LD_LIBRARY_PATH
)
setenv LD_LIBRARY_PATH
''
if
(!
$?
MANPATH
)
setenv MANPATH
''
if
(!
$?
MANPATH
)
setenv MANPATH
''
#- Clean PATH (path)
#- Clean PATH (path)
set
cleaned
=
`
$foamClean
"
$PATH
"
"
$foamOldDirs
"
`
set
cleaned
=
`
$foamClean
"
$PATH
"
"
$foamOldDirs
"
`
if
(
$status
==
0
)
then
if
(
$status
==
0
)
then
unset
PATH
setenv PATH
$cleaned
setenv PATH
$cleaned
endif
endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment