From 21beab1a7884b7401240e8e2d161c9429d3d5f8b Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 22 May 2019 11:21:41 +0200 Subject: [PATCH] --with option of sub-command now accepts lists of modules --- Pmodules/modulecmd.bash.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index ea0a91a..f93c364 100755 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -1572,7 +1572,11 @@ subcommand_search() { std::die 1 "%s %s: illegal value for --with option -- %s\n" \ "${CMD}" 'search' "${arg}" fi - with_modules+=" && / ${arg//\//\\/}/" + arg=${arg//:/ } + arg=${arg//,/ } + for module in ${arg}; do + with_modules+=" && / ${module//\//\\/}/" + done ;; -a | --all-releases ) opt_use_releases="${PMODULES_DEFINED_RELEASES}"