The stripping was introduced in change 27364 to improve taint handling.
p4raw-id: //depot/perl@27550
$ENV{PATH} =~ /(.*)/s;
local $ENV{PATH} =
join $sep, grep { $_ ne "" and $_ ne "." and
- ($is_mswin or !((stat$_)[2]&0020)) }
+ ($is_mswin or !((stat$_)[2]&0022)) }
split quotemeta ($sep), $1;
$runperl =~ /(.*)/s;