mirror of
https://github.com/envmodules/modules.git
synced 2026-06-10 00:56:30 +08:00
So a relative file to source from a modulefile or modulerc, is relative starting from the directory of the modulefile/modulerc sourcing it. Add a specific case to treat empty file name by the way.
28 lines
648 B
Groff
28 lines
648 B
Groff
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: source/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2018/01/07
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Testuite modulefile
|
|
# Command:
|
|
# Sub-Command: source, setenv, append-path
|
|
#
|
|
# Invocation: load @M@
|
|
# Result: %R{
|
|
# }R%
|
|
# Comment: %C{
|
|
# Check the 'source' sub-command, passing empty file name
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
module source {}
|