Bug #131848, was updated on 2001-Feb-10 08:56
Here is a current snapshot of the bug.

Project: MacPerl
Category: MacPerl MPW tool
Status: Open
Resolution: None
Bug Group: Development Branch
Priority: 5
Submitted by: thomaswegner
Assigned to : nobody
Summary: MacPerl tool (MrC/SC build), Tainted Environment variables

Details: 
MacPerl MPW tool (MrC/SC build), Tainted Environment variables

The following may or may not be a bug. I've detected it while testing 
Graham Barr's Scalar::Util module for MacPerl 5.004. I've built this 
module for MacPerl 5.6.0 too, and it shows the same (erroneous ?) 
behavior. This module exports a function tainted(), which allows a 
boolean test whether or not a variable is tainted.

On a Unix machine, the following two tests should be ok, when run with 
the -T switch:

my $key = (keys %ENV)[0];
$var = $ENV{$key};

print "not " unless tainted($var);
print "ok 3\n";

print "not " unless tainted($ENV{$key});
print "ok 4\n";

Under MacPerl, these tests are not ok. An environment variable seems 
not to be tainted. Is this a bug or a feature?



For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=131848&group_id=7940

Reply via email to