From 9f999a85489520ae4a901cfcf87db924e8fcd036 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 25 May 2015 00:53:10 -0400 Subject: get_options(): Use ${running_cmd_clean} --- diff --git a/lib/getopt.sh b/lib/getopt.sh index 32fb57d..048e02b 100644 --- a/lib/getopt.sh +++ b/lib/getopt.sh @@ -27,12 +27,12 @@ get_options() local prefix= local opt= - if [ "x${running_cmd}" = 'x' ]; then + if [ "x${running_cmd_clean}" = 'x' ]; then optstring="${OPTSTRING}" prefix='opt_' else - eval "optstring=\"\${cmd_${running_cmd}_optstring}\"" - prefix="cmd_${running_cmd}_opt_" + eval "optstring=\"\${cmd_${running_cmd_clean}_optstring}\"" + prefix="cmd_${running_cmd_clean}_opt_" fi unset OPTARG -- cgit v0.9.1