Debian Codegraph @

testsuite/modulefiles/loc_sym/alias4

raw
1 #%Module1.0
2
3 ##############################################################################
4 # Modules Revision 3.0
5 # Providing a flexible user environment
6 #
7 # File: loc_sym/%M%
8 # Revision: %I%
9 # First Edition: 95/12/06
10 # Last Mod.: %U%, %G%
11 #
12 # Authors: Jens Hamisch, [email protected]
13 #
14 # Description: Testuite modulefile
15 # Command:
16 # Sub-Command: module-alias, setenv, module-info alias
17 #
18 # Invocation: load @M@/@V@
19 # Result: %R{
20 # setenv _LMFILES_ ${_LMFILES_}:@M@/@V@
21 # setenv LOADEDMODULES ${LOADEDMODULES}:@P@/@M@/@V@
22 # setenv testsuite loc_sym/2.0
23 # }R%
24 # Comment: %C{
25 # Checks the 'module-alias' and the 'module-info alias'
26 # commands. Redefiition of aliases.
27 # }C%
28 # Error: %E(novice){
29 # WARN:156: Duplicate alias 'foo' found
30 # ERROR:102: Tcl command execution failed
31 # }E%
32 # %E(advanced){
33 # WARN:156: Duplicate alias 'foo' found
34 # }E%
35 #
36 ##############################################################################
37
38 # This should result in
39 # 'setenv testuite loc_sym/2.0'
40 #
41 # Novice users are not allowed to do this,
42 # Advanced users will get a warning message
43
44 module-alias foo loc_sym/1.0
45 module-alias baa loc_sym/2.0
46 module-alias foo loc_sym/2.0
47
48 setenv testsuite [module-info alias foo]