From d1ddbf5f0763881963e72e9c4113f2941b1168ab Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 12 Aug 2024 16:30:15 +0200 Subject: [PATCH] modulecmd: bugfix: wrong quoting in sub-cmd search --- Pmodules/modulecmd.bash.in | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index be12e56..a1a5048 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -2690,13 +2690,6 @@ subcommand_search() { modules+=( '' ) fi - # :FIXME: do we need this? - if (( ${#GroupDepths[@]} == 0 )) || \ - [[ ${src_prefix} != "${PMODULES_HOME%%/Tools*}" ]]; then - scan_groups "${src_prefix}" - EnvMustBeSaved='yes' - fi - local -- module='' if [[ "${search_range}" == 'all' || "${search_range}" == 'inside' ]]; then # search inside the Pmodules hierarchy @@ -2714,7 +2707,7 @@ subcommand_search() { if (( depth > 0 )); then s=$(printf '/*%.0s' $(seq 1 ${depth})) fi - modulepath=( "${src_prefix[@]/%//${group}/modulefiles$s}" ) + modulepath=( ${src_prefix[@]/%//${group}/modulefiles$s} ) search "${module}" "${group}" "${modulepath[@]}" done done