Author: glen
Date: Sun Jan 28 15:22:58 2007
New Revision: 8209

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
- termput() cannot cache in shell vars as it's always called from subshell

Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions      (original)
+++ rc-scripts/trunk/rc.d/init.d/functions      Sun Jan 28 15:22:58 2007
@@ -146,20 +146,7 @@
 # Colors workaround
 termput()
 {
-       local ck="_tput_$1_$2_$3"
-       local cv
-       eval cv="\$$ck"
-       if [ -n "$cv" ]; then
-               echo -ne "$cv"
-               return
-       fi
-       cv=$(_termput "$@")
-       echo -ne "$cv"
-       eval "$ck='$cv'"
-}
 
-_termput()
-{
        if is_yes "$FASTRC" || is_no "$TPUT"; then
                case "$1" in
                  hpa)
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to