From 00706f34a524c210fb69dabb8a71c76487fe3ca7 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 12 Jan 2017 08:35:03 -0800 Subject: [PATCH] Correct 'show macros' Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index af8c3e9c2..3896358f2 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -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 }