Hello,
I am using the set-function directive in Modules v4.5.3 and am trying to interpolate TCL variables within the command string before exporting the function to the environment. For example:
#%Module
set var "hello"
set-function greeting {
echo "$var"
}
However, when I load the module and run 'type greeting' I get the following:
greeting is a function
greeting ()
{
echo "$var"
}
Whereas, what I would really like to see is:
greeting is a function
greeting ()
{
echo "hello"
}
How do I instruct Modules to interpolate "$var" to its value of "hello" before exporting the function, rather than exporting it with "$var" verbatim?
Thanks,
Nick
|