File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed
Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,21 @@ foreach shell $shell_list {
177177unsetenv_var TESTSUITE_UNSET
178178
179179
180+ # test special characters in environment variable
181+ foreach shell $shell_list {
182+ if {$shell in {csh tcsh}} {
183+ if {$install_wa277 eq {y}} {
184+ set tsout "abc : \\|<>!#$^&'\"()@x%y\\z:sh* -"
185+ } else {
186+ set tsout "abc : {}|<>!#$^&'\"()@x%y\\z:sh* -"
187+ }
188+ } else {
189+ set tsout "abc : {}|<>!#$^&'\"()@x%y\\z:sh*\n -"
190+ }
191+ testouterr_cmd $shell "module use \"$testsuite_modpath\"\; module load eschars/1.0\; echo \"\$pathelogical -\"" $tsout {}
192+ }
193+
194+
180195#
181196# Clean up variables used in this test case
182197#
Original file line number Diff line number Diff line change 2727#
2828##############################################################################
2929
30- setenv pathelogical "abc : {}|<>!#$^&'\"()@x%y\\z:sh*"
30+ setenv pathelogical "abc : {}|<>!#$^&'\"()@x%y\\z:sh*\n "
3131
Original file line number Diff line number Diff line change @@ -43,19 +43,19 @@ lappend ans_csh [list set pathelogical "abc\\ :\\ \\{\\}\\|\\<\\>\\!\\#\\$\\^\\&
4343lappend ans_csh [list set _LMFILES_ $modulefile]
4444lappend ans_csh [list set LOADEDMODULES $module]
4545
46- lappend ans_sh [list set pathelogical "abc : {}|<>!#$^&'\\''\"()@x%y\\z:sh*" noescval]
46+ lappend ans_sh [list set pathelogical "abc : {}|<>!#$^&'\\''\"()@x%y\\z:sh*\n " noescval]
4747lappend ans_sh [list set _LMFILES_ $modulefile]
4848lappend ans_sh [list set LOADEDMODULES $module]
4949
50- lappend ans_fish [list set pathelogical "abc : {}|<>!#$^&\\'\"()@x%y\\z:sh*" noescval]
50+ lappend ans_fish [list set pathelogical "abc : {}|<>!#$^&\\'\"()@x%y\\z:sh*\n " noescval]
5151lappend ans_fish [list set _LMFILES_ $modulefile]
5252lappend ans_fish [list set LOADEDMODULES $module]
5353
54- lappend ans2 [list set pathelogical "abc : {}|<>!#$^&'\"()@x%y\\z:sh*"]
54+ lappend ans2 [list set pathelogical "abc : {}|<>!#$^&'\"()@x%y\\z:sh*\n "]
5555lappend ans2 [list set _LMFILES_ $modulefile]
5656lappend ans2 [list set LOADEDMODULES $module]
5757
58- lappend ans_pwsh [list set pathelogical "abc : {}|<>!#$^&\\'\"()@x%y\\z:sh*"]
58+ lappend ans_pwsh [list set pathelogical "abc : {}|<>!#$^&\\'\"()@x%y\\z:sh*\n "]
5959lappend ans_pwsh [list set _LMFILES_ $modulefile]
6060lappend ans_pwsh [list set LOADEDMODULES $module]
6161
You can’t perform that action at this time.
0 commit comments