mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
Detect missing environment variable name or value when calling append-path, prepend-path or remove-path procedures. Raise error in this situation. Introduce a 'parsePathCommandArgs' to check args for the 3 *-path commands. Add non-regression tests in 050-cmds and 070-maint suites to check bad argument situations. Closes #139
25 lines
562 B
Groff
25 lines
562 B
Groff
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: remove/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2017/12/14
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Test bad argument list
|
|
# Command:
|
|
# Sub-Command: remove-path
|
|
#
|
|
# Invocation: load @M@/@V@
|
|
# Comment: %C{
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
remove-path -d : PATH
|