Closed fgeorgatos closed 7 years ago
waiting for Lmod in a repo to do this...
unvalidated:
[hive@node001 ~]$ cat /tmp/hello.sh
#!/bin/bash
echo Hello World
[hive@node001 ~]$ bash -fx /tmp/hello.sh 2>&1|head
+ [[ fhB != fhxB ]]
+ echo 'Start of Lmod init/bash script to define the module command'
Start of Lmod init/bash script to define the module command
+ LMOD_PKG=/usr/share/lmod/lmod
+ LMOD_DIR=/usr/share/lmod/lmod/libexec
+ LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod
+ MODULESHOME=/usr/share/lmod/lmod
+ export LMOD_PKG
+ export LMOD_CMD
+ export LMOD_DIR
[hive@node001 ~]$ ml --gitversion
git-2e415be
[hive@node001 ~]$
OK, not too bad; there's just a pending issue with --gitversion, as regards 7.x build (git hash missing):
[fgeorgatos@demo2 ~]$ cat >/tmp/hello.sh
#!/bin/bash
echo Hello World
[fgeorgatos@demo2 ~]$ chmod a+rx !$
chmod a+rx /tmp/hello.sh
[fgeorgatos@demo2 ~]$ bash -fx /tmp/hello.sh 2>&1|head
+ [[ fhB != fhxB ]]
+ XTRACE_STATE=-x
+ [[ fhxB != fhxB ]]
+ VERBOSE_STATE=+v
+ set +xv
+ unset XTRACE_STATE VERBOSE_STATE
+ echo Hello World
Hello World
[fgeorgatos@demo2 ~]$ ml --gitversion
7.1.9
[fgeorgatos@demo2 ~]$ ml --version
Modules based on Lua: Version 7.1.9 2016-12-17 13:29 -06:00
by Robert McLay mclay@tacc.utexas.edu
[fgeorgatos@demo2 ~]$
The git hash should be missing:
$ git checkout 7.1.9
works.
I consider this case closed since
a) I've built 100s of modules with Lmod/7.4.9
& EB/3.2.1
without a glitch
b) the reported xtrace bug (and several others) are not detectable any more:
[fgeorgatos@node001 ~]$ cat >hello.sh
#!/bin/bash
echo Hello World
[fgeorgatos@node001 ~]$ chmod a+rx !$
chmod a+rx hello.sh
[fgeorgatos@node001 ~]$ bash -fx hello.sh 2>&1|head
++ set -o
++ grep xtrace
++ grep on
+ xtrace_saved='xtrace on'
+ set +x
+ unset xtrace_saved
+ echo Hello World
Hello World
[fgeorgatos@node001 ~]$
[fgeorgatos@node001 ~]$
[fgeorgatos@node001 ~]$ ml --gitversion
7.4.9
this is mine :-)