Thanks for the explanation.
I'm almost there with this, just having problems passing Tcl variables into the set-function definition.
Our module files define the application path at the start like so:
set ppath /path/to/apps
set package app
set version x.y.z
In set-alias I can just refer to those as so:
set-alias appalias "$ppath/$package/$version/scripts/thing --option"
But in set-function everything within the braces is passed through to the shell literally and the variable values aren't passed:
set-function appalias { $ppath/$package/$version/scripts/thing --option }
declare -f appalias
appalias ()
{
$ppath/$package/$version/scripts/thing --option
}
...instead of
declare -f appalias
appalias ()
{
/path/to/apps/app/x.y.z/scripts/thing --option
}
How can I get those variables declared within the module to be dereferenced in the function definition? This could be just my Tcl-foo being inadequate.
Thanks,
Liam
|