mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
Detect if path string passed to append-path, prepend-path or remove-path commands is composed of multiple path entries (separated by specified or default delimiter string). In this situation add/remove each path separately to correctly update relative reference counter. Add some non-regression tests for modulefile or sub-command cases. Update modulefile.4 doc. Closes #142
25 lines
633 B
Groff
25 lines
633 B
Groff
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: remove/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2017/12/17
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Test removing multiple paths passed as one string
|
|
# Command:
|
|
# Sub-Command: remove-path
|
|
#
|
|
# Invocation: load @M@/@V@
|
|
# Comment: %C{
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
remove-path -d { } testsuite {http://foobar.com http://foobar.io }
|