From 1e33fc439c527ce760f735542f22db8f6af207d0 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 15 Feb 2017 15:25:36 +0100 Subject: [PATCH] Pmodules/modulecmd.bash.in - bug-fix in get_available_modules() if Tcl implementation of modulecmd is used --- Pmodules/modulecmd.bash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index d2509a0..1891acd 100755 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -961,7 +961,7 @@ get_available_modules() { if [[ :${use_releases}: =~ :${release}: ]]; then mods+=( "${mod}" ${release} ) fi - done < <(MODULEPATH="${dir}" "${modulecmd}" bash -t avail "${module}" 2>&1 | "${tail}" -n +2) + done < <(MODULEPATH="${dir}" "${modulecmd}" bash avail -t "${module}" 2>&1 | "${tail}" -n +2) echo "${mods[@]}" }