mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
Remove path entry in environment variable by passing an index rather a string. String at specified index in content list is removed if coherent with relative reference counter.
25 lines
576 B
Groff
25 lines
576 B
Groff
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: remove/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2017/12/20
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Test removing paths in index mode
|
|
# Command:
|
|
# Sub-Command: remove-path
|
|
#
|
|
# Invocation: load @M@/@V@
|
|
# Comment: %C{
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
remove-path --index FOO 1
|