mirror of
https://github.com/envmodules/modules.git
synced 2026-06-18 00:06:53 +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.
26 lines
666 B
Groff
26 lines
666 B
Groff
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: append/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2017/12/20
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Test appending paths in duplication mode
|
|
# Command:
|
|
# Sub-Command: append-path
|
|
#
|
|
# Invocation: load @M@/@V@
|
|
# Comment: %C{
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
append-path --duplicates FOO /path/to/dir1 /path/to/dir2 /path/to/dir1
|
|
append-path --index BAR /path/to/dir1
|