From b0e78a36ced16e1087b68d2825926760d664f856 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 01 Aug 2012 05:33:41 -0400 Subject: Fix eval commands. --- (limited to 'lib') diff --git a/lib/messages.sh b/lib/messages.sh index f945c62..68b08f9 100644 --- a/lib/messages.sh +++ b/lib/messages.sh @@ -54,7 +54,7 @@ oh_info() oh_usage() { _util="$(echo "${0##*/}" | sed 's/-/_/g')" - _usage_str="$(eval echo "\$\{oh_str_usage_${_util}\}")" + _usage_str="$(eval echo \$\{oh_str_usage_"${_util}"\})" : "${_usage_str:=${oh_str_usage_none}}" printf '%s\n' "${_usage_str}" } @@ -63,7 +63,7 @@ oh_help() { oh_usage _util="$(echo "${0##*/}" | sed 's/-/_/g')" - _help_str="$(eval echo "\$\{oh_str_help_${_util}\}")" + _help_str="$(eval echo \$\{oh_str_help_"${_util}"\})" : "${_help_str:=${oh_str_help_none}}" printf '%s\n' "${_help_str}" } -- cgit v0.9.1