Debian Codegraph @

testsuite/modulefiles.allin/restoreenv/1

raw
1 #%Module1.0
2
3 ##############################################################################
4 # Modules Revision 3.0
5 # Providing a flexible user environment
6 #
7 # File: restoreenv/%M%
8 # Revision: %I%
9 # First Edition: 2018/04/06
10 # Last Mod.: %U%, %G%
11 #
12 # Authors: Xavier Delaruelle, [email protected]
13 #
14 # Description: Testuite modulefile
15 # Command:
16 #
17 # Invocation:
18 # Result: %R{
19 # }R%
20 # Comment: %C{
21 # Test all kind of environment change (variable, alias, chdir, ...)
22 # in case the evaluation of a modulefile fails: previous environment
23 # context should be restored
24 # }C%
25 #
26 ##############################################################################
27
28 chdir $env(HOME)
29 setenv ts1 ok
30 unsetenv ts2
31 set-alias foo bar
32 unset-alias bar
33 if {![module-info mode whatis]} {
34 puts "echo foo"
35 puts "echo text"
36 }
37 x-resource {Ileaf.popup.saveUnder:True}
38
39 if {[info exists env(TSBREAK1)]} {
40 break
41 }