Bright-Computing / bic

Bright-Illumina collaboration
GNU General Public License v2.0
4 stars 5 forks source link

`module unload` should work correctly with Lmod #45

Closed fgeorgatos closed 7 years ago

fgeorgatos commented 8 years ago

example of bug:

[root@demo-ext profile.d]# su - fgeorgatos
Last login: Wed Jul 27 11:49:21 CEST 2016 on pts/0
[fgeorgatos@demo-ext ~]$ module li

Currently Loaded Modules:
  1) HPCBIOS/2016q2   2) sge

[fgeorgatos@demo-ext ~]$ ml -sge
[fgeorgatos@demo-ext ~]$ ml

Currently Loaded Modules:
  1) HPCBIOS/2016q2

[fgeorgatos@demo-ext ~]$ bash
[fgeorgatos@demo-ext ~]$ ml

Currently Loaded Modules:
  1) HPCBIOS/2016q2   2) sge

[fgeorgatos@demo-ext ~]$ rpm -qa Lmod
Lmod-6.4.4-30_b75acf1_cm7.2_el7.noarch
fgeorgatos commented 8 years ago

btw. this is related to : https://github.com/TACC/Lmod/issues/151

fgeorgatos commented 8 years ago

and also related to: https://github.com/plabrop/bic/issues/5#issuecomment-235949531 (ie. reset upon an empty LD_LIBRARY_PATH is more of a precaution on behalf of Lmod)

fgeorgatos commented 7 years ago

this is handled via #55, $LD_LIBRARY_PATH is now ignorable...