SVN: rc-scripts/trunk/rc.d/init.d/functions

glen glen at pld-linux.org
Sun Jan 28 15:22:58 CET 2007


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)


More information about the pld-cvs-commit mailing list