"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "testsuite/modules.50-cmds/400-source-sh.exp" between
modules-5.1.1.tar.bz2 and modules-5.2.0.tar.bz2

About: The Environment Modules package provides for the dynamic modification of a user’s environment via modulefiles.

400-source-sh.exp  (modules-5.1.1.tar.bz2):400-source-sh.exp  (modules-5.2.0.tar.bz2)
skipping to change at line 58 skipping to change at line 58
lappend ans [list set FOOSP {value }] lappend ans [list set FOOSP {value }]
lappend ans [list set FOOPATHDUPSPEM {/path/to/dir1 /path/to/dir1 /path/to/dir2 /path/to/dir1 /path/to/dir3 /path/to/dir3 }] lappend ans [list set FOOPATHDUPSPEM {/path/to/dir1 /path/to/dir1 /path/to/dir2 /path/to/dir1 /path/to/dir3 /path/to/dir3 }]
lappend ans [list set FOOPATHDUPMIX ":/path/to/dir1:/path/to/dir1 /path/to/dir2 /path/to/dir1:/path/to/dir3"] lappend ans [list set FOOPATHDUPMIX ":/path/to/dir1:/path/to/dir1 /path/to/dir2 /path/to/dir1:/path/to/dir3"]
lappend ans [list set FOOCB va\{ue] lappend ans [list set FOOCB va\{ue]
lappend ans [list set FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3] lappend ans [list set FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3]
lappend ans [list set __MODULES_SHARE_FOOPATHEM :1] lappend ans [list set __MODULES_SHARE_FOOPATHEM :1]
lappend ans [list set FOOPATHWC /path/to/dir1:/path/to/d\*r2:/path/to/dir3] lappend ans [list set FOOPATHWC /path/to/dir1:/path/to/d\*r2:/path/to/dir3]
lappend ans [list set FOOPATHDUPEM :/path/to/dir1:/path/to/dir2:/path/to/dir3] lappend ans [list set FOOPATHDUPEM :/path/to/dir1:/path/to/dir2:/path/to/dir3]
lappend ans [list set FOO value] lappend ans [list set FOO value]
lappend ans [list set FOOPATHDUPSP "/path/to/dir1 /path/to/dir1 /path/to/dir2 /p ath/to/dir1 /path/to/dir3 /path/to:dir4 /path/to/dir3"] lappend ans [list set FOOPATHDUPSP "/path/to/dir1 /path/to/dir1 /path/to/dir2 /p ath/to/dir1 /path/to/dir3 /path/to:dir4 /path/to/dir3"]
lappend ans [list set __MODULES_LMREFRESH source-sh/1]
lappend ans [list set FOOWC va\*ue] lappend ans [list set FOOWC va\*ue]
lappend ans [list set FOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }] lappend ans [list set FOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }]
lappend ans [list alias alsp {echo f\"o; echo b\\\"r; echo f\'o}] lappend ans [list alias alsp {echo f\"o; echo b\\\"r; echo f\'o}]
lappend ans [list alias alfoo {echo $(grep "report .Modules " ../../modulecmd.tc l | tr -d \\ 2>/dev/null | awk '{print $3}')}] lappend ans [list alias alfoo {echo $(grep "report .Modules " ../../modulecmd.tc l | tr -d \\ 2>/dev/null | awk '{print $3}')}]
lappend ans [list alias alcb echo\ f\{o] lappend ans [list alias alcb echo\ f\{o]
lappend ans [list alias alem {}] lappend ans [list alias alem {}]
lappend ans [list funcfoo "() { echo foo; };"] lappend ans [list funcfoo "() { echo foo; };"]
lappend ans [list funccb "() { echo f\{o; };"] lappend ans [list funccb "() { echo f\{o; };"]
lappend ans [list funcwc "() { echo sou*sh; };"] lappend ans [list funcwc "() { echo sou*sh; };"]
lappend ans [list funcnl "() { echo foo; lappend ans [list funcnl "() { echo foo;
echo bar; };"] echo bar; };"]
lappend ans [list funcsp "() { echo f\\\"o; lappend ans [list funcsp "() { echo f\\\"o;
echo b\\\\\\\"r; echo b\\\\\\\"r;
echo f\\'o; };"] echo f\\'o; };"]
lappend ans [list chdir $mp] lappend ans [list chdir $mp]
testouterr_cmd sh {load source-sh/1} $ans {} testouterr_cmd sh {load source-sh/1} $ans {}
# basic unload # basic unload
setenv_loaded_module [list source-sh/1] [list $mp/source-sh/1] setenv_loaded_module [list source-sh/1] [list $mp/source-sh/1]
setenv_var __MODULES_LMREFRESH source-sh/1
setenv_var __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/sh-to-mod.s h\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ /path/to/dir 3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to/dir3\|prep end-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{/path/to\ d ir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/dir1\ /path/t o/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \{/path/to/d ir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /path/to\}\ \{d ir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir 2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/ to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|s et-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|s et-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\ }\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOO PATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path /to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ /path/to/dir2\ /path/to/d ir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue setenv_var __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/sh-to-mod.s h\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ /path/to/dir 3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to/dir3\|prep end-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{/path/to\ d ir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/dir1\ /path/t o/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \{/path/to/d ir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /path/to\}\ \{d ir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir 2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/ to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|s et-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|s et-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\ }\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOO PATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path /to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ /path/to/dir2\ /path/to/d ir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue
setenv_path_var FOOPATHDUP "/path/to/dir1:/path/to/dir2:/path/to/dir3:/path/to d ir4" setenv_path_var FOOPATHDUP "/path/to/dir1:/path/to/dir2:/path/to/dir3:/path/to d ir4"
setenv_path_var FOOPATHEM {} /path/to/dir1 /path/to/dir2 /path/to/dir3 setenv_path_var FOOPATHEM {} /path/to/dir1 /path/to/dir2 /path/to/dir3
setenv_path_var FOOPATHCB /path/to/dir1:/path/to/d\{r2:/path/to/dir3 setenv_path_var FOOPATHCB /path/to/dir1:/path/to/d\{r2:/path/to/dir3
setenv_path_var FOOPATHWC /path/to/dir1:/path/to/d\*r2:/path/to/dir3 setenv_path_var FOOPATHWC /path/to/dir1:/path/to/d\*r2:/path/to/dir3
setenv_path_var FOOPATHDUPMIX {} "/path/to/dir1:/path/to/dir1 /path/to/dir2 /pat h/to/dir1:/path/to/dir3" setenv_path_var FOOPATHDUPMIX {} "/path/to/dir1:/path/to/dir1 /path/to/dir2 /pat h/to/dir1:/path/to/dir3"
setenv_path_var FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3 setenv_path_var FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3
setenv_path_var FOOPATHDUPEM {} /path/to/dir1:/path/to/dir2:/path/to/dir3 setenv_path_var FOOPATHDUPEM {} /path/to/dir1:/path/to/dir2:/path/to/dir3
setenv_path_var FOOPATHDUPSP "/path/to/dir1 /path/to/dir1 /path/to/dir2 /path/to /dir1 /path/to/dir3 /path/to:dir4 /path/to/dir3" setenv_path_var FOOPATHDUPSP "/path/to/dir1 /path/to/dir1 /path/to/dir2 /path/to /dir1 /path/to/dir3 /path/to:dir4 /path/to/dir3"
setenv_var FOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3} setenv_var FOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3}
skipping to change at line 117 skipping to change at line 119
lappend ans [list unset FOOSP] lappend ans [list unset FOOSP]
lappend ans [list unset FOOPATHDUPSPEM] lappend ans [list unset FOOPATHDUPSPEM]
lappend ans [list unset FOOPATHDUPMIX] lappend ans [list unset FOOPATHDUPMIX]
lappend ans [list unset FOOCB] lappend ans [list unset FOOCB]
lappend ans [list unset FOOPATH] lappend ans [list unset FOOPATH]
lappend ans [list unset __MODULES_SHARE_FOOPATHEM] lappend ans [list unset __MODULES_SHARE_FOOPATHEM]
lappend ans [list unset FOOPATHWC] lappend ans [list unset FOOPATHWC]
lappend ans [list unset FOOPATHDUPEM] lappend ans [list unset FOOPATHDUPEM]
lappend ans [list unset FOO] lappend ans [list unset FOO]
lappend ans [list unset FOOPATHDUPSP] lappend ans [list unset FOOPATHDUPSP]
lappend ans [list unset __MODULES_LMREFRESH]
lappend ans [list unset FOOWC] lappend ans [list unset FOOWC]
lappend ans [list unset FOOPATHSPEM] lappend ans [list unset FOOPATHSPEM]
lappend ans [list unalias alsp] lappend ans [list unalias alsp]
lappend ans [list unalias alfoo] lappend ans [list unalias alfoo]
lappend ans [list unalias alcb] lappend ans [list unalias alcb]
lappend ans [list unalias alem] lappend ans [list unalias alem]
lappend ans [list "unset -f funcfoo;"] lappend ans [list "unset -f funcfoo;"]
lappend ans [list "unset -f funccb;"] lappend ans [list "unset -f funccb;"]
lappend ans [list "unset -f funcwc;"] lappend ans [list "unset -f funcwc;"]
lappend ans [list "unset -f funcnl;"] lappend ans [list "unset -f funcnl;"]
lappend ans [list "unset -f funcsp;"] lappend ans [list "unset -f funcsp;"]
testouterr_cmd sh {unload source-sh/1} $ans {} testouterr_cmd sh {unload source-sh/1} $ans {}
skip_if_quick_mode skip_if_quick_mode
# load other modulefiles using source-sh # load other modulefiles using source-sh
set ans [list] set ans [list]
lappend ans [list set FOOMINI value] lappend ans [list set FOOMINI value]
lappend ans [list set FOOPATH /path/to/mini:/path/to/dir1:/path/to/dir2:/path/to /dir3] lappend ans [list set FOOPATH /path/to/mini:/path/to/dir1:/path/to/dir2:/path/to /dir3]
lappend ans [list set __MODULES_LMREFRESH source-sh/1:source-sh/2]
lappend ans [list set _LMFILES_ $mp/source-sh/1:$mp/source-sh/2] lappend ans [list set _LMFILES_ $mp/source-sh/1:$mp/source-sh/2]
lappend ans [list set LOADEDMODULES source-sh/1:source-sh/2] lappend ans [list set LOADEDMODULES source-sh/1:source-sh/2]
lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ / path/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to /dir3\|prepend-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{ /path/to\ dir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2 \ /path/to/dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/di r1\ /path/to/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \ {/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /pat h/to\}\ \{dir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ / path/to/dir2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\ *r2\ /path/to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alf oo\ \{\}\|set-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcf oo\ \{\}\|set-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\| setenv\ FOOPATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir1\ /path/to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /pat h/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue:source-sh/ 2\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini \|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value] lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ / path/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to /dir3\|prepend-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{ /path/to\ dir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2 \ /path/to/dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/di r1\ /path/to/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \ {/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /pat h/to\}\ \{dir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ / path/to/dir2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\ *r2\ /path/to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alf oo\ \{\}\|set-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcf oo\ \{\}\|set-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\| setenv\ FOOPATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir1\ /path/to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /pat h/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue:source-sh/ 2\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini \|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value]
lappend ans [list alias almini echo\ mini] lappend ans [list alias almini echo\ mini]
testouterr_cmd_re sh {load source-sh/2} $ans {} testouterr_cmd_re sh {load source-sh/2} $ans {}
# unload one of these modulefiles # unload one of these modulefiles
setenv_loaded_module [list source-sh/1 source-sh/2] [list $mp/source-sh/1 $mp/so urce-sh/2] setenv_loaded_module [list source-sh/1 source-sh/2] [list $mp/source-sh/1 $mp/so urce-sh/2]
setenv_var __MODULES_LMREFRESH source-sh/1:source-sh/2
setenv_var FOOMINI value setenv_var FOOMINI value
setenv_path_var FOOPATH /path/to/mini:/path/to/dir1:/path/to/dir2:/path/to/dir3 setenv_path_var FOOPATH /path/to/mini:/path/to/dir1:/path/to/dir2:/path/to/dir3
setenv_var __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/sh-to-mod.s h\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ /path/to/dir 3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to/dir3\|prep end-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{/path/to\ d ir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/dir1\ /path/t o/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \{/path/to/d ir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /path/to\}\ \{d ir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir 2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/ to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|s et-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|s et-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\ }\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOO PATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path /to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ /path/to/dir2\ /path/to/d ir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue:source-sh/2\&sh\ test suite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\|set-alias \ almini\ \{\}\|setenv\ FOOMINI\ value setenv_var __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/sh-to-mod.s h\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ /path/to/dir 3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to/dir3\|prep end-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{/path/to\ d ir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/dir1\ /path/t o/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \{/path/to/d ir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /path/to\}\ \{d ir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir 2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/ to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|s et-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|s et-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\ }\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOO PATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path /to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ /path/to/dir2\ /path/to/d ir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue:source-sh/2\&sh\ test suite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\|set-alias \ almini\ \{\}\|setenv\ FOOMINI\ value
set ans [list] set ans [list]
lappend ans [list unset FOOMINI] lappend ans [list unset FOOMINI]
lappend ans [list set FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3] lappend ans [list set FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3]
lappend ans [list set _LMFILES_ $mp/source-sh/1] lappend ans [list set _LMFILES_ $mp/source-sh/1]
lappend ans [list set LOADEDMODULES source-sh/1] lappend ans [list set LOADEDMODULES source-sh/1]
lappend ans [list set __MODULES_LMREFRESH source-sh/1]
lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ / path/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to /dir3\|prepend-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{ /path/to\ dir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2 \ /path/to/dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/di r1\ /path/to/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \ {/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /pat h/to\}\ \{dir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ / path/to/dir2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\ *r2\ /path/to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alf oo\ \{\}\|set-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcf oo\ \{\}\|set-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\| setenv\ FOOPATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir1\ /path/to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /pat h/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue] lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ / path/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to /dir3\|prepend-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{ /path/to\ dir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2 \ /path/to/dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/di r1\ /path/to/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \ {/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /pat h/to\}\ \{dir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ / path/to/dir2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\ *r2\ /path/to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alf oo\ \{\}\|set-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcf oo\ \{\}\|set-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\| setenv\ FOOPATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir1\ /path/to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /pat h/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue]
lappend ans [list unalias almini] lappend ans [list unalias almini]
testouterr_cmd sh {unload source-sh/2} $ans {} testouterr_cmd sh {unload source-sh/2} $ans {}
set ans [list] set ans [list]
lappend ans [list unset __MODULES_SHARE_FOOPATHDUPMIX] lappend ans [list unset __MODULES_SHARE_FOOPATHDUPMIX]
lappend ans [list set _LMFILES_ $mp/source-sh/2] lappend ans [list set _LMFILES_ $mp/source-sh/2]
lappend ans [list set LOADEDMODULES source-sh/2] lappend ans [list set LOADEDMODULES source-sh/2]
lappend ans [list unset FOOPATHDUP] lappend ans [list unset FOOPATHDUP]
lappend ans [list set __MODULES_LMSOURCESH source-sh/2\&sh\ testsuite/example/mi ni-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\|set-alias\ almini\ \{\}\| setenv\ FOOMINI\ value] lappend ans [list set __MODULES_LMSOURCESH source-sh/2\&sh\ testsuite/example/mi ni-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\|set-alias\ almini\ \{\}\| setenv\ FOOMINI\ value]
skipping to change at line 178 skipping to change at line 184
lappend ans [list unset FOOSP] lappend ans [list unset FOOSP]
lappend ans [list unset FOOPATHDUPSPEM] lappend ans [list unset FOOPATHDUPSPEM]
lappend ans [list unset FOOPATHDUPMIX] lappend ans [list unset FOOPATHDUPMIX]
lappend ans [list unset FOOCB] lappend ans [list unset FOOCB]
lappend ans [list set FOOPATH /path/to/mini] lappend ans [list set FOOPATH /path/to/mini]
lappend ans [list unset __MODULES_SHARE_FOOPATHEM] lappend ans [list unset __MODULES_SHARE_FOOPATHEM]
lappend ans [list unset FOOPATHWC] lappend ans [list unset FOOPATHWC]
lappend ans [list unset FOOPATHDUPEM] lappend ans [list unset FOOPATHDUPEM]
lappend ans [list unset FOO] lappend ans [list unset FOO]
lappend ans [list unset FOOPATHDUPSP] lappend ans [list unset FOOPATHDUPSP]
lappend ans [list set __MODULES_LMREFRESH source-sh/2]
lappend ans [list unset FOOWC] lappend ans [list unset FOOWC]
lappend ans [list unset FOOPATHSPEM] lappend ans [list unset FOOPATHSPEM]
lappend ans [list unalias alsp] lappend ans [list unalias alsp]
lappend ans [list unalias alfoo] lappend ans [list unalias alfoo]
lappend ans [list unalias alcb] lappend ans [list unalias alcb]
lappend ans [list unalias alem] lappend ans [list unalias alem]
lappend ans [list "unset -f funcfoo;"] lappend ans [list "unset -f funcfoo;"]
lappend ans [list "unset -f funccb;"] lappend ans [list "unset -f funccb;"]
lappend ans [list "unset -f funcwc;"] lappend ans [list "unset -f funcwc;"]
lappend ans [list "unset -f funcnl;"] lappend ans [list "unset -f funcnl;"]
lappend ans [list "unset -f funcsp;"] lappend ans [list "unset -f funcsp;"]
testouterr_cmd sh {unload source-sh/1} $ans {} testouterr_cmd sh {unload source-sh/1} $ans {}
# load a third modulefile, using same script than firstly loaded module # load a third modulefile, using same script than firstly loaded module
set ans [list] set ans [list]
lappend ans [list set FOOPATHDUPEM :/path/to/dir1:/path/to/dir1:/path/to/dir2:/p ath/to/dir1:/path/to/dir3::/path/to/dir3] lappend ans [list set FOOPATHDUPEM :/path/to/dir1:/path/to/dir1:/path/to/dir2:/p ath/to/dir1:/path/to/dir3::/path/to/dir3]
lappend ans [list unset __MODULES_SHARE_FOOPATHDUPEM] lappend ans [list unset __MODULES_SHARE_FOOPATHDUPEM]
lappend ans [list set __MODULES_SHARE_FOOPATHDUPMIX ":2:/path/to/dir3:2"] lappend ans [list set __MODULES_SHARE_FOOPATHDUPMIX ":2:/path/to/dir3:2"]
lappend ans [list set FOOPATHDUPMIX :/path/to/dir1:/path/to/dir1\ /path/to/dir2\ /path/to/dir1:/path/to/dir3] lappend ans [list set FOOPATHDUPMIX :/path/to/dir1:/path/to/dir1\ /path/to/dir2\ /path/to/dir1:/path/to/dir3]
lappend ans [list set FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3] lappend ans [list set FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3]
lappend ans [list set __MODULES_LMREFRESH source-sh/1:source-sh/2:source-sh/3]
lappend ans [list set _LMFILES_ $mp/source-sh/1:$mp/source-sh/2:$mp/source-sh/3] lappend ans [list set _LMFILES_ $mp/source-sh/1:$mp/source-sh/2:$mp/source-sh/3]
lappend ans [list set LOADEDMODULES source-sh/1:source-sh/2:source-sh/3] lappend ans [list set LOADEDMODULES source-sh/1:source-sh/2:source-sh/3]
lappend ans [list set FOOPATHDUP "/path/to/dir1:/path/to/dir1:/path/to/dir2:/pat h/to/dir1:/path/to/dir3:/path/to dir4:/path/to/dir3"] lappend ans [list set FOOPATHDUP "/path/to/dir1:/path/to/dir1:/path/to/dir2:/pat h/to/dir1:/path/to/dir3:/path/to dir4:/path/to/dir3"]
lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ / path/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to /dir3\|prepend-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{ /path/to\ dir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2 \ /path/to/dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/di r1\ /path/to/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \ {/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /pat h/to\}\ \{dir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ / path/to/dir2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\ *r2\ /path/to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alf oo\ \{\}\|set-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcf oo\ \{\}\|set-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\| setenv\ FOOPATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir1\ /path/to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /pat h/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue:source-sh/ 2\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini \|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value:source-sh/3\&bash\ testsuite/e xample/sh-to-mod.sh\|append-path\ FOOPATHDUPMIX\ /path/to/dir3\ \{\}\|chdir\ $mp \|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|set-alia s\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|set-func tion\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|sete nv\ FOOPATH\ /path/to/dir1\<EnvModEscPS\>/path/to/dir2\<EnvModEscPS\>/path/to/di r3\|setenv\ FOOPATHDUP\ \{/path/to/dir1\<EnvModEscPS\>/path/to/dir1\<EnvModEscPS \>/path/to/dir2\<EnvModEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/dir3\<EnvModE scPS\>/path/to\ dir4\<EnvModEscPS\>/path/to/dir3\}\|setenv\ FOOPATHDUPEM\ \<EnvM odEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/dir2\< EnvModEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/dir3\<EnvModEscPS\>\<EnvModEsc PS\>/path/to/dir3] lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ / path/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to /dir3\|prepend-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{ /path/to\ dir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2 \ /path/to/dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/di r1\ /path/to/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \ {/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /pat h/to\}\ \{dir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ / path/to/dir2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\ *r2\ /path/to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alf oo\ \{\}\|set-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcf oo\ \{\}\|set-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\| setenv\ FOOPATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir1\ /path/to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /pat h/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue:source-sh/ 2\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini \|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value:source-sh/3\&bash\ testsuite/e xample/sh-to-mod.sh\|append-path\ FOOPATHDUPMIX\ /path/to/dir3\ \{\}\|chdir\ $mp \|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|set-alia s\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|set-func tion\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|sete nv\ FOOPATH\ /path/to/dir1\<EnvModEscPS\>/path/to/dir2\<EnvModEscPS\>/path/to/di r3\|setenv\ FOOPATHDUP\ \{/path/to/dir1\<EnvModEscPS\>/path/to/dir1\<EnvModEscPS \>/path/to/dir2\<EnvModEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/dir3\<EnvModE scPS\>/path/to\ dir4\<EnvModEscPS\>/path/to/dir3\}\|setenv\ FOOPATHDUPEM\ \<EnvM odEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/dir2\< EnvModEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/dir3\<EnvModEscPS\>\<EnvModEsc PS\>/path/to/dir3]
lappend ans [list alias alsp {echo f\"o; echo b\\\"r; echo f\'o}] lappend ans [list alias alsp {echo f\"o; echo b\\\"r; echo f\'o}]
lappend ans [list alias alfoo {echo $(grep "report .Modules " ../../modulecmd.tc l | tr -d \\ 2>/dev/null | awk '{print $3}')}] lappend ans [list alias alfoo {echo $(grep "report .Modules " ../../modulecmd.tc l | tr -d \\ 2>/dev/null | awk '{print $3}')}]
lappend ans [list alias alcb echo\ f\{o] lappend ans [list alias alcb echo\ f\{o]
lappend ans [list alias alem {}] lappend ans [list alias alem {}]
lappend ans [list funcfoo "\\\(\\\) { echo foo; };"] lappend ans [list funcfoo "\\\(\\\) { echo foo; };"]
lappend ans [list funccb "\\\(\\\) { echo f\{o; };"] lappend ans [list funccb "\\\(\\\) { echo f\{o; };"]
skipping to change at line 220 skipping to change at line 228
echo bar; };"] echo bar; };"]
lappend ans [list funcsp "\\\(\\\) { echo f\\\\\"o; lappend ans [list funcsp "\\\(\\\) { echo f\\\\\"o;
echo b\\\\\\\\\\\\\"r; echo b\\\\\\\\\\\\\"r;
echo f\\\\'o; };"] echo f\\\\'o; };"]
lappend ans [list chdir $mpre] lappend ans [list chdir $mpre]
testouterr_cmd_re sh {load source-sh/3} $ans {} testouterr_cmd_re sh {load source-sh/3} $ans {}
# unload from that point # unload from that point
setenv_loaded_module [list source-sh/1 source-sh/2 source-sh/3] [list $mp/source -sh/1 $mp/source-sh/2 $mp/source-sh/3] setenv_loaded_module [list source-sh/1 source-sh/2 source-sh/3] [list $mp/source -sh/1 $mp/source-sh/2 $mp/source-sh/3]
setenv_var __MODULES_LMREFRESH source-sh/1:source-sh/2:source-sh/3
setenv_var FOOPATHDUP "/path/to/dir1:/path/to/dir1:/path/to/dir2:/path/to/dir1:/ path/to/dir3:/path/to dir4:/path/to/dir3" setenv_var FOOPATHDUP "/path/to/dir1:/path/to/dir1:/path/to/dir2:/path/to/dir1:/ path/to/dir3:/path/to dir4:/path/to/dir3"
unsetenv_var __MODULES_SHARE_FOOPATHDUPEM unsetenv_var __MODULES_SHARE_FOOPATHDUPEM
unsetenv_var __MODULES_SHARE_FOOPATH unsetenv_var __MODULES_SHARE_FOOPATH
unsetenv_var __MODULES_SHARE_FOOPATHDUP unsetenv_var __MODULES_SHARE_FOOPATHDUP
setenv_path_var FOOPATHDUPMIX :/path/to/dir1:/path/to/dir1\ /path/to/dir2\ /path /to/dir1:/path/to/dir3 setenv_path_var FOOPATHDUPMIX :/path/to/dir1:/path/to/dir1\ /path/to/dir2\ /path /to/dir1:/path/to/dir3
setenv_var FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3 setenv_var FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3
setenv_var FOOPATHDUPEM :/path/to/dir1:/path/to/dir1:/path/to/dir2:/path/to/dir1 :/path/to/dir3::/path/to/dir3 setenv_var FOOPATHDUPEM :/path/to/dir1:/path/to/dir1:/path/to/dir2:/path/to/dir1 :/path/to/dir3::/path/to/dir3
setenv_var __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/sh-to-mod.s h\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ /path/to/dir 3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to/dir3\|prep end-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{/path/to\ d ir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/dir1\ /path/t o/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \{/path/to/d ir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /path/to\}\ \{d ir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir 2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/ to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|s et-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|s et-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\ }\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOO PATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path /to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ /path/to/dir2\ /path/to/d ir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue:source-sh/2\&sh\ test suite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\|set-alias \ almini\ \{\}\|setenv\ FOOMINI\ value:source-sh/3\&bash\ testsuite/example/sh-t o-mod.sh\|append-path\ FOOPATHDUPMIX\ /path/to/dir3\ \{\}\|chdir\ $mp\|set-alias \ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|set-alias\ alsp\ \{ \}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|set-function\ funcn l\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|setenv\ FOOPATH \ /path/to/dir1\<EnvModEscPS\>/path/to/dir2\<EnvModEscPS\>/path/to/dir3\|setenv\ FOOPATHDUP\ \{/path/to/dir1\<EnvModEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/ dir2\<EnvModEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/dir3\<EnvModEscPS\>/path /to\ dir4\<EnvModEscPS\>/path/to/dir3\}\|setenv\ FOOPATHDUPEM\ \<EnvModEscPS\>/p ath/to/dir1\<EnvModEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/dir2\<EnvModEscPS \>/path/to/dir1\<EnvModEscPS\>/path/to/dir3\<EnvModEscPS\>\<EnvModEscPS\>/path/t o/dir3 setenv_var __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/sh-to-mod.s h\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ /path/to/dir 3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to/dir3\|prep end-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{/path/to\ d ir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/dir1\ /path/t o/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \{/path/to/d ir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /path/to\}\ \{d ir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir 2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/ to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|s et-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|s et-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\ }\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOO PATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path /to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ /path/to/dir2\ /path/to/d ir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue:source-sh/2\&sh\ test suite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\|set-alias \ almini\ \{\}\|setenv\ FOOMINI\ value:source-sh/3\&bash\ testsuite/example/sh-t o-mod.sh\|append-path\ FOOPATHDUPMIX\ /path/to/dir3\ \{\}\|chdir\ $mp\|set-alias \ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|set-alias\ alsp\ \{ \}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|set-function\ funcn l\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|setenv\ FOOPATH \ /path/to/dir1\<EnvModEscPS\>/path/to/dir2\<EnvModEscPS\>/path/to/dir3\|setenv\ FOOPATHDUP\ \{/path/to/dir1\<EnvModEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/ dir2\<EnvModEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/dir3\<EnvModEscPS\>/path /to\ dir4\<EnvModEscPS\>/path/to/dir3\}\|setenv\ FOOPATHDUPEM\ \<EnvModEscPS\>/p ath/to/dir1\<EnvModEscPS\>/path/to/dir1\<EnvModEscPS\>/path/to/dir2\<EnvModEscPS \>/path/to/dir1\<EnvModEscPS\>/path/to/dir3\<EnvModEscPS\>\<EnvModEscPS\>/path/t o/dir3
set ans [list] set ans [list]
skipping to change at line 248 skipping to change at line 257
lappend ans [list unset FOOSP] lappend ans [list unset FOOSP]
lappend ans [list unset FOOPATHDUPSPEM] lappend ans [list unset FOOPATHDUPSPEM]
lappend ans [list unset FOOPATHDUPMIX] lappend ans [list unset FOOPATHDUPMIX]
lappend ans [list unset FOOPATH] lappend ans [list unset FOOPATH]
lappend ans [list unset FOOCB] lappend ans [list unset FOOCB]
lappend ans [list unset __MODULES_SHARE_FOOPATHEM] lappend ans [list unset __MODULES_SHARE_FOOPATHEM]
lappend ans [list unset FOOPATHWC] lappend ans [list unset FOOPATHWC]
lappend ans [list unset FOOPATHDUPEM] lappend ans [list unset FOOPATHDUPEM]
lappend ans [list unset FOO] lappend ans [list unset FOO]
lappend ans [list unset FOOPATHDUPSP] lappend ans [list unset FOOPATHDUPSP]
lappend ans [list set __MODULES_LMREFRESH source-sh/2:source-sh/3]
lappend ans [list unset FOOWC] lappend ans [list unset FOOWC]
lappend ans [list unset FOOPATHSPEM] lappend ans [list unset FOOPATHSPEM]
lappend ans [list unalias alsp] lappend ans [list unalias alsp]
lappend ans [list unalias alfoo] lappend ans [list unalias alfoo]
lappend ans [list unalias alcb] lappend ans [list unalias alcb]
lappend ans [list unalias alem] lappend ans [list unalias alem]
lappend ans [list "unset -f funcfoo;"] lappend ans [list "unset -f funcfoo;"]
lappend ans [list "unset -f funccb;"] lappend ans [list "unset -f funccb;"]
lappend ans [list "unset -f funcwc;"] lappend ans [list "unset -f funcwc;"]
lappend ans [list "unset -f funcnl;"] lappend ans [list "unset -f funcnl;"]
skipping to change at line 450 skipping to change at line 460
echo f\\\"o; echo f\\\"o;
echo b\\\\\\\"r; echo b\\\\\\\"r;
echo f\\'o} echo f\\'o}
set-function\tfuncwc { set-function\tfuncwc {
echo sou*sh} echo sou*sh}
setenv FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3 setenv FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3
-------------------------------------------------------------------" -------------------------------------------------------------------"
testouterr_cmd sh {display source-sh/5.1} OK $tserr_disp4 testouterr_cmd sh {display source-sh/5.1} OK $tserr_disp4
unsetenv_loaded_module unsetenv_loaded_module
unsetenv_var __MODULES_LMREFRESH
unsetenv_var __MODULES_LMSOURCESH unsetenv_var __MODULES_LMSOURCESH
unsetenv_path_var FOOPATHDUP unsetenv_path_var FOOPATHDUP
unsetenv_path_var FOOPATHEM unsetenv_path_var FOOPATHEM
unsetenv_path_var FOOPATHCB unsetenv_path_var FOOPATHCB
unsetenv_path_var FOOPATHWC unsetenv_path_var FOOPATHWC
unsetenv_path_var FOOPATHDUPMIX unsetenv_path_var FOOPATHDUPMIX
unsetenv_path_var FOOPATH unsetenv_path_var FOOPATH
unsetenv_path_var FOOPATHDUPEM unsetenv_path_var FOOPATHDUPEM
unsetenv_path_var FOOPATHDUPSP unsetenv_path_var FOOPATHDUPSP
unsetenv_var FOOPATHSP unsetenv_var FOOPATHSP
skipping to change at line 695 skipping to change at line 706
set ans [list] set ans [list]
lappend ans [list set _LMFILES_ $mp/source-sh/1] lappend ans [list set _LMFILES_ $mp/source-sh/1]
lappend ans [list set LOADEDMODULES source-sh/1] lappend ans [list set LOADEDMODULES source-sh/1]
lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|] lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|]
testouterr_cmd sh {load source-sh/1} $ans {} testouterr_cmd sh {load source-sh/1} $ans {}
set ans [list] set ans [list]
lappend ans [list set LOADEDMODULES source-sh/1:source-sh/2] lappend ans [list set LOADEDMODULES source-sh/1:source-sh/2]
lappend ans [list set _LMFILES_ $mp/source-sh/1:$mp/source-sh/2] lappend ans [list set _LMFILES_ $mp/source-sh/1:$mp/source-sh/2]
lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|:source-sh/2\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-pat h\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value ] lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|:source-sh/2\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-pat h\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value ]
lappend ans [list setpath FOOPATH /path/to/mini:] lappend ans [list setpath FOOPATH /path/to/mini:]
lappend ans [list set __MODULES_LMREFRESH source-sh/2]
lappend ans [list set FOOMINI value] lappend ans [list set FOOMINI value]
lappend ans [list alias almini echo\ mini] lappend ans [list alias almini echo\ mini]
testouterr_cmd_re sh {load source-sh/1 source-sh/2} $ans {} testouterr_cmd_re sh {load source-sh/1 source-sh/2} $ans {}
setenv_loaded_module [list source-sh/1 source-sh/2] [list $mp/source-sh/1 $mp/so urce-sh/2] setenv_loaded_module [list source-sh/1 source-sh/2] [list $mp/source-sh/1 $mp/so urce-sh/2]
setenv_var __MODULES_LMREFRESH source-sh/2
setenv_var __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/sh-to-mod.s h\|:source-sh/2\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value setenv_var __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/sh-to-mod.s h\|:source-sh/2\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value
set ans [list] set ans [list]
lappend ans [list set _LMFILES_ $mp/source-sh/2] lappend ans [list set _LMFILES_ $mp/source-sh/2]
lappend ans [list set LOADEDMODULES source-sh/2] lappend ans [list set LOADEDMODULES source-sh/2]
lappend ans [list set __MODULES_LMSOURCESH source-sh/2\&sh\ testsuite/example/mi ni-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value] lappend ans [list set __MODULES_LMSOURCESH source-sh/2\&sh\ testsuite/example/mi ni-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value]
testouterr_cmd sh {unload source-sh/1} $ans {} testouterr_cmd sh {unload source-sh/1} $ans {}
unsetenv_loaded_module unsetenv_loaded_module
unsetenv_var __MODULES_LMREFRESH
unsetenv_var __MODULES_LMSOURCESH unsetenv_var __MODULES_LMSOURCESH
unsetenv_var TESTSUITE_SHTOMOD_NOVAR unsetenv_var TESTSUITE_SHTOMOD_NOVAR
set ans [list] set ans [list]
lappend ans [list set __MODULES_SHARE_FOOPATH :1] lappend ans [list set __MODULES_SHARE_FOOPATH :1]
lappend ans [list set FOOMINI value] lappend ans [list set FOOMINI value]
lappend ans [list set LOADEDMODULES source-sh/5.0] lappend ans [list set LOADEDMODULES source-sh/5.0]
lappend ans [list set _LMFILES_ $mp/source-sh/5.0] lappend ans [list set _LMFILES_ $mp/source-sh/5.0]
lappend ans [list set __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/exampl e/sh-to-mod.sh\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\} \|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue\&sh\ testsuite/example/mini- sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\ }\|setenv\ FOOMINI\ value\&bash\ testsuite/example/sh-to-mod.sh\ arg1\|setenv\ F OOARG1\ arg1] lappend ans [list set __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/exampl e/sh-to-mod.sh\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\} \|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue\&sh\ testsuite/example/mini- sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\ }\|setenv\ FOOMINI\ value\&bash\ testsuite/example/sh-to-mod.sh\ arg1\|setenv\ F OOARG1\ arg1]
lappend ans [list set FOOEM {}] lappend ans [list set FOOEM {}]
lappend ans [list set FOOSP {value }] lappend ans [list set FOOSP {value }]
lappend ans [list set FOOARG1 arg1] lappend ans [list set FOOARG1 arg1]
lappend ans [list set FOOCB va\{ue] lappend ans [list set FOOCB va\{ue]
lappend ans [list set FOOPATH /path/to/mini:] lappend ans [list set FOOPATH /path/to/mini:]
lappend ans [list set FOO value] lappend ans [list set FOO value]
lappend ans [list set __MODULES_LMREFRESH source-sh/5.0]
lappend ans [list set FOOWC va\*ue] lappend ans [list set FOOWC va\*ue]
lappend ans [list alias almini echo\ mini] lappend ans [list alias almini echo\ mini]
testouterr_cmd sh {load source-sh/5.0} $ans {} testouterr_cmd sh {load source-sh/5.0} $ans {}
set ans [list] set ans [list]
lappend ans [list set __MODULES_SHARE_FOOPATH :1] lappend ans [list set __MODULES_SHARE_FOOPATH :1]
lappend ans [list set FOOMINI value] lappend ans [list set FOOMINI value]
lappend ans [list set LOADEDMODULES source-sh/5.1] lappend ans [list set LOADEDMODULES source-sh/5.1]
lappend ans [list set _LMFILES_ $mp/source-sh/5.1] lappend ans [list set _LMFILES_ $mp/source-sh/5.1]
lappend ans [list set __MODULES_LMSOURCESH source-sh/5.1\&bash\ testsuite/exampl e/sh-to-mod.sh\ arg1\ arg2\|setenv\ FOO\ value\|setenv\ FOOARG1\ arg1\|setenv\ F OOARG2\ arg2\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOOSP\ \{val ue\ \}\|setenv\ FOOWC\ va\*ue\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend- path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ va lue] lappend ans [list set __MODULES_LMSOURCESH source-sh/5.1\&bash\ testsuite/exampl e/sh-to-mod.sh\ arg1\ arg2\|setenv\ FOO\ value\|setenv\ FOOARG1\ arg1\|setenv\ F OOARG2\ arg2\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOOSP\ \{val ue\ \}\|setenv\ FOOWC\ va\*ue\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend- path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ va lue]
lappend ans [list set FOOEM {}] lappend ans [list set FOOEM {}]
lappend ans [list set FOOARG1 arg1] lappend ans [list set FOOARG1 arg1]
lappend ans [list set FOOSP {value }] lappend ans [list set FOOSP {value }]
lappend ans [list set FOOARG2 arg2] lappend ans [list set FOOARG2 arg2]
lappend ans [list set FOOCB va\{ue] lappend ans [list set FOOCB va\{ue]
lappend ans [list set FOOPATH /path/to/mini:] lappend ans [list set FOOPATH /path/to/mini:]
lappend ans [list set FOO value] lappend ans [list set FOO value]
lappend ans [list set __MODULES_LMREFRESH source-sh/5.1]
lappend ans [list set FOOWC va\*ue] lappend ans [list set FOOWC va\*ue]
lappend ans [list alias almini echo\ mini] lappend ans [list alias almini echo\ mini]
testouterr_cmd sh {load source-sh/5.1} $ans {} testouterr_cmd sh {load source-sh/5.1} $ans {}
# #
# variable definition relying on a variable defined in sourced script # variable definition relying on a variable defined in sourced script
# #
set tserr "------------------------------------------------------------------- set tserr "-------------------------------------------------------------------
$mp/source-sh/6.0: $mp/source-sh/6.0:
skipping to change at line 843 skipping to change at line 859
setenv_var FOOWC va\*ue setenv_var FOOWC va\*ue
setenv_var FOO value setenv_var FOO value
setenv_var FOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 } setenv_var FOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }
set ans [list] set ans [list]
lappend ans [list unset _LMFILES_] lappend ans [list unset _LMFILES_]
lappend ans [list unset LOADEDMODULES] lappend ans [list unset LOADEDMODULES]
testouterr_cmd sh {unload source-sh/1} $ans {} testouterr_cmd sh {unload source-sh/1} $ans {}
# partial __MODULES_LMSOURCESH # partial __MODULES_LMSOURCESH
setenv_var __MODULES_LMREFRESH source-sh/1
setenv_var __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/sh-to-mod.s h\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ /path/to/dir 3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to/dir3\|prep end-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{/path/to\ d ir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/dir1\ /path/t o/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \{/path/to/d ir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /path/to\}\ \{d ir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir 2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/ to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alsp\ \{\}\|se t-function\ funccb\ \{\}\|set-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\} \|set-function\ funcwc\ \{\}\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|seten v\ FOOEM\ \{\}\|setenv\ FOOPATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to /dir2\ /path/to/dir1\ /path/to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/pa th/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1 \ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOWC\ va\*ue setenv_var __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/sh-to-mod.s h\|chdir\ $mp\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ /path/to/dir 3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to/dir3\|prep end-path\ FOOPATHDUP\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \{/path/to\ d ir4\}\|prepend-path\ FOOPATHDUPEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/ dir3\|prepend-path\ FOOPATHDUPMIX\ \{\}\ /path/to/dir1\ \{/path/to/dir1\ /path/t o/dir2\ /path/to/dir1\}\ /path/to/dir3\|prepend-path\ FOOPATHDUPSP\ \{/path/to/d ir1\ /path/to/dir1\ /path/to/dir2\ /path/to/dir1\ /path/to/dir3\ /path/to\}\ \{d ir4\ /path/to/dir3\}\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir 2\ /path/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/ to/dir3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alsp\ \{\}\|se t-function\ funccb\ \{\}\|set-function\ funcnl\ \{\}\|set-function\ funcsp\ \{\} \|set-function\ funcwc\ \{\}\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|seten v\ FOOEM\ \{\}\|setenv\ FOOPATHDUPSPEM\ \{/path/to/dir1\ /path/to/dir1\ /path/to /dir2\ /path/to/dir1\ /path/to/dir3\ /path/to/dir3\ \}\|setenv\ FOOPATHSP\ \{/pa th/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1 \ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOWC\ va\*ue
set ans [list] set ans [list]
lappend ans [list unset __MODULES_SHARE_FOOPATHDUPMIX] lappend ans [list unset __MODULES_SHARE_FOOPATHDUPMIX]
lappend ans [list unset _LMFILES_] lappend ans [list unset _LMFILES_]
lappend ans [list unset LOADEDMODULES] lappend ans [list unset LOADEDMODULES]
lappend ans [list unset FOOPATHDUP] lappend ans [list unset FOOPATHDUP]
lappend ans [list unset __MODULES_LMSOURCESH] lappend ans [list unset __MODULES_LMSOURCESH]
lappend ans [list unset FOOPATHEM] lappend ans [list unset FOOPATHEM]
lappend ans [list unset FOOPATHSP] lappend ans [list unset FOOPATHSP]
lappend ans [list unset __MODULES_SHARE_FOOPATHDUPEM] lappend ans [list unset __MODULES_SHARE_FOOPATHDUPEM]
skipping to change at line 864 skipping to change at line 881
lappend ans [list unset FOOPATHCB] lappend ans [list unset FOOPATHCB]
lappend ans [list unset FOOPATHDUPSPEM] lappend ans [list unset FOOPATHDUPSPEM]
lappend ans [list unset FOOPATHDUPMIX] lappend ans [list unset FOOPATHDUPMIX]
lappend ans [list unset FOOCB] lappend ans [list unset FOOCB]
lappend ans [list unset FOOPATH] lappend ans [list unset FOOPATH]
lappend ans [list unset __MODULES_SHARE_FOOPATHEM] lappend ans [list unset __MODULES_SHARE_FOOPATHEM]
lappend ans [list unset FOOPATHWC] lappend ans [list unset FOOPATHWC]
lappend ans [list unset FOOPATHDUPEM] lappend ans [list unset FOOPATHDUPEM]
lappend ans [list unset FOO] lappend ans [list unset FOO]
lappend ans [list unset FOOPATHDUPSP] lappend ans [list unset FOOPATHDUPSP]
lappend ans [list unset __MODULES_LMREFRESH]
lappend ans [list unset FOOWC] lappend ans [list unset FOOWC]
lappend ans [list unset FOOPATHSPEM] lappend ans [list unset FOOPATHSPEM]
lappend ans [list unalias alsp] lappend ans [list unalias alsp]
lappend ans [list unalias alcb] lappend ans [list unalias alcb]
lappend ans [list unalias alem] lappend ans [list unalias alem]
lappend ans [list "unset -f funccb;"] lappend ans [list "unset -f funccb;"]
lappend ans [list "unset -f funcwc;"] lappend ans [list "unset -f funcwc;"]
lappend ans [list "unset -f funcnl;"] lappend ans [list "unset -f funcnl;"]
lappend ans [list "unset -f funcsp;"] lappend ans [list "unset -f funcsp;"]
testouterr_cmd sh {unload source-sh/1} $ans {} testouterr_cmd sh {unload source-sh/1} $ans {}
unsetenv_var __MODULES_LMREFRESH
unsetenv_var __MODULES_LMSOURCESH unsetenv_var __MODULES_LMSOURCESH
unsetenv_path_var FOOPATHDUP unsetenv_path_var FOOPATHDUP
unsetenv_path_var FOOPATHEM unsetenv_path_var FOOPATHEM
unsetenv_path_var FOOPATHCB unsetenv_path_var FOOPATHCB
unsetenv_path_var FOOPATHWC unsetenv_path_var FOOPATHWC
unsetenv_path_var FOOPATHDUPMIX unsetenv_path_var FOOPATHDUPMIX
unsetenv_path_var FOOPATHDUPEM unsetenv_path_var FOOPATHDUPEM
unsetenv_path_var FOOPATHDUPSP unsetenv_path_var FOOPATHDUPSP
unsetenv_var FOOPATHSP unsetenv_var FOOPATHSP
unsetenv_var FOOPATHDUPSPEM unsetenv_var FOOPATHDUPSPEM
unsetenv_var FOOPATHSPEM unsetenv_var FOOPATHSPEM
# a LMSOURCESH entry with shtomodargs but no modcontent # a LMSOURCESH entry with shtomodargs but no modcontent
setenv_loaded_module [list source-sh/5.0] [list $mp/source-sh/5.0] setenv_loaded_module [list source-sh/5.0] [list $mp/source-sh/5.0]
setenv_var __MODULES_LMREFRESH source-sh/5.0
setenv_var FOOMINI value setenv_var FOOMINI value
setenv_var FOOARG1 arg1 setenv_var FOOARG1 arg1
setenv_path_var FOOPATH /path/to/mini {} setenv_path_var FOOPATH /path/to/mini {}
setenv_var __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/example/sh-to-mod .sh\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mi ni\ \{\}\|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value\&bash\ testsuite/examp le/sh-to-mod.sh\ arg1\|setenv\ FOOARG1\ arg1 setenv_var __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/example/sh-to-mod .sh\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mi ni\ \{\}\|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value\&bash\ testsuite/examp le/sh-to-mod.sh\ arg1\|setenv\ FOOARG1\ arg1
set ans [list] set ans [list]
# re-serialized entry of __MODULES_LMSOURCESH is not equal to the one recorded i n environment, so variable is not unset # re-serialized entry of __MODULES_LMSOURCESH is not equal to the one recorded i n environment, so variable is not unset
lappend ans [list unset FOOMINI] lappend ans [list unset FOOMINI]
lappend ans [list unset __MODULES_SHARE_FOOPATH] lappend ans [list unset __MODULES_SHARE_FOOPATH]
lappend ans [list unset FOOPATH] lappend ans [list unset FOOPATH]
lappend ans [list unset _LMFILES_] lappend ans [list unset _LMFILES_]
lappend ans [list unset LOADEDMODULES] lappend ans [list unset LOADEDMODULES]
lappend ans [list unset __MODULES_LMREFRESH]
lappend ans [list set __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/exampl e/sh-to-mod.sh\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value\&bash\ test suite/example/sh-to-mod.sh\ arg1\|setenv\ FOOARG1\ arg1] lappend ans [list set __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/exampl e/sh-to-mod.sh\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\}\|setenv\ FOOMINI\ value\&bash\ test suite/example/sh-to-mod.sh\ arg1\|setenv\ FOOARG1\ arg1]
lappend ans [list unset FOOARG1] lappend ans [list unset FOOARG1]
lappend ans [list unalias almini] lappend ans [list unalias almini]
testouterr_cmd sh {unload source-sh/5.0} $ans {} testouterr_cmd sh {unload source-sh/5.0} $ans {}
setenv_var __MODULES_LMSOURCESH source-sh/5.0\&sh\ testsuite/example/mini-sh-to- mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\}\|set env\ FOOMINI\ value\&bash\ testsuite/example/sh-to-mod.sh\ arg1\|setenv\ FOOARG1 \ arg1 setenv_var __MODULES_LMSOURCESH source-sh/5.0\&sh\ testsuite/example/mini-sh-to- mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\ \{\}\|set env\ FOOMINI\ value\&bash\ testsuite/example/sh-to-mod.sh\ arg1\|setenv\ FOOARG1 \ arg1
set ans [list] set ans [list]
lappend ans [list unset FOOMINI] lappend ans [list unset FOOMINI]
lappend ans [list unset __MODULES_SHARE_FOOPATH] lappend ans [list unset __MODULES_SHARE_FOOPATH]
lappend ans [list unset FOOPATH] lappend ans [list unset FOOPATH]
lappend ans [list unset _LMFILES_] lappend ans [list unset _LMFILES_]
lappend ans [list unset LOADEDMODULES] lappend ans [list unset LOADEDMODULES]
lappend ans [list unset __MODULES_LMREFRESH]
lappend ans [list unset __MODULES_LMSOURCESH] lappend ans [list unset __MODULES_LMSOURCESH]
lappend ans [list unset FOOARG1] lappend ans [list unset FOOARG1]
lappend ans [list unalias almini] lappend ans [list unalias almini]
testouterr_cmd sh {unload source-sh/5.0} $ans {} testouterr_cmd sh {unload source-sh/5.0} $ans {}
# bad modulefile command call in __MODULES_LMSOURCESH (missing alias body arg) # bad modulefile command call in __MODULES_LMSOURCESH (missing alias body arg)
setenv_var __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/example/sh-to-mod .sh\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mi ni\ \{\}\|set-alias\ almini\|setenv\ FOOMINI\ value\&bash\ testsuite/example/sh- to-mod.sh\ arg1\|setenv\ FOOARG1\ arg1 setenv_var __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/example/sh-to-mod .sh\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mi ni\ \{\}\|set-alias\ almini\|setenv\ FOOMINI\ value\&bash\ testsuite/example/sh- to-mod.sh\ arg1\|setenv\ FOOARG1\ arg1
set ans [list] set ans [list]
# value set-alias and set-function is rewritten when parsed # value set-alias and set-function is rewritten when parsed
lappend ans [list unset FOOMINI] lappend ans [list unset FOOMINI]
lappend ans [list unset __MODULES_SHARE_FOOPATH] lappend ans [list unset __MODULES_SHARE_FOOPATH]
lappend ans [list unset FOOPATH] lappend ans [list unset FOOPATH]
lappend ans [list unset _LMFILES_] lappend ans [list unset _LMFILES_]
lappend ans [list unset LOADEDMODULES] lappend ans [list unset LOADEDMODULES]
lappend ans [list unset __MODULES_LMREFRESH]
lappend ans [list set __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/exampl e/sh-to-mod.sh\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\|setenv\ FOOMINI\ value\&bash\ testsuite/ example/sh-to-mod.sh\ arg1\|setenv\ FOOARG1\ arg1] lappend ans [list set __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/exampl e/sh-to-mod.sh\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mini\ \{\}\|set-alias\ almini\|setenv\ FOOMINI\ value\&bash\ testsuite/ example/sh-to-mod.sh\ arg1\|setenv\ FOOARG1\ arg1]
lappend ans [list unset FOOARG1] lappend ans [list unset FOOARG1]
lappend ans [list unalias almini] lappend ans [list unalias almini]
testouterr_cmd sh {unload source-sh/5.0} $ans {} testouterr_cmd sh {unload source-sh/5.0} $ans {}
# bad modulefile command call in __MODULES_LMSOURCESH (missing alias name and bo dy args) # bad modulefile command call in __MODULES_LMSOURCESH (missing alias name and bo dy args)
setenv_var __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/example/sh-to-mod .sh\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mi ni\ \{\}\|set-alias\|setenv\ FOOMINI\ value\&bash\ testsuite/example/sh-to-mod.s h\ arg1\|setenv\ FOOARG1\ arg1 setenv_var __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/example/sh-to-mod .sh\&sh\ testsuite/example/mini-sh-to-mod.sh\|prepend-path\ FOOPATH\ /path/to/mi ni\ \{\}\|set-alias\|setenv\ FOOMINI\ value\&bash\ testsuite/example/sh-to-mod.s h\ arg1\|setenv\ FOOARG1\ arg1
set tserr "$moderr_msgs: wrong # args: should be \"set-alias alias what\" set tserr "$moderr_msgs: wrong # args: should be \"set-alias alias what\"
invoked from within invoked from within
\"set-alias {}\" \"set-alias {}\"
skipping to change at line 1003 skipping to change at line 1026
# clear source-sh details recorded in env yet module is still loaded # clear source-sh details recorded in env yet module is still loaded
unsetenv_var __MODULES_LMSOURCESH unsetenv_var __MODULES_LMSOURCESH
set tserr_disp3 "--------------------------------------------------------------- ---- set tserr_disp3 "--------------------------------------------------------------- ----
$mp/source-sh/5.0: $mp/source-sh/5.0:
-------------------------------------------------------------------" -------------------------------------------------------------------"
testouterr_cmd sh {display source-sh/5.0} OK $tserr_disp3 testouterr_cmd sh {display source-sh/5.0} OK $tserr_disp3
unsetenv_loaded_module unsetenv_loaded_module
unsetenv_var __MODULES_LMREFRESH
unsetenv_path_var FOOPATH unsetenv_path_var FOOPATH
unsetenv_var FOOEM unsetenv_var FOOEM
unsetenv_var FOOSP unsetenv_var FOOSP
unsetenv_var FOO unsetenv_var FOO
unsetenv_var FOOMINI unsetenv_var FOOMINI
unsetenv_var FOOARG1 unsetenv_var FOOARG1
unsetenv_var FOOCB unsetenv_var FOOCB
unsetenv_var FOOWC unsetenv_var FOOWC
# #
skipping to change at line 1031 skipping to change at line 1055
lappend ans [list set _LMFILES_ $mp/source-sh/5.0] lappend ans [list set _LMFILES_ $mp/source-sh/5.0]
lappend ans [list set LOADEDMODULES source-sh/5.0] lappend ans [list set LOADEDMODULES source-sh/5.0]
lappend ans [list set __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/exampl e/sh-to-mod.sh\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\} \|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue\&sh\ testsuite/example/mini- sh-to-mod.sh\|prepend-path\ FOOESC\ \{\}\|prepend-path\ FOOPATH\ /path/\\\{\<Env ModEscS2\>\ /path/to/mini\ \{\}\ /path/\\\}\<EnvModEscS1\>\|set-alias\ almini\ \ {\}\|setenv\ FOOMINI\ value\&bash\ testsuite/example/sh-to-mod.sh\ arg1\|setenv\ FOOARG1\ arg1] lappend ans [list set __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/exampl e/sh-to-mod.sh\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\} \|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue\&sh\ testsuite/example/mini- sh-to-mod.sh\|prepend-path\ FOOESC\ \{\}\|prepend-path\ FOOPATH\ /path/\\\{\<Env ModEscS2\>\ /path/to/mini\ \{\}\ /path/\\\}\<EnvModEscS1\>\|set-alias\ almini\ \ {\}\|setenv\ FOOMINI\ value\&bash\ testsuite/example/sh-to-mod.sh\ arg1\|setenv\ FOOARG1\ arg1]
lappend ans [list set FOOEM {}] lappend ans [list set FOOEM {}]
lappend ans [list set FOOSP {value }] lappend ans [list set FOOSP {value }]
lappend ans [list set __MODULES_SHARE_FOOESC :1] lappend ans [list set __MODULES_SHARE_FOOESC :1]
lappend ans [list set FOOARG1 arg1] lappend ans [list set FOOARG1 arg1]
lappend ans [list set FOOCB va\{ue] lappend ans [list set FOOCB va\{ue]
lappend ans [list set FOOPATH /path/\{\|:/path/to/mini::/path/\}\&] lappend ans [list set FOOPATH /path/\{\|:/path/to/mini::/path/\}\&]
lappend ans [list set FOO value] lappend ans [list set FOO value]
lappend ans [list set __MODULES_LMREFRESH source-sh/5.0]
lappend ans [list set FOOWC va\*ue] lappend ans [list set FOOWC va\*ue]
lappend ans [list set FOOESC {}] lappend ans [list set FOOESC {}]
lappend ans [list alias almini echo\ mini] lappend ans [list alias almini echo\ mini]
testouterr_cmd sh {load source-sh/5.0} $ans {} testouterr_cmd sh {load source-sh/5.0} $ans {}
setenv_loaded_module [list source-sh/5.0] [list $mp/source-sh/5.0] setenv_loaded_module [list source-sh/5.0] [list $mp/source-sh/5.0]
setenv_var __MODULES_LMREFRESH source-sh/5.0
setenv_var FOOMINI value setenv_var FOOMINI value
setenv_var FOOEM {} setenv_var FOOEM {}
setenv_var FOOSP {value } setenv_var FOOSP {value }
setenv_var FOOARG1 arg1 setenv_var FOOARG1 arg1
setenv_var FOOCB va\{ue setenv_var FOOCB va\{ue
setenv_var FOOWC va\*ue setenv_var FOOWC va\*ue
setenv_path_var FOOPATH /path/\{\| /path/to/mini {} /path/\}\& setenv_path_var FOOPATH /path/\{\| /path/to/mini {} /path/\}\&
setenv_var FOO value setenv_var FOO value
setenv_var __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/example/sh-to-mod .sh\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ F OOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue\&sh\ testsuite/example/mini-sh-to-mod.s h\|prepend-path\ FOOESC\ \{\}\|prepend-path\ FOOPATH\ /path/\\\{\<EnvModEscS2\>\ /path/to/mini\ \{\}\ /path/\\\}\<EnvModEscS1\>\|set-alias\ almini\ \{\}\|setenv \ FOOMINI\ value\&bash\ testsuite/example/sh-to-mod.sh\ arg1\|setenv\ FOOARG1\ a rg1 setenv_var __MODULES_LMSOURCESH source-sh/5.0\&bash\ testsuite/example/sh-to-mod .sh\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ F OOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue\&sh\ testsuite/example/mini-sh-to-mod.s h\|prepend-path\ FOOESC\ \{\}\|prepend-path\ FOOPATH\ /path/\\\{\<EnvModEscS2\>\ /path/to/mini\ \{\}\ /path/\\\}\<EnvModEscS1\>\|set-alias\ almini\ \{\}\|setenv \ FOOMINI\ value\&bash\ testsuite/example/sh-to-mod.sh\ arg1\|setenv\ FOOARG1\ a rg1
setenv_path_var FOOESC {} setenv_path_var FOOESC {}
skipping to change at line 1060 skipping to change at line 1086
lappend ans [list unset _LMFILES_] lappend ans [list unset _LMFILES_]
lappend ans [list unset LOADEDMODULES] lappend ans [list unset LOADEDMODULES]
lappend ans [list unset __MODULES_LMSOURCESH] lappend ans [list unset __MODULES_LMSOURCESH]
lappend ans [list unset FOOEM] lappend ans [list unset FOOEM]
lappend ans [list unset FOOSP] lappend ans [list unset FOOSP]
lappend ans [list unset __MODULES_SHARE_FOOESC] lappend ans [list unset __MODULES_SHARE_FOOESC]
lappend ans [list unset FOOARG1] lappend ans [list unset FOOARG1]
lappend ans [list unset FOOCB] lappend ans [list unset FOOCB]
lappend ans [list unset FOOPATH] lappend ans [list unset FOOPATH]
lappend ans [list unset FOO] lappend ans [list unset FOO]
lappend ans [list unset __MODULES_LMREFRESH]
lappend ans [list unset FOOWC] lappend ans [list unset FOOWC]
lappend ans [list unset FOOESC] lappend ans [list unset FOOESC]
lappend ans [list unalias almini] lappend ans [list unalias almini]
testouterr_cmd sh {unload source-sh/5.0} $ans {} testouterr_cmd sh {unload source-sh/5.0} $ans {}
unsetenv_loaded_module unsetenv_loaded_module
unsetenv_var FOOMINI unsetenv_var FOOMINI
unsetenv_var FOOEM unsetenv_var FOOEM
unsetenv_var FOOSP unsetenv_var FOOSP
unsetenv_var FOOARG1 unsetenv_var FOOARG1
unsetenv_var FOOCB unsetenv_var FOOCB
unsetenv_var FOOWC unsetenv_var FOOWC
unsetenv_path_var FOOPATH unsetenv_path_var FOOPATH
unsetenv_var FOO unsetenv_var FOO
unsetenv_var __MODULES_LMREFRESH
unsetenv_var __MODULES_LMSOURCESH unsetenv_var __MODULES_LMSOURCESH
unsetenv_path_var FOOESC unsetenv_path_var FOOESC
# complete tests # complete tests
unsetenv_var TESTSUITE_SHTOMOD_NOCOMP unsetenv_var TESTSUITE_SHTOMOD_NOCOMP
unsetenv_var TESTSUITE_SHTOMOD_NOVAR unsetenv_var TESTSUITE_SHTOMOD_NOVAR
unsetenv_var TESTSUITE_SHTOMOD_NOPATH unsetenv_var TESTSUITE_SHTOMOD_NOPATH
unsetenv_var TESTSUITE_SHTOMOD_NOALIAS unsetenv_var TESTSUITE_SHTOMOD_NOALIAS
unsetenv_var TESTSUITE_SHTOMOD_NOFUNC unsetenv_var TESTSUITE_SHTOMOD_NOFUNC
skipping to change at line 1102 skipping to change at line 1130
lappend ans [list set FOOPATHEM :/path/to/dir1:/path/to/dir2:/path/to/dir3] lappend ans [list set FOOPATHEM :/path/to/dir1:/path/to/dir2:/path/to/dir3]
lappend ans [list set FOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3}] lappend ans [list set FOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3}]
lappend ans [list set FOOPATHCB /path/to/dir1:/path/to/d\{r2:/path/to/dir3] lappend ans [list set FOOPATHCB /path/to/dir1:/path/to/d\{r2:/path/to/dir3]
lappend ans [list set FOOEM {}] lappend ans [list set FOOEM {}]
lappend ans [list set FOOSP {value }] lappend ans [list set FOOSP {value }]
lappend ans [list set FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3] lappend ans [list set FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3]
lappend ans [list set FOOCB va\{ue] lappend ans [list set FOOCB va\{ue]
lappend ans [list set __MODULES_SHARE_FOOPATHEM :1] lappend ans [list set __MODULES_SHARE_FOOPATHEM :1]
lappend ans [list set FOOPATHWC /path/to/dir1:/path/to/d\*r2:/path/to/dir3] lappend ans [list set FOOPATHWC /path/to/dir1:/path/to/d\*r2:/path/to/dir3]
lappend ans [list set FOO value] lappend ans [list set FOO value]
lappend ans [list set __MODULES_LMREFRESH source-sh/7.0]
lappend ans [list set FOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }] lappend ans [list set FOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }]
lappend ans [list set FOOWC va\*ue] lappend ans [list set FOOWC va\*ue]
lappend ans [list alias alsp {echo f\"o; echo b\\\"r; echo f\'o}] lappend ans [list alias alsp {echo f\"o; echo b\\\"r; echo f\'o}]
lappend ans [list alias alfoo {echo `grep "report .Modules " ../../modulecmd.tcl | tr -d \\ | awk '{print $3}'`}] lappend ans [list alias alfoo {echo `grep "report .Modules " ../../modulecmd.tcl | tr -d \\ | awk '{print $3}'`}]
lappend ans [list alias alcb echo\ f\\\{o] lappend ans [list alias alcb echo\ f\\\{o]
lappend ans [list alias alem {}] lappend ans [list alias alem {}]
lappend ans [list out {complete cmd 'n/-h/n/' 'n/--help/n/' 'n/-V/n/' 'n/--versi on/n/' 'p/1/(-h -V --help --version)/';}] lappend ans [list out {complete cmd 'n/-h/n/' 'n/--help/n/' 'n/-V/n/' 'n/--versi on/n/' 'p/1/(-h -V --help --version)/';}]
lappend ans [list out {complete othercmd 'n/--help/n/';}] lappend ans [list out {complete othercmd 'n/--help/n/';}]
lappend ans [list out {complete mycmd 'n/help/`_module_avail`/' 'n/add/`_module_ not_yet_loaded; echo "--auto --no-auto --force -f --icase -i --tag --tag="`/';}] lappend ans [list out {complete mycmd 'n/help/`_module_avail`/' 'n/add/`_module_ not_yet_loaded; echo "--auto --no-auto --force -f --icase -i --tag --tag="`/';}]
lappend ans [list chdir $mp] lappend ans [list chdir $mp]
skipping to change at line 1142 skipping to change at line 1171
setenv\t\tFOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3} setenv\t\tFOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3}
setenv\t\tFOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 } setenv\t\tFOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }
setenv\t\tFOOSP {value } setenv\t\tFOOSP {value }
setenv\t\tFOOWC va*ue setenv\t\tFOOWC va*ue
module-whatis\tsource-sh/7.0 module-whatis\tsource-sh/7.0
-------------------------------------------------------------------" -------------------------------------------------------------------"
testouterr_cmd sh {display source-sh/7.0} OK $tserr_disp70 testouterr_cmd sh {display source-sh/7.0} OK $tserr_disp70
testouterr_cmd tcsh {display source-sh/7.0} OK $tserr_disp70 testouterr_cmd tcsh {display source-sh/7.0} OK $tserr_disp70
setenv_loaded_module [list source-sh/7.0] [list $mp/source-sh/7.0] setenv_loaded_module [list source-sh/7.0] [list $mp/source-sh/7.0]
setenv_var __MODULES_LMREFRESH source-sh/7.0
setenv_var __MODULES_LMSOURCESH source-sh/7.0\&tcsh\ testsuite/example/sh-to-mod .csh\|chdir\ $mp\|complete\ tcsh\ cmd\ \{\}\|complete\ tcsh\ mycmd\ \{\}\|comple te\ tcsh\ othercmd\ \{\}\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ / path/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to /dir3\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/dir 3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/to/dir3\|set-al ias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|set-alias\ alsp\ \{\}\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM \ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\ |setenv\ FOOWC\ va\*ue setenv_var __MODULES_LMSOURCESH source-sh/7.0\&tcsh\ testsuite/example/sh-to-mod .csh\|chdir\ $mp\|complete\ tcsh\ cmd\ \{\}\|complete\ tcsh\ mycmd\ \{\}\|comple te\ tcsh\ othercmd\ \{\}\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ / path/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to /dir3\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/dir 3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/to/dir3\|set-al ias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|set-alias\ alsp\ \{\}\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM \ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\ |setenv\ FOOWC\ va\*ue
set ans [list] set ans [list]
lappend ans [list unset _LMFILES_] lappend ans [list unset _LMFILES_]
lappend ans [list unset LOADEDMODULES] lappend ans [list unset LOADEDMODULES]
lappend ans [list unset __MODULES_LMSOURCESH] lappend ans [list unset __MODULES_LMSOURCESH]
lappend ans [list unset FOOPATHEM] lappend ans [list unset FOOPATHEM]
lappend ans [list unset FOOPATHSP] lappend ans [list unset FOOPATHSP]
lappend ans [list unset FOOPATHCB] lappend ans [list unset FOOPATHCB]
lappend ans [list unset FOOEM] lappend ans [list unset FOOEM]
lappend ans [list unset FOOSP] lappend ans [list unset FOOSP]
lappend ans [list unset FOOPATH] lappend ans [list unset FOOPATH]
lappend ans [list unset FOOCB] lappend ans [list unset FOOCB]
lappend ans [list unset FOOPATHWC] lappend ans [list unset FOOPATHWC]
lappend ans [list unset FOO] lappend ans [list unset FOO]
lappend ans [list unset __MODULES_LMREFRESH]
lappend ans [list unset FOOPATHSPEM] lappend ans [list unset FOOPATHSPEM]
lappend ans [list unset FOOWC] lappend ans [list unset FOOWC]
lappend ans [list unalias alsp] lappend ans [list unalias alsp]
lappend ans [list unalias alfoo] lappend ans [list unalias alfoo]
lappend ans [list unalias alcb] lappend ans [list unalias alcb]
lappend ans [list unalias alem] lappend ans [list unalias alem]
lappend ans [list out {uncomplete cmd;}] lappend ans [list out {uncomplete cmd;}]
lappend ans [list out {uncomplete othercmd;}] lappend ans [list out {uncomplete othercmd;}]
lappend ans [list out {uncomplete mycmd;}] lappend ans [list out {uncomplete mycmd;}]
testouterr_cmd tcsh {unload source-sh/7.0} $ans {} testouterr_cmd tcsh {unload source-sh/7.0} $ans {}
skipping to change at line 1180 skipping to change at line 1211
lappend ans [list alias alcb echo\ f\\\{o] lappend ans [list alias alcb echo\ f\\\{o]
lappend ans [list alias alem {}] lappend ans [list alias alem {}]
lappend ans [list out {complete cmd 'n/-h/n/' 'n/--help/n/' 'n/-V/n/' 'n/--versi on/n/' 'p/1/(-h -V --help --version)/';}] lappend ans [list out {complete cmd 'n/-h/n/' 'n/--help/n/' 'n/-V/n/' 'n/--versi on/n/' 'p/1/(-h -V --help --version)/';}]
lappend ans [list out {complete othercmd 'n/--help/n/';}] lappend ans [list out {complete othercmd 'n/--help/n/';}]
lappend ans [list out {complete mycmd 'n/help/`_module_avail`/' 'n/add/`_module_ not_yet_loaded; echo "--auto --no-auto --force -f --icase -i --tag --tag="`/';}] lappend ans [list out {complete mycmd 'n/help/`_module_avail`/' 'n/add/`_module_ not_yet_loaded; echo "--auto --no-auto --force -f --icase -i --tag --tag="`/';}]
testouterr_cmd tcsh {refresh} $ans {} testouterr_cmd tcsh {refresh} $ans {}
testouterr_cmd tcsh {display source-sh/7.0} OK $tserr_disp70 testouterr_cmd tcsh {display source-sh/7.0} OK $tserr_disp70
unsetenv_loaded_module unsetenv_loaded_module
unsetenv_var __MODULES_LMREFRESH
unsetenv_var __MODULES_LMSOURCESH unsetenv_var __MODULES_LMSOURCESH
} }
# bash # bash
set ans [list] set ans [list]
lappend ans [list set _LMFILES_ $mp/source-sh/7.1] lappend ans [list set _LMFILES_ $mp/source-sh/7.1]
lappend ans [list set LOADEDMODULES source-sh/7.1] lappend ans [list set LOADEDMODULES source-sh/7.1]
lappend ans [list set __MODULES_LMSOURCESH source-sh/7.1\&bash\ testsuite/exampl e/sh-to-mod.sh\|chdir\ $mp\|complete\ bash\ cmd\ \{\}\|complete\ bash\ mycmd\ \{ \}\|complete\ bash\ othercmd\ \{\}\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/ to/dir2\ /path/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2 \ /path/to/dir3\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /p ath/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/to/di r3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|set-al ias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|set-fu nction\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|se tenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOOPATHS P\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path /to/dir1\ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue] lappend ans [list set __MODULES_LMSOURCESH source-sh/7.1\&bash\ testsuite/exampl e/sh-to-mod.sh\|chdir\ $mp\|complete\ bash\ cmd\ \{\}\|complete\ bash\ mycmd\ \{ \}\|complete\ bash\ othercmd\ \{\}\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/ to/dir2\ /path/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2 \ /path/to/dir3\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /p ath/to/dir3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/to/di r3\|set-alias\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|set-al ias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|set-fu nction\ funcnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|se tenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOOPATHS P\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path /to/dir1\ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\*ue]
lappend ans [list set FOOPATHEM :/path/to/dir1:/path/to/dir2:/path/to/dir3] lappend ans [list set FOOPATHEM :/path/to/dir1:/path/to/dir2:/path/to/dir3]
lappend ans [list set FOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3}] lappend ans [list set FOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3}]
lappend ans [list set FOOPATHCB /path/to/dir1:/path/to/d\{r2:/path/to/dir3] lappend ans [list set FOOPATHCB /path/to/dir1:/path/to/d\{r2:/path/to/dir3]
lappend ans [list set FOOEM {}] lappend ans [list set FOOEM {}]
lappend ans [list set FOOSP {value }] lappend ans [list set FOOSP {value }]
lappend ans [list set FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3] lappend ans [list set FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3]
lappend ans [list set FOOCB va\{ue] lappend ans [list set FOOCB va\{ue]
lappend ans [list set __MODULES_SHARE_FOOPATHEM :1] lappend ans [list set __MODULES_SHARE_FOOPATHEM :1]
lappend ans [list set FOOPATHWC /path/to/dir1:/path/to/d\*r2:/path/to/dir3] lappend ans [list set FOOPATHWC /path/to/dir1:/path/to/d\*r2:/path/to/dir3]
lappend ans [list set FOO value] lappend ans [list set FOO value]
lappend ans [list set __MODULES_LMREFRESH source-sh/7.1]
lappend ans [list set FOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }] lappend ans [list set FOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }]
lappend ans [list set FOOWC va\*ue] lappend ans [list set FOOWC va\*ue]
lappend ans [list alias alsp {echo f\"o; echo b\\\"r; echo f\'o}] lappend ans [list alias alsp {echo f\"o; echo b\\\"r; echo f\'o}]
lappend ans [list alias alfoo {echo $(grep "report .Modules " ../../modulecmd.tc l | tr -d \\ 2>/dev/null | awk '{print $3}')}] lappend ans [list alias alfoo {echo $(grep "report .Modules " ../../modulecmd.tc l | tr -d \\ 2>/dev/null | awk '{print $3}')}]
lappend ans [list alias alcb echo\ f\{o] lappend ans [list alias alcb echo\ f\{o]
lappend ans [list alias alem {}] lappend ans [list alias alem {}]
lappend ans [list funcfoo "() { echo foo; }; export -f funcfoo;"] lappend ans [list funcfoo "() { echo foo; }; export -f funcfoo;"]
lappend ans [list funccb "() { echo f\{o; }; export -f funccb;"] lappend ans [list funccb "() { echo f\{o; }; export -f funccb;"]
lappend ans [list funcwc "() { echo sou*sh; }; export -f funcwc;"] lappend ans [list funcwc "() { echo sou*sh; }; export -f funcwc;"]
lappend ans [list funcnl "() { echo foo; lappend ans [list funcnl "() { echo foo;
skipping to change at line 1259 skipping to change at line 1292
setenv\t\tFOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3} setenv\t\tFOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3}
setenv\t\tFOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 } setenv\t\tFOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }
setenv\t\tFOOSP {value } setenv\t\tFOOSP {value }
setenv\t\tFOOWC va*ue setenv\t\tFOOWC va*ue
module-whatis\tsource-sh/7.1 module-whatis\tsource-sh/7.1
-------------------------------------------------------------------" -------------------------------------------------------------------"
testouterr_cmd sh {display source-sh/7.1} OK $tserr_disp71 testouterr_cmd sh {display source-sh/7.1} OK $tserr_disp71
testouterr_cmd bash {display source-sh/7.1} OK $tserr_disp71 testouterr_cmd bash {display source-sh/7.1} OK $tserr_disp71
setenv_loaded_module [list source-sh/7.1] [list $mp/source-sh/7.1] setenv_loaded_module [list source-sh/7.1] [list $mp/source-sh/7.1]
setenv_var __MODULES_LMREFRESH source-sh/7.1
setenv_var __MODULES_LMSOURCESH source-sh/7.1\&bash\ testsuite/example/sh-to-mod .sh\|chdir\ $mp\|complete\ bash\ cmd\ \{\}\|complete\ bash\ mycmd\ \{\}\|complet e\ bash\ othercmd\ \{\}\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ /p ath/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to/ dir3\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3 \|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/to/dir3\|set-ali as\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|set-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|set-function\ fun cnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOOPATHSP\ \{/path/ to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ / path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\* ue setenv_var __MODULES_LMSOURCESH source-sh/7.1\&bash\ testsuite/example/sh-to-mod .sh\|chdir\ $mp\|complete\ bash\ cmd\ \{\}\|complete\ bash\ mycmd\ \{\}\|complet e\ bash\ othercmd\ \{\}\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ /p ath/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/to/ dir3\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3 \|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/to/dir3\|set-ali as\ alcb\ \{\}\|set-alias\ alem\ \{\}\|set-alias\ alfoo\ \{\}\|set-alias\ alsp\ \{\}\|set-function\ funccb\ \{\}\|set-function\ funcfoo\ \{\}\|set-function\ fun cnl\ \{\}\|set-function\ funcsp\ \{\}\|set-function\ funcwc\ \{\}\|setenv\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOOPATHSP\ \{/path/ to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to/dir1\ / path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOOWC\ va\* ue
set ans [list] set ans [list]
lappend ans [list unset _LMFILES_] lappend ans [list unset _LMFILES_]
lappend ans [list unset LOADEDMODULES] lappend ans [list unset LOADEDMODULES]
lappend ans [list unset __MODULES_LMSOURCESH] lappend ans [list unset __MODULES_LMSOURCESH]
lappend ans [list unset FOOPATHEM] lappend ans [list unset FOOPATHEM]
lappend ans [list unset FOOPATHSP] lappend ans [list unset FOOPATHSP]
lappend ans [list unset FOOPATHCB] lappend ans [list unset FOOPATHCB]
lappend ans [list unset FOOEM] lappend ans [list unset FOOEM]
lappend ans [list unset FOOSP] lappend ans [list unset FOOSP]
lappend ans [list unset FOOPATH] lappend ans [list unset FOOPATH]
lappend ans [list unset FOOCB] lappend ans [list unset FOOCB]
lappend ans [list unset FOOPATHWC] lappend ans [list unset FOOPATHWC]
lappend ans [list unset FOO] lappend ans [list unset FOO]
lappend ans [list unset __MODULES_LMREFRESH]
lappend ans [list unset FOOPATHSPEM] lappend ans [list unset FOOPATHSPEM]
lappend ans [list unset FOOWC] lappend ans [list unset FOOWC]
lappend ans [list unalias alsp] lappend ans [list unalias alsp]
lappend ans [list unalias alfoo] lappend ans [list unalias alfoo]
lappend ans [list unalias alcb] lappend ans [list unalias alcb]
lappend ans [list unalias alem] lappend ans [list unalias alem]
lappend ans [list out {unset -f funcfoo;}] lappend ans [list out {unset -f funcfoo;}]
lappend ans [list out {unset -f funccb;}] lappend ans [list out {unset -f funccb;}]
lappend ans [list out {unset -f funcwc;}] lappend ans [list out {unset -f funcwc;}]
lappend ans [list out {unset -f funcnl;}] lappend ans [list out {unset -f funcnl;}]
skipping to change at line 1310 skipping to change at line 1345
echo b\\\\\\\"r; echo b\\\\\\\"r;
echo f\\'o; }; export -f funcsp;"] echo f\\'o; }; export -f funcsp;"]
lappend ans [list out {complete -o default -F _cmd cmd;}] lappend ans [list out {complete -o default -F _cmd cmd;}]
lappend ans [list out {complete -u othercmd;}] lappend ans [list out {complete -u othercmd;}]
lappend ans [list out {complete -j -P '"%' -S '"' mycmd;}] lappend ans [list out {complete -j -P '"%' -S '"' mycmd;}]
testouterr_cmd bash {refresh} $ans {} testouterr_cmd bash {refresh} $ans {}
testouterr_cmd bash {display source-sh/7.1} OK $tserr_disp71 testouterr_cmd bash {display source-sh/7.1} OK $tserr_disp71
unsetenv_loaded_module unsetenv_loaded_module
unsetenv_var __MODULES_LMREFRESH
unsetenv_var __MODULES_LMSOURCESH unsetenv_var __MODULES_LMSOURCESH
setenv_var TESTSUITE_SHTOMOD_NOALIAS 1 setenv_var TESTSUITE_SHTOMOD_NOALIAS 1
setenv_var TESTSUITE_SHTOMOD_NOFUNC 1 setenv_var TESTSUITE_SHTOMOD_NOFUNC 1
# fish # fish
if {[find_bin fish] ne {}} { if {[find_bin fish] ne {}} {
set ans [list] set ans [list]
lappend ans [list set _LMFILES_ $mp/source-sh/7.2] lappend ans [list set _LMFILES_ $mp/source-sh/7.2]
lappend ans [list set LOADEDMODULES source-sh/7.2] lappend ans [list set LOADEDMODULES source-sh/7.2]
skipping to change at line 1331 skipping to change at line 1367
lappend ans [list set FOOPATHEM :/path/to/dir1:/path/to/dir2:/path/to/dir3] lappend ans [list set FOOPATHEM :/path/to/dir1:/path/to/dir2:/path/to/dir3]
lappend ans [list set FOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3}] lappend ans [list set FOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3}]
lappend ans [list set FOOPATHCB /path/to/dir1:/path/to/d\{r2:/path/to/dir3] lappend ans [list set FOOPATHCB /path/to/dir1:/path/to/d\{r2:/path/to/dir3]
lappend ans [list set FOOEM {}] lappend ans [list set FOOEM {}]
lappend ans [list set FOOSP {value }] lappend ans [list set FOOSP {value }]
lappend ans [list set FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3] lappend ans [list set FOOPATH /path/to/dir1:/path/to/dir2:/path/to/dir3]
lappend ans [list set FOOCB va\{ue] lappend ans [list set FOOCB va\{ue]
lappend ans [list set __MODULES_SHARE_FOOPATHEM :1] lappend ans [list set __MODULES_SHARE_FOOPATHEM :1]
lappend ans [list set FOOPATHWC /path/to/dir1:/path/to/d\*r2:/path/to/dir3] lappend ans [list set FOOPATHWC /path/to/dir1:/path/to/d\*r2:/path/to/dir3]
lappend ans [list set FOO value] lappend ans [list set FOO value]
lappend ans [list set __MODULES_LMREFRESH source-sh/7.2]
lappend ans [list set FOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }] lappend ans [list set FOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }]
lappend ans [list set FOOWC va\*ue] lappend ans [list set FOOWC va\*ue]
if {[info exists fish_version_ge31] && $fish_version_ge31} { if {[info exists fish_version_ge31] && $fish_version_ge31} {
lappend ans [list out {complete -e -c cmd;}] lappend ans [list out {complete -e -c cmd;}]
lappend ans [list out {complete -c cmd -l help -d 'Command help';}] lappend ans [list out {complete -c cmd -l help -d 'Command help';}]
lappend ans [list out {complete -c cmd -l version -d 'Command version';}] lappend ans [list out {complete -c cmd -l version -d 'Command version';}]
lappend ans [list out {complete -c cmd -s h -d 'Command help';}] lappend ans [list out {complete -c cmd -s h -d 'Command help';}]
lappend ans [list out {complete -c cmd -s V -d 'Command version';}] lappend ans [list out {complete -c cmd -s V -d 'Command version';}]
lappend ans [list out {complete -e -c othercmd;}] lappend ans [list out {complete -e -c othercmd;}]
lappend ans [list out {complete -c othercmd --no-files -l help -d 'Command help' ;}] lappend ans [list out {complete -c othercmd --no-files -l help -d 'Command help' ;}]
skipping to change at line 1422 skipping to change at line 1459
setenv\t\tFOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 } setenv\t\tFOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }
setenv\t\tFOOSP {value } setenv\t\tFOOSP {value }
setenv\t\tFOOWC va*ue setenv\t\tFOOWC va*ue
module-whatis\tsource-sh/7.2 module-whatis\tsource-sh/7.2
-------------------------------------------------------------------" -------------------------------------------------------------------"
} }
testouterr_cmd sh {display source-sh/7.2} OK $tserr_disp72 testouterr_cmd sh {display source-sh/7.2} OK $tserr_disp72
testouterr_cmd fish {display source-sh/7.2} OK $tserr_disp72 testouterr_cmd fish {display source-sh/7.2} OK $tserr_disp72
setenv_loaded_module [list source-sh/7.2] [list $mp/source-sh/7.2] setenv_loaded_module [list source-sh/7.2] [list $mp/source-sh/7.2]
setenv_var __MODULES_LMREFRESH source-sh/7.2
setenv_var __MODULES_LMSOURCESH source-sh/7.2\&fish\ testsuite/example/sh-to-mod .fish\|chdir\ $mp\|complete\ fish\ cmd\ \{\}\|complete\ fish\ mycmd\ \{\}\|compl ete\ fish\ othercmd\ \{\}\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/t o/dir3\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/di r3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/to/dir3\|seten v\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to /dir1\ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOO WC\ va\*ue setenv_var __MODULES_LMSOURCESH source-sh/7.2\&fish\ testsuite/example/sh-to-mod .fish\|chdir\ $mp\|complete\ fish\ cmd\ \{\}\|complete\ fish\ mycmd\ \{\}\|compl ete\ fish\ othercmd\ \{\}\|prepend-path\ FOOPATH\ /path/to/dir1\ /path/to/dir2\ /path/to/dir3\|prepend-path\ FOOPATHCB\ /path/to/dir1\ /path/to/d\\\{r2\ /path/t o/dir3\|prepend-path\ FOOPATHEM\ \{\}\ /path/to/dir1\ /path/to/dir2\ /path/to/di r3\|prepend-path\ FOOPATHWC\ /path/to/dir1\ /path/to/d\*r2\ /path/to/dir3\|seten v\ FOO\ value\|setenv\ FOOCB\ va\\\{ue\|setenv\ FOOEM\ \{\}\|setenv\ FOOPATHSP\ \{/path/to/dir1\ /path/to/dir2\ /path/to/dir3\}\|setenv\ FOOPATHSPEM\ \{/path/to /dir1\ /path/to/dir2\ /path/to/dir3\ \}\|setenv\ FOOSP\ \{value\ \}\|setenv\ FOO WC\ va\*ue
set ans [list] set ans [list]
lappend ans [list unset _LMFILES_] lappend ans [list unset _LMFILES_]
lappend ans [list unset LOADEDMODULES] lappend ans [list unset LOADEDMODULES]
lappend ans [list unset __MODULES_LMSOURCESH] lappend ans [list unset __MODULES_LMSOURCESH]
lappend ans [list unset FOOPATHEM] lappend ans [list unset FOOPATHEM]
lappend ans [list unset FOOPATHSP] lappend ans [list unset FOOPATHSP]
lappend ans [list unset FOOPATHCB] lappend ans [list unset FOOPATHCB]
lappend ans [list unset FOOEM] lappend ans [list unset FOOEM]
lappend ans [list unset FOOSP] lappend ans [list unset FOOSP]
lappend ans [list unset FOOPATH] lappend ans [list unset FOOPATH]
lappend ans [list unset FOOCB] lappend ans [list unset FOOCB]
lappend ans [list unset FOOPATHWC] lappend ans [list unset FOOPATHWC]
lappend ans [list unset FOO] lappend ans [list unset FOO]
lappend ans [list unset __MODULES_LMREFRESH]
lappend ans [list unset FOOPATHSPEM] lappend ans [list unset FOOPATHSPEM]
lappend ans [list unset FOOWC] lappend ans [list unset FOOWC]
lappend ans [list out {complete -e -c cmd;}] lappend ans [list out {complete -e -c cmd;}]
lappend ans [list out {complete -e -c othercmd;}] lappend ans [list out {complete -e -c othercmd;}]
lappend ans [list out {complete -e -c mycmd;}] lappend ans [list out {complete -e -c mycmd;}]
testouterr_cmd fish {unload source-sh/7.2} $ans {} testouterr_cmd fish {unload source-sh/7.2} $ans {}
set ans [list] set ans [list]
if {[info exists fish_version_ge31] && $fish_version_ge31} { if {[info exists fish_version_ge31] && $fish_version_ge31} {
lappend ans [list out {complete -e -c cmd;}] lappend ans [list out {complete -e -c cmd;}]
skipping to change at line 1531 skipping to change at line 1570
setenv\t\tFOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3} setenv\t\tFOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3}
setenv\t\tFOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 } setenv\t\tFOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }
setenv\t\tFOOSP {value } setenv\t\tFOOSP {value }
setenv\t\tFOOWC va*ue setenv\t\tFOOWC va*ue
module-whatis\tsource-sh/7.2 module-whatis\tsource-sh/7.2
-------------------------------------------------------------------" -------------------------------------------------------------------"
} }
testouterr_cmd fish {display source-sh/7.2} OK $tserr_disp72 testouterr_cmd fish {display source-sh/7.2} OK $tserr_disp72
unsetenv_loaded_module unsetenv_loaded_module
unsetenv_var __MODULES_LMREFRESH
unsetenv_var __MODULES_LMSOURCESH unsetenv_var __MODULES_LMSOURCESH
} }
setenv_var TESTSUITE_SHTOMOD_NOCOMP 1 setenv_var TESTSUITE_SHTOMOD_NOCOMP 1
unsetenv_var TESTSUITE_SHTOMOD_NOALIAS unsetenv_var TESTSUITE_SHTOMOD_NOALIAS
unsetenv_var TESTSUITE_SHTOMOD_NOFUNC unsetenv_var TESTSUITE_SHTOMOD_NOFUNC
# test use of module command in script # test use of module command in script
setenv_path_var MODULEPATH $modpath:$modpath.2 setenv_path_var MODULEPATH $modpath:$modpath.2
setenv_var TESTSUITE_SHTOMOD_NOVAR 1 setenv_var TESTSUITE_SHTOMOD_NOVAR 1
skipping to change at line 1553 skipping to change at line 1593
setenv_var TESTSUITE_SHTOMOD_NOFUNC 1 setenv_var TESTSUITE_SHTOMOD_NOFUNC 1
setenv_var TESTSUITE_SHTOMOD_NOCD 1 setenv_var TESTSUITE_SHTOMOD_NOCD 1
setenv_var TESTSUITE_SHTOMOD_MODULE 1 setenv_var TESTSUITE_SHTOMOD_MODULE 1
# set things to trigger a module autoinit within test script in order to ensure # set things to trigger a module autoinit within test script in order to ensure
# module is defined, then cleanup not to report this setup within the environmen t # module is defined, then cleanup not to report this setup within the environmen t
# changes made by the script # changes made by the script
setenv_var MODULES_SET_SHELL_STARTUP 0 setenv_var MODULES_SET_SHELL_STARTUP 0
setenv_var MODULES_CMD [file normalize $env(TESTSUITEDIR)/../modulecmd.tcl] setenv_var MODULES_CMD [file normalize $env(TESTSUITEDIR)/../modulecmd.tcl]
setenv_var TCLSH $TCLSH setenv_var TCLSH $TCLSH
set lmsourceshpath {}
# setup simpler MANPATH value for tests if autoinit adds Modules man location to
MANPATH
if {$install_setmanpath eq {y}} {
set default_manpath /usr/share/man:/usr/local/share/man
setenv_var MANPATH $default_manpath
if {[string first { } $install_mandir] != -1} {
set mandirenc "{$install_mandir}"
} else {
set mandirenc $install_mandir
}
if {$install_appendmanpath eq {y}} {
set updatedmanpath $default_manpath:$install_mandir
set lmsourceshpath "append-path MANPATH $mandirenc|"
} else {
set updatedmanpath $install_mandir:$default_manpath
set lmsourceshpath "prepend-path MANPATH $mandirenc|"
}
}
# setup PATH without Modules bin location
if {$install_setbinpath eq {y}} {
set default_path [join [lsearch -all -inline -not [split $::env(PATH) :] $in
stall_bindir] :]
setenv_var PATH $default_path
if {[string first { } $install_bindir] != -1} {
set bindirenc "{$install_bindir}"
} else {
set bindirenc $install_bindir
}
if {$install_appendbinpath eq {y}} {
set updatedpath $default_path:$install_bindir
if {$install_appendmanpath eq {n}} {
set lmsourceshpath "append-path PATH $bindirenc|$lmsourceshpath"
} else {
append lmsourceshpath "append-path PATH $bindirenc|"
}
} else {
set updatedpath $install_bindir:$default_path
append lmsourceshpath "prepend-path PATH $bindirenc|"
}
}
set ans [list] set ans [list]
if {$install_versioning eq {y}} { if {$install_versioning eq {y}} {
lappend ans [list set MODULE_VERSION_STACK $install_version] lappend ans [list set MODULE_VERSION_STACK $install_version]
} }
# MANPATH is set before PATH if the latter is appended and not the former
if {$install_setmanpath eq {y} && $install_appendbinpath eq {y} && $install_appe
ndmanpath eq {n}} {
lappend ans [list set MANPATH $updatedmanpath]
}
if {$install_setbinpath eq {y}} {
lappend ans [list set PATH $updatedpath]
}
if {$install_setmanpath eq {y} && ($install_appendbinpath eq {n} || $install_app
endmanpath eq {y})} {
lappend ans [list set MANPATH $updatedmanpath]
}
lappend ans [list set _LMFILES_ $mp/source-sh/1] lappend ans [list set _LMFILES_ $mp/source-sh/1]
lappend ans [list set LOADEDMODULES source-sh/1] lappend ans [list set LOADEDMODULES source-sh/1]
lappend ans [list set testsuite yes] lappend ans [list set testsuite yes]
lappend ans [list set MODULES_COLLECTION_TARGET bar] lappend ans [list set MODULES_COLLECTION_TARGET bar]
# if module was defined in environment prior test, the result of the source-sh e valuation # if module was defined in environment prior test, the result of the source-sh e valuation
# will be the unset of the module functions # will be the unset of the module functions
if {$is_modules_defined} { if {$is_modules_defined} {
set extraans \|unset-function\ _module_raw\|unset-function\ ml\|unset-functi on\ module set extraans \|unset-function\ _module_raw\|unset-function\ ml\|unset-functi on\ module
} else { } else {
set extraans {} set extraans {}
} }
if {$install_versioning eq {y}} { if {$install_versioning eq {y}} {
lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|setenv\ MODULE_VERSION\ $install_version\|setenv\ MODULE_VERSION_S TACK\ $install_version\|setenv\ MODULES_COLLECTION_TARGET\ bar\|setenv\ testsuit e\ yes$extraans] lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|${lmsourceshpath}setenv\ MODULE_VERSION\ $install_version\|setenv\ MODULE_VERSION_STACK\ $install_version\|setenv\ MODULES_COLLECTION_TARGET\ bar\ |setenv\ testsuite\ yes$extraans]
} else { } else {
lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|setenv\ MODULES_COLLECTION_TARGET\ bar\|setenv\ testsuite\ yes$ext raans] lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|${lmsourceshpath}setenv\ MODULES_COLLECTION_TARGET\ bar\|setenv\ t estsuite\ yes$extraans]
} }
if {$install_versioning eq {y}} { if {$install_versioning eq {y}} {
lappend ans [list set MODULE_VERSION $install_version] lappend ans [list set MODULE_VERSION $install_version]
} }
if {$is_modules_defined} { if {$is_modules_defined} {
lappend ans [list {unset -f ml;}] lappend ans [list {unset -f ml;}]
lappend ans [list {unset -f module;}] lappend ans [list {unset -f module;}]
lappend ans [list {unset -f _module_raw;}] lappend ans [list {unset -f _module_raw;}]
} }
testouterr_cmd sh {load source-sh/1} $ans {} testouterr_cmd sh {load source-sh/1} $ans {}
if {$is_modules_defined} { if {$is_modules_defined} {
set extratserr " set extratserr "
unset-function\t_module_raw unset-function\t_module_raw
unset-function\tml unset-function\tml
unset-function\tmodule" unset-function\tmodule"
} else { } else {
set extratserr {} set extratserr {}
} }
set tserr "------------------------------------------------------------------- set tserr "-------------------------------------------------------------------
$mp/source-sh/1:\n\n" $mp/source-sh/1:\n\n"
set tserr_path {}
if {$install_setmanpath eq {y}} {
if {$install_appendmanpath eq {y}} {
append tserr_path "append-path\tMANPATH $mandirenc\n"
} else {
append tserr_path "prepend-path\tMANPATH $mandirenc\n"
}
}
if {$install_setbinpath eq {y}} {
if {$install_appendbinpath eq {y}} {
if {$install_appendmanpath eq {n}} {
set tserr_path "append-path\tPATH $bindirenc\n$tserr_path"
} else {
append tserr_path "append-path\tPATH $bindirenc\n"
}
} else {
append tserr_path "prepend-path\tPATH $bindirenc\n"
}
}
append tserr $tserr_path
if {$install_versioning eq {y}} { if {$install_versioning eq {y}} {
append tserr "setenv\t\tMODULE_VERSION $install_version append tserr "setenv\t\tMODULE_VERSION $install_version
setenv\t\tMODULE_VERSION_STACK $install_version\n" setenv\t\tMODULE_VERSION_STACK $install_version\n"
} }
append tserr "setenv\t\tMODULES_COLLECTION_TARGET bar append tserr "setenv\t\tMODULES_COLLECTION_TARGET bar
setenv\t\ttestsuite yes$extratserr setenv\t\ttestsuite yes$extratserr
module-whatis\tsource-sh/1 module-whatis\tsource-sh/1
-------------------------------------------------------------------" -------------------------------------------------------------------"
testouterr_cmd sh {display source-sh/1} OK $tserr testouterr_cmd sh {display source-sh/1} OK $tserr
skipping to change at line 1624 skipping to change at line 1735
$modlin" $modlin"
testouterr_cmd_re sh {test source-sh/1} OK $tserr testouterr_cmd_re sh {test source-sh/1} OK $tserr
# already set variable with equal or different value # already set variable with equal or different value
setenv_var MODULES_COLLECTION_TARGET foo setenv_var MODULES_COLLECTION_TARGET foo
setenv_var testsuite yes setenv_var testsuite yes
set ans [list] set ans [list]
if {$install_versioning eq {y}} { if {$install_versioning eq {y}} {
lappend ans [list set MODULE_VERSION_STACK $install_version] lappend ans [list set MODULE_VERSION_STACK $install_version]
} }
# MANPATH is set before PATH if the latter is appended and not the former
if {$install_setmanpath eq {y} && $install_appendbinpath eq {y} && $install_appe
ndmanpath eq {n}} {
lappend ans [list set MANPATH $updatedmanpath]
}
if {$install_setbinpath eq {y}} {
lappend ans [list set PATH $updatedpath]
}
if {$install_setmanpath eq {y} && ($install_appendbinpath eq {n} || $install_app
endmanpath eq {y})} {
lappend ans [list set MANPATH $updatedmanpath]
}
lappend ans [list set _LMFILES_ $mp/source-sh/1] lappend ans [list set _LMFILES_ $mp/source-sh/1]
lappend ans [list set LOADEDMODULES source-sh/1] lappend ans [list set LOADEDMODULES source-sh/1]
lappend ans [list set MODULES_COLLECTION_TARGET bar] lappend ans [list set MODULES_COLLECTION_TARGET bar]
if {$install_versioning eq {y}} { if {$install_versioning eq {y}} {
lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|setenv\ MODULE_VERSION\ $install_version\|setenv\ MODULE_VERSION_S TACK\ $install_version\|setenv\ MODULES_COLLECTION_TARGET\ bar$extraans] lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|${lmsourceshpath}setenv\ MODULE_VERSION\ $install_version\|setenv\ MODULE_VERSION_STACK\ $install_version\|setenv\ MODULES_COLLECTION_TARGET\ bar$ extraans]
} else { } else {
lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|setenv\ MODULES_COLLECTION_TARGET\ bar$extraans] lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|${lmsourceshpath}setenv\ MODULES_COLLECTION_TARGET\ bar$extraans]
} }
if {$install_versioning eq {y}} { if {$install_versioning eq {y}} {
lappend ans [list set MODULE_VERSION $install_version] lappend ans [list set MODULE_VERSION $install_version]
} }
if {$is_modules_defined} { if {$is_modules_defined} {
lappend ans [list {unset -f ml;}] lappend ans [list {unset -f ml;}]
lappend ans [list {unset -f module;}] lappend ans [list {unset -f module;}]
lappend ans [list {unset -f _module_raw;}] lappend ans [list {unset -f _module_raw;}]
} }
testouterr_cmd sh {load source-sh/1} $ans {} testouterr_cmd sh {load source-sh/1} $ans {}
# module is loaded prior sh-to-mod # module is loaded prior sh-to-mod
setenv_var testsuite no setenv_var testsuite no
setenv_loaded_module [list setenv/1.0] [list $modpath/setenv/1.0] setenv_loaded_module [list setenv/1.0] [list $modpath/setenv/1.0]
set ans [list] set ans [list]
if {$install_versioning eq {y}} { if {$install_versioning eq {y}} {
lappend ans [list set MODULE_VERSION_STACK $install_version] lappend ans [list set MODULE_VERSION_STACK $install_version]
} }
# MANPATH is set before PATH if the latter is appended and not the former
if {$install_setmanpath eq {y} && $install_appendbinpath eq {y} && $install_appe
ndmanpath eq {n}} {
lappend ans [list set MANPATH $updatedmanpath]
}
if {$install_setbinpath eq {y}} {
lappend ans [list set PATH $updatedpath]
}
if {$install_setmanpath eq {y} && ($install_appendbinpath eq {n} || $install_app
endmanpath eq {y})} {
lappend ans [list set MANPATH $updatedmanpath]
}
lappend ans [list set _LMFILES_ $modpath/setenv/1.0:$mp/source-sh/1] lappend ans [list set _LMFILES_ $modpath/setenv/1.0:$mp/source-sh/1]
lappend ans [list set LOADEDMODULES setenv/1.0:source-sh/1] lappend ans [list set LOADEDMODULES setenv/1.0:source-sh/1]
lappend ans [list set MODULES_COLLECTION_TARGET bar] lappend ans [list set MODULES_COLLECTION_TARGET bar]
if {$install_versioning eq {y}} { if {$install_versioning eq {y}} {
lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|setenv\ MODULE_VERSION\ $install_version\|setenv\ MODULE_VERSION_S TACK\ $install_version\|setenv\ MODULES_COLLECTION_TARGET\ bar$extraans] lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|${lmsourceshpath}setenv\ MODULE_VERSION\ $install_version\|setenv\ MODULE_VERSION_STACK\ $install_version\|setenv\ MODULES_COLLECTION_TARGET\ bar$ extraans]
} else { } else {
lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|setenv\ MODULES_COLLECTION_TARGET\ bar$extraans] lappend ans [list set __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/ sh-to-mod.sh\|${lmsourceshpath}setenv\ MODULES_COLLECTION_TARGET\ bar$extraans]
} }
if {$install_versioning eq {y}} { if {$install_versioning eq {y}} {
lappend ans [list set MODULE_VERSION $install_version] lappend ans [list set MODULE_VERSION $install_version]
} }
if {$is_modules_defined} { if {$is_modules_defined} {
lappend ans [list {unset -f ml;}] lappend ans [list {unset -f ml;}]
lappend ans [list {unset -f module;}] lappend ans [list {unset -f module;}]
lappend ans [list {unset -f _module_raw;}] lappend ans [list {unset -f _module_raw;}]
} }
testouterr_cmd sh {load source-sh/1} $ans {} testouterr_cmd sh {load source-sh/1} $ans {}
setenv_loaded_module [list source-sh/1] [list $mp/source-sh/1] setenv_loaded_module [list source-sh/1] [list $mp/source-sh/1]
setenv_var testsuite yes setenv_var testsuite yes
setenv_var MODULES_COLLECTION_TARGET bar setenv_var MODULES_COLLECTION_TARGET bar
setenv_var __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/sh-to-mod.s if {$install_setbinpath eq {y}} {
h\|setenv\ MODULES_COLLECTION_TARGET\ bar\|setenv\ testsuite\ yes setenv_var PATH $updatedpath
}
if {$install_setmanpath eq {y}} {
setenv_var MANPATH $updatedmanpath
}
setenv_var __MODULES_LMSOURCESH source-sh/1\&bash\ testsuite/example/sh-to-mod.s
h\|${lmsourceshpath}setenv\ MODULES_COLLECTION_TARGET\ bar\|setenv\ testsuite\ y
es
set ans [list] set ans [list]
# MANPATH is set before PATH if the latter is appended and not the former
if {$install_setmanpath eq {y} && $install_appendbinpath eq {y} && $install_appe
ndmanpath eq {n}} {
lappend ans [list set MANPATH $default_manpath]
}
if {$install_setbinpath eq {y}} {
lappend ans [list set PATH $default_path]
}
if {$install_setmanpath eq {y} && ($install_appendbinpath eq {n} || $install_app
endmanpath eq {y})} {
lappend ans [list set MANPATH $default_manpath]
}
lappend ans [list unset _LMFILES_] lappend ans [list unset _LMFILES_]
lappend ans [list unset LOADEDMODULES] lappend ans [list unset LOADEDMODULES]
lappend ans [list unset testsuite] lappend ans [list unset testsuite]
lappend ans [list unset MODULES_COLLECTION_TARGET] lappend ans [list unset MODULES_COLLECTION_TARGET]
lappend ans [list unset __MODULES_LMSOURCESH] lappend ans [list unset __MODULES_LMSOURCESH]
testouterr_cmd sh {unload source-sh/1} $ans {} testouterr_cmd sh {unload source-sh/1} $ans {}
unsetenv_loaded_module unsetenv_loaded_module
unsetenv_var __MODULES_LMSOURCESH unsetenv_var __MODULES_LMSOURCESH
unsetenv_var MODULES_COLLECTION_TARGET unsetenv_var MODULES_COLLECTION_TARGET
unsetenv_var testsuite unsetenv_var testsuite
unsetenv_var TESTSUITE_SHTOMOD_MODULE unsetenv_var TESTSUITE_SHTOMOD_MODULE
if {$install_setbinpath eq {y}} {
setenv_var PATH $ORIG_PATH
}
# check excepted siteconfig file is installed # check excepted siteconfig file is installed
if {[siteconfig_isStderrTty]} { if {[siteconfig_isStderrTty]} {
# test removal of alias, function and completion from a source-sh script # test removal of alias, function and completion from a source-sh script
setenv_var TESTSUITE_SHTOMOD_UNSETALFUNCCOMP 1 setenv_var TESTSUITE_SHTOMOD_UNSETALFUNCCOMP 1
setenv_var TESTSUITE_ENABLE_SITECONFIG_SOURCESHBASHUNSET 1 setenv_var TESTSUITE_ENABLE_SITECONFIG_SOURCESHBASHUNSET 1
set ans [list] set ans [list]
lappend ans [list set _LMFILES_ $mp/source-sh/1] lappend ans [list set _LMFILES_ $mp/source-sh/1]
 End of changes. 55 change blocks. 
8 lines changed or deleted 169 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)