From 3b99c3f5e059a5ba95ffceb1bc47dd1df73dd5f6 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Fri, 15 Oct 2010 12:16:52 -0500 Subject: [PATCH] script/lib/ansi: modify function a to resolve all parameters as ansi tags, instead of only the first --- script/lib/ansi.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/lib/ansi.sh b/script/lib/ansi.sh index 53a757c..7c31ba1 100644 --- a/script/lib/ansi.sh +++ b/script/lib/ansi.sh @@ -37,6 +37,10 @@ then a_bblack="$e[40m" a() { - eval "echo \${a_$1}" + while [ "${1}" ] + do + eval "echo \${a_$1}" + shift + done } fi -- 2.42.0