Files
modules/doc/example/top-priority-values/modulefiles/foo/1
Xavier Delaruelle 8c9df050f9 doc: introduce cookbook
Add a cookbook section in the documentation and port there the 3
pre-existing recipes: inhibit-report-info, top-priority-values and
unload-firstly-loaded.

Move the examples files of these recipes from contrib/cookbook to
doc/example directory.
2018-11-19 04:02:06 +01:00

10 lines
364 B
Plaintext

#%Module
# define a value for variable holding top priority (not overwritten by non-top priority value)
setenv --top TESTVAR topvalue
# prepend a value to a path-like variable, value that stays first position
prepend-path --top TESTPATH topprevalue
# append a value to a path-like variable, value that stays last position
append-path --top TESTPATH toppostvalue