From 129d6ff5400d47d2978068558b5d9a1c22d133b6 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 7 Jun 2021 14:14:57 +0200 Subject: [PATCH] bugfix in terse output of sub-cmd avail --- 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 4bf884a..e0a20b3 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -882,7 +882,7 @@ subcommand_avail() { terse_output() { output_header "$1" local -i i=0 - for i in ${!mods[@]}; do + for (( i=0; i<${#mods[@]}; i+=3 )); do local mod=${mods[i]} local rel_stage=${mods[i+1]} case ${rel_stage} in