@@ -84,6 +84,8 @@ testouterr_cmd sh {load mod@1::} ERR "$err_specvers'1::'"
8484testouterr_cmd sh {load mod@1,:,} ERR "$err_specvers'1,:,'"
8585testouterr_cmd sh {load mod@,:} ERR "$err_specvers',:'"
8686testouterr_cmd sh {load mod@1.3:1.2} ERR "$err_rangevers'1.3:1.2'"
87+ testouterr_cmd sh {load mod@4.1:3} ERR "$err_rangevers'4.1:3'"
88+ testouterr_cmd sh {load mod@1.30:1.3} ERR "$err_rangevers'1.30:1.3'"
8789testouterr_cmd sh {load mod@,<} ERR "$err_specvers',<'"
8890testouterr_cmd sh {load mod@:<} ERR "$err_rangevers':<'"
8991testouterr_cmd sh {load mod@1/1:2} ERR "$err_specvers'1/1:2'"
@@ -113,6 +115,7 @@ testouterr_cmd sh {load extdfl @1.2:} $ans {}
113115testouterr_cmd sh {load extdfl @:1.3.1} $ans {}
114116testouterr_cmd sh {load extdfl @:1.3.7} $ans {}
115117testouterr_cmd sh {load extdfl @1.2:1.3} $ans {}
118+ testouterr_cmd sh {load extdfl @1.2:1} $ans {}
116119testouterr_cmd sh {load extdfl @1.2.3:1.3.7} $ans {}
117120testouterr_cmd sh {load extdfl @:2.0.1} $ans {}
118121testouterr_cmd sh {load extdfl @:2.0} $ans {}
@@ -162,6 +165,7 @@ testouterr_cmd sh {path extdfl/ @1.2:1.3} [list [list text $mp/extdfl/1.3.1]] {}
162165
163166# test all sub-cmd concerned by context
164167testouterr_cmd sh {avail -t extdfl @1.3:1.4} OK "$mp:\nextdfl/1.3.1(default)\nextdfl/1.3.7\nextdfl/1.4.5"
168+ testouterr_cmd sh {avail -t extdfl @1.3.7:1} OK "$mp:\nextdfl/1.3.7\nextdfl/1.4.5"
165169testouterr_cmd_re sh {whatis extdfl@1.3.7:1.4.5} OK "$modlin $mpre $modlin
166170\\s+extdfl/1.3.7: extdfl/1.3.7
167171\\s+extdfl/1.4.5: extdfl/1.4.5"
@@ -187,6 +191,18 @@ testouterr_cmd sh {spider -t ext?fl @1.3:} OK "$mp:\nextdfl/1.3.1(default)\nextd
187191testouterr_cmd sh {avail -t e??.* @:1.4} OK "$mp:\ne.t.fl/1.3.1\ne.t.fl/1.3.7\ne.t.fl/1.4.5"
188192
189193# additional version tests
194+ # Abbreviated upper bounds apply independently of extended defaults.
195+ foreach extdfl {0 1} {
196+ setenv_var MODULES_EXTENDED_DEFAULT $extdfl
197+ set ans [list [list text $mp/extdfl/1.3.7] [list text $mp/extdfl/1.4.5]]
198+ testouterr_cmd sh {paths extdfl@1.3.7:1} $ans {}
199+ testouterr_cmd sh {paths -i EXTDFL@1.3.7:1} $ans {}
200+ set ans [list [list text $mp/extdfl/1.3.7]]
201+ testouterr_cmd sh {paths extdfl@1.3.7:1.3} $ans {}
202+ testouterr_cmd sh {paths extdfl@1.3.7:1.3,9:10} $ans {}
203+ }
204+ unsetenv_var MODULES_EXTENDED_DEFAULT
205+
190206testouterr_cmd sh {avail -t extdfl8 @1.33:} OK "$mp:\nextdfl8/1.33"
191207testouterr_cmd sh {avail -t extdfl8 @:1.3} OK "$mp:\nextdfl8/1.3.1\nextdfl8/1.3.7"
192208testouterr_cmd sh {spider -t extdfl8 @:1.3} OK "$mp:\nextdfl8/1.3.1\nextdfl8/1.3.7"
@@ -297,6 +313,7 @@ set ans [list]
297313lappend ans [list set _LMFILES_ $mp/extdfl2/3.1.7]
298314lappend ans [list set LOADEDMODULES extdfl2/3.1.7]
299315testouterr_cmd sh {load extdfl2@3.0.2:3.1.7} $ans {}
316+ testouterr_cmd sh {load extdfl2@3.1.7:3.1} $ans {}
300317testouterr_cmd sh {load extdfl2@:3.1.7} $ans {}
301318testouterr_cmd sh {load extdfl2@:3.1.7} $ans {}
302319testouterr_cmd sh "load $mp/extdfl2 @:3.1.7" ERR "$err_file'$mp/extdfl2 @:3.1.7'"
0 commit comments