diff options
author | Karl Berry <karl@freefriends.org> | 2012-11-20 18:08:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-11-20 18:08:54 +0000 |
commit | c5add2ea5067382269ae6f19e345fda0b9a7bd21 (patch) | |
tree | 02f512fda46d93079c9dc59c0d76f0e398150f83 /Master/tlpkg/tlperl/lib/FindBin.pm | |
parent | 6c35e87bdc5a3f64833dbbc42e7d42e683db9d5b (diff) |
perl 5.16.2, compiled without optimization for Windows (from siep)
git-svn-id: svn://tug.org/texlive/trunk@28315 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlperl/lib/FindBin.pm')
-rw-r--r-- | Master/tlpkg/tlperl/lib/FindBin.pm | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/Master/tlpkg/tlperl/lib/FindBin.pm b/Master/tlpkg/tlperl/lib/FindBin.pm index 892d6e5d93a..cf6ecf29040 100644 --- a/Master/tlpkg/tlperl/lib/FindBin.pm +++ b/Master/tlpkg/tlperl/lib/FindBin.pm @@ -59,21 +59,6 @@ workaround was to force the C<BEGIN> block to be executed again: delete $INC{'FindBin.pm'}; require FindBin; -=head1 KNOWN BUGS - -If perl is invoked as - - perl filename - -and I<filename> does not have executable rights and a program called -I<filename> exists in the users C<$ENV{PATH}> which satisfies both B<-x> -and B<-T> then FindBin assumes that it was invoked via the -C<$ENV{PATH}>. - -Workaround is to invoke perl as - - perl ./filename - =head1 AUTHORS FindBin is supported as part of the core perl distribution. Please send bug @@ -103,7 +88,7 @@ use File::Spec; %EXPORT_TAGS = (ALL => [qw($Bin $Script $RealBin $RealScript $Dir $RealDir)]); @ISA = qw(Exporter); -$VERSION = "1.50"; +$VERSION = "1.51"; # needed for VMS-specific filename translation @@ -145,30 +130,6 @@ sub init } else { - my $dosish = ($^O eq 'MSWin32' or $^O eq 'os2'); - unless(($script =~ m#/# || ($dosish && $script =~ m#\\#)) - && -f $script) - { - my $dir; - foreach $dir (File::Spec->path) - { - my $scr = File::Spec->catfile($dir, $script); - - # $script can been found via PATH but perl could have - # been invoked as 'perl file'. Do a dumb check to see - # if $script is a perl program, if not then keep $script = $0 - # - # well we actually only check that it is an ASCII file - # we know its executable so it is probably a script - # of some sort. - if(-f $scr && -r _ && ($dosish || -x _) && -s _ && -T _) - { - $script = $scr; - last; - } - } - } - croak("Cannot find current script '$0'") unless(-f $script); # Ensure $script contains the complete path in case we C<chdir> |