When a module name/version is available in multiple modulepaths (like foo/1.0 in the below example), if module matches in first modulepath, then the others will also match, even if their content do not match the extra search query.
$ cat /path/to/modulefiles.1/foo/1.0
#%Module
setenv VAR value
$ cat /path/to/modulefiles.2/foo/1.0
#%Module
$ module use /path/to/modulefiles.2
$ module use /path/to/modulefiles.1
$ module avail -t setenv:VAR
/path/to/modulefiles.1:
foo/1.0
/path/to/modulefiles.2:
foo/1.0
When a module name/version is available in multiple modulepaths (like
foo/1.0
in the below example), if module matches in first modulepath, then the others will also match, even if their content do not match the extra search query.