From 965ab75ce7e1b048a01652022e4a0a659f0d5f43 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 6 Jan 2020 14:53:34 +0100 Subject: [PATCH] fix: support for shell 'sh' added --- Pmodules/modulecmd.bash.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index b462502..2bac147 100755 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -55,7 +55,7 @@ print_help() { export_env() { case "${Shell}" in - bash | zsh ) + sh | bash | zsh ) local -r fmt="export %s=\"%s\"; " ;; csh | tcsh ) @@ -1960,8 +1960,8 @@ subcommand_initclear() { # main # case "$1" in - bash | zsh ) - declare Shell="$1" + sh | bash | zsh ) + declare Shell="sh" ;; csh | tcsh ) declare Shell='csh'