Skip to content

Commit

Permalink
Merge pull request #727 from tygoetsch/tygoetsch/cshrc.in-patch
Browse files Browse the repository at this point in the history
Add check before setting BASH_ENV cshrc.in
  • Loading branch information
rtmclay authored Oct 3, 2024
2 parents 3d7ad3b + a81c79a commit e904587
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 e904587

Please sign in to comment.