TACC/Lmod — pull request #6 by vplugaru (2013-11-28 10:12:45+00:00)
Title: Fix cache generation when the whatis field contains quotes.

Dear Dr. McLay,

Some modules (currently built through EasyBuild) may contain quotes in the whatis, e.g.:

module-whatis {Infernal ("INFERence of RNA ALignment") is for searching DNA sequence databases
for RNA structure and sequence similarities. - Homepage: http://infernal.janelia.org/}

in the TCL/C Environment Modules file.
With the latest git version, Lmod crashes when trying to read the .cache/moduleT.lua cache file due to the unescaped quotes:

whatis = {
"Infernal ("INFERence of RNA ALignment") is for searching DNA sequence databases for RNA structure and sequence similarities. - Homepage: http://infernal.janelia.org/",
},

This patch simply replaces all whatis field quote occurences by an escaped version.

Best regards,
Valentin Plugaru
Collaborator at the HPC Area, Computer Science and Communications Research Unit,
University of Luxembourg