From 2175a50545d2645d13c2fe9199182541d350d4bd Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 30 Oct 2025 17:24:54 +0100 Subject: [PATCH] modulecmd: type error fixed in subcommand_avail --- Pmodules/modulecmd.bash.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 04232cd..18efd61 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -1680,12 +1680,12 @@ subcommand_avail() { fi std::append_path groups "${group}" done - local -a modulepath=() + local -- path='' for group in ${groups//:/ }; do - modulepath+="${modulepath_of_group[${group}]}:" + path+="${modulepath_of_group[${group}]}:" done - local -a path=() - IFS=':' read -r -a path <<<"${modulepath%:}" + local -a path_list=() + IFS=':' read -r -a path_list <<<"${path%:}" local -- string='' for string in "${pattern[@]}"; do get_available_modules \ @@ -1693,7 +1693,7 @@ subcommand_avail() { mods \ "${string}" \ "${opt_use_relstages}" \ - "${path[@]}" + "${path_list[@]}" ${output_function} done } # subcommand_avail()