Correct 'show macros'

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-01-12 08:35:03 -08:00
parent 73772efb85
commit 00706f34a5
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -1207,10 +1207,10 @@ show_command() {
if [ -n "$foo" ]; then
macro=${macro#*.}
foo=${foo%.*}
if [ ${#macro} -gt 10 ]; then
echo " $macro ${foo#\#}"
if [ ${#macro} -gt 5 ]; then
printf " $macro\t${foo#\#}\n"
else
$g_echo_e " $macro \t${foo#\#}"
printf " $macro\t\t${foo#\#}\n"
fi
fi
}