From f2e1414ff1f3fa0d8ad8e534fef6bcf8942d96c7 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 17 Jul 2025 17:04:51 +0200 Subject: [PATCH] more changes --- Pmodules/modulecmd.bash.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 14316bb..ec79e9d 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -2536,7 +2536,7 @@ subcommand_list() { # get list of loaded modules with stripped MODULEPATH IFS=':' read -r -a modules \ < <( ${sed} "s;${MODULEPATH//:/\/\\\|}/;;g" <<< "${_LMFILES_}" ) - local -- strs=() + local -a strs=() local -i n=1 # enumeration of loaded modules local -i colsize=0 local -- s='' @@ -3319,8 +3319,8 @@ USAGE: #.............................................................................. subcommand_whatis() { local -r __doc__='Implementation of the sub-command whatis.' - local -- opts=('--newest') - local -- args=() + local -a opts=('--newest') + local -a args=() while (( $# > 0 )); do case $1 in