mirror of
https://github.com/envmodules/modules.git
synced 2026-06-10 00:56:30 +08:00
Adapt cmdModuleUse to handle empty path name "" as any other path string, so an error is returned when file type is cheked. Add tests in 10-use and 50-cmds suites to check behavior of use and unuse commands with an empty path passed as argument. Add by the way tests that were missing for bash shell in 10-use suite.
31 lines
684 B
Plaintext
31 lines
684 B
Plaintext
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: use/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2017/05/27
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Testuite modulefile
|
|
# Command:
|
|
# Sub-Command: use
|
|
#
|
|
# Invocation: load @M@
|
|
# Result: %R{
|
|
# setenv _LMFILES_ ${_LMFILES_}:@M@/@V@
|
|
# setenv LOADEDMODULES ${LOADEDMODULES}:@P@/@M@/@V@
|
|
# }R%
|
|
# Comment: %C{
|
|
# Check the 'use' command
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
module use ""
|
|
|