When defining an alias containing bracket characters ([]), if module is run against csh/tcsh shells, an error is obtained.
Example modulefile:
#%Module
set osrel 80
set-alias mycommand "bsub -R \"select[type==X64LIN && osrel==$osrel]\" myapp"
Error when running module:
$ module load ./test
alias: No match.
It seems bracket characters have a special meaning on Csh shell. Thus they should be escaped when module produces shell output.