Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-commits
Author: zmedico
Date: 2008-10-31 17:25:44 +0000 (Fri, 31 Oct 2008)
New Revision: 11764
Modified:
main/trunk/bin/isolated-functions.sh
Log:
Bug #236609 - Fix columns calculation for TERM="dumb". Thanks to Ulrich M?\195?\188ller
<ulm@g.o> for the patch.
Modified: main/trunk/bin/isolated-functions.sh
===================================================================
--- main/trunk/bin/isolated-functions.sh 2008-10-31 05:07:28 UTC (rev 11763)
+++ main/trunk/bin/isolated-functions.sh 2008-10-31 17:25:44 UTC (rev 11764)
@@ -371,7 +371,7 @@
(( COLS > 0 )) || (( COLS = 80 ))
COLS=$((${COLS} - 8)) # width of [ ok ] == 7
# Adjust COLS so that eend works properly on a standard BSD console.
- [ "${TERM}" = "cons25" ] && COLS=$((${COLS} - 1))
+ [[ $TERM = cons25 || $TERM = dumb ]] && ((COLS--))
# Now, ${ENDCOL} will move us to the end of the
# column; irregardless of character width
|
|