modulecmd: argument/option handling fixed

This commit is contained in:
2023-06-21 13:49:45 +02:00
parent 22a399a982
commit ee2018941a
+5 -2
View File
@@ -3276,9 +3276,12 @@ case ${subcommand} in
esac
# parse arguments of the sub-command and call it
set -- $("${getopt}" --unquoted --name="${CMD}" ${Options[${subcommand}]} -- "${opts[@]}" "$@" ) \
temp=$("${getopt}" --name="${CMD}" ${Options[${subcommand}]} -- "${opts[@]}" "$@" ) \
|| print_help "${subcommand}"
subcommand_${Subcommands[$subcommand]} $@
eval set -- "${temp}"
unset temp
subcommand_${Subcommands[$subcommand]} "$@"
# Local Variables:
# mode: sh