From 0d5f4dcb1805349eeea0042d05dbbffa4dcb8a2d Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 13 Sep 2022 19:21:26 +0200 Subject: [PATCH] modulecmd: help for aliases fixed --- Pmodules/modulecmd.bash.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 1e54cdb..f34e29f 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -2909,6 +2909,9 @@ if [[ -z ${Version} ]] || [[ ${Version} != ${PMODULES_VERSION} ]]; then _LMFILES_ fi +# we need to handle help text and options for sub-cmd aliases +subcommand=${Subcommands[${subcommand}]} + # We need a tmp-file in the following sub-commands. It will be removed # in the exit function if exists. case ${subcommand} in