local ($wanted_callback, $avoid_nlink, $bydepth, $no_chdir, $follow,
$follow_skip, $full_check, $untaint, $untaint_skip, $untaint_pat,
$pre_process, $post_process, $dangling_symlinks);
- local($dir, $name, $fullname, $prune);
+ local($dir, $name, $fullname, $prune, $_);
my $cwd = $wanted->{bydepth} ? Cwd::fastcwd() : Cwd::getcwd();
my $cwd_untainted = $cwd;
$SIG{'__WARN__'} = sub { $warn_msg = $_[0]; warn "# $_[0]"; }
}
-if ( $symlink_exists ) { print "1..188\n"; }
-else { print "1..78\n"; }
+if ( $symlink_exists ) { print "1..189\n"; }
+else { print "1..79\n"; }
# Uncomment this to see where File::Find is chdir'ing to. Helpful for
# debugging its little jaunts around the filesystem.
Check( scalar(keys %Expect_Dir) == 0 );
+{
+ print "# checking argument localization\n";
+
+ ### this checks the fix of perlbug [19977] ###
+ my @foo = qw( a b c d e f );
+ my %pre = map { $_ => } @foo;
+
+ File::Find::find( sub { } , 'fa' ) for @foo;
+ delete $pre{$_} for @foo;
+
+ Check( scalar( keys %pre ) == 0 );
+}
if ( $symlink_exists ) {
print "# --- symbolic link tests --- \n";
Check( scalar(keys %Expect_File) == 0 );
unlink file_path('fa', 'faa_sl');
-}
-
+}