2 # [perl #33173] shellwords.pl and tainting
5 if ( $ENV{PERL_CORE} ) {
10 if ($Config::Config{extensions} !~ /\bList\/Util\b/) {
11 print "1..0 # Skip: Scalar::Util was not built\n";
17 use Text::ParseWords qw(shellwords old_shellwords);
18 use Scalar::Util qw(tainted);
22 print "not " if grep { not tainted($_) } shellwords("$0$^X");
25 print "not " if grep { not tainted($_) } old_shellwords("$0$^X");