mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-26 01:23:09 +02:00
modulecmd: don't show directory of modulefiles
Don't show the full modulefile name for modules outside the Pmodules hierarchy.
This commit is contained in:
@@ -2104,8 +2104,8 @@ subcommand_list() {
|
||||
|
||||
human_readable_output(){
|
||||
# get list of loaded modules with stripped MODULEPATH
|
||||
IFS=':' read -r -a modules <<< "${LOADEDMODULES}"
|
||||
|
||||
IFS=':' read -r -a modules \
|
||||
< <( ${sed} "s;${MODULEPATH//:/\/\\\|}/;;g" <<< "${_LMFILES_}" )
|
||||
local strs=()
|
||||
local -i n=1
|
||||
local -i colsize=0
|
||||
|
||||
Reference in New Issue
Block a user