Hello,
we are currently trying to migrate from Modules 3.2.12 to 4.8.0.
Environment is RedHat 8 & 9, shell is tcsh.
We do not have the option to switch to anything else currently.
I need to have something like
> set osrel 80
> set-alias mycommand "bsub -R \"select[type==X64LIN && osrel==$osrel]\"
myapp"
However, no matter what kind of escaping and quoting I apply (or none at
all), I always end up with tcsh complaining:
alias: No match.
It seems the square brackets end up unescaped and unquoted in the tcsh
alias command, no matter what I try. Resulting in a failing shell pattern
match which is not what I want of course.
I tried:
[...]
\[...\]
{[...]}
{\[...\]}
{\\[...\\]}
{\\\[...\\\]}
"[...]"
"\[...\]"
"\\[...\\]"
"\\\[...\\\]"
and probably some more, all without success.
Is there a way to get this working in 4.8.0? Is it a bug that's maybe fixed
in newer versions (which I currently cannot test unfortunately)?
Any help would be greatly appreciated.
Andreas
|