Skip to content

Commit

Permalink
Add check to stop BASH_ENV from being set in cshrc.in if it's already…
Browse files Browse the repository at this point in the history
… been set by another process.
  • Loading branch information
tygoetsch authored Oct 3, 2024
1 parent 3d7ad3b commit a81c79a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion init/cshrc.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ if ( ! $?MODULEPATH_ROOT ) then
setenv MODULEPATH `@PKGV@/libexec/addto MODULEPATH $LMOD_SITE_MODULEPATH`
endif

setenv BASH_ENV "@PKGV@/init/bash"
# Don't reset BASH_ENV if set by USER
if ( ! $?BASH_ENV ) then
setenv BASH_ENV "@PKGV@/init/bash"
endif

#
# If MANPATH is empty, Lmod is adding a trailing ":" so that
Expand Down

0 comments on commit a81c79a

Please sign in to comment.