Index: drush
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/drush,v
retrieving revision 1.21
diff -u -r1.21 drush
--- drush	12 Sep 2010 04:12:47 -0000	1.21
+++ drush	15 Sep 2010 16:49:03 -0000
@@ -28,13 +28,8 @@
     SCRIPT_PATH=$(cygpath -w -a -- "$SCRIPT_PATH") ;;
 esac
 
-# prepend "--nocolor" to the argument list if stdout is not a terminal
-if [ ! -t 1 ]; then
-  set -- "--nocolor" ${1+"$@"}
-fi
-
 # If not exported and term is set determine and export the number of columns.
-if [ -z $COLUMNS ] && [ -n "$TERM" ]; then
+if [ -z $COLUMNS ] && [ "$TERM" != dumb ]; then
   # Note to cygwin users: if you are getting "tput: command not found", 
   # install the ncurses package to get it.
   export COLUMNS=$(tput cols)
Index: includes/environment.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/includes/environment.inc,v
retrieving revision 1.91
diff -u -r1.91 environment.inc
--- includes/environment.inc	16 Aug 2010 15:15:20 -0000	1.91
+++ includes/environment.inc	15 Sep 2010 16:49:04 -0000
@@ -572,7 +572,7 @@
 
   // Suppress colored logging if --nocolor option is explicitly given or if
   // terminal does not support it.
-  $nocolor = (drush_get_option(array('nocolor'), FALSE) || !getenv('TERM'));
+  $nocolor = (drush_get_option(array('nocolor'), FALSE) || getenv('TERM') != "dumb");
   if (!$nocolor) {
     // Check for colorless terminal.
     $colors = exec('tput colors 2>&1');
