[Lmod-users] changes to tcl 'break' statement in lmod 8 series
A Lua based environment module system that reads TCL modulefiles.
Brought to you by:
rtmclay
|
From: Shrader, D. L. <dsh...@la...> - 2022-03-21 20:19:12
|
Hello,
We're are potentially going from Lmod 7.8.16 to 8.4.10, and we have noticed that our tcl modulefiles that call "break" after a "puts stderr ..." message now generate something like the following error:
Lmod has detected the following error: Unable to load module because of error when evaluating modulefile: foo3
/modulefiles/foo3/1.0: [string "LmodMsgRaw([===[already set..."]:4: unexpected symbol near '}'
We have used this method of "puts stderr...; break" to exit out of a particular modulefile when an error occurs, such as a missing directory.
In looking over the readthedocs tcl function page, it looks like the "break" function has seen some attention, but we are looking at 8.4.10, not 8.6+. Did something change for the "break" command in 8.0 to 8.5 such that it won't work as we have been using it in 7.x?
Thank you very much for any and all help!
David
--
David Shrader
HPC-ENV High Performance Computing Systems
Los Alamos National Lab
|