[Modules] fix for broken "bash autoinit" in pure-TCL version
Manage your shell environment variables and aliases
Brought to you by:
xdelaruelle
From: Thomas Z. <tho...@rr...> - 2011-08-12 09:57:06
|
Hi, with the current pure-TCL version (1.140) of modules eval ` tclsh /local/modules/modulecmd.tcl bash autoinit ` does not work but gives an error message: bash-3.2$ eval ` tclsh /local/modules/modulecmd.tcl bash autoinit ` bash: syntax error near unexpected token `MODULEPATH_modshare=/local/modules/modulefiles...` The one-character fix in the attached patch seems to fix the issue: (tested with bash-v4.1 and bash-v3.2.25) the generated line defining module () { eval ... } has to be ended with a semicolon. This semicolon was not necessary as long as we did source the temporary file with the commands ... Best, Thomas Zeiser |