On 19 May 2002 [EMAIL PROTECTED] wrote:

> stas        02/05/19 00:56:32
> 
>   Modified:    perl-framework/Apache-Test/lib/Apache TestConfig.pm
>                perl-framework/Apache-Test README
>   Log:
>   make the APACHE_TEST_COLOR env setting work when running from script
>   if running as batch, simply make sure that it's not set
>   updating the docs
...
>   -use constant COLOR   => ($ENV{APACHE_TEST_COLOR} && -t STDOUT) ? 1 : 0;
>   +use constant COLOR   => $ENV{APACHE_TEST_COLOR} ? 1 : 0;
...
>   +When running in the batch mode and redirecting STDOUT to a file, make
>   +sure that the environment variable C<APACHE_TEST_COLOR> is set to 0 or
>   +not set at all.

why this change?  from perlfunc.pod:
    -t  Filehandle is opened to a tty.

color should always be turned off if that is not true.

i have APACHE_TEST_COLOR turned on in my shell rc file, but now i have to 
unset it by hand when i do: t/TEST -v >& test.log

with the -t test, that hassle does not exist.


Reply via email to