mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
Fix argument parsing for the `append-path`, `prepend-path` and `remove-path` modulefile commands to consider every arguments found after the variable name as variable values and not command option even if argument starts with `-` character. Fixes #278.
27 lines
703 B
Groff
27 lines
703 B
Groff
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: remove/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2019/06/26
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Test removing multiple paths prefixed with minus sign
|
|
# Command:
|
|
# Sub-Command: remove-path
|
|
#
|
|
# Invocation: load @M@/@V@
|
|
# Comment: %C{
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
remove-path testsuite --delim=, {http://foobar.com}
|
|
remove-path testsuite2 -d , {http://foobar.com}
|
|
remove-path testsuite3 -Lfoo bar
|