develooper Front page | perl.perl5.porters | Postings from December 2008

Re: [perl #61362] bug report: "perl -c foo" always reports "foo syntax OK" if foo is a directory

Thread Previous | Thread Next
From:
Eric Brine
Date:
December 14, 2008 18:28
Subject:
Re: [perl #61362] bug report: "perl -c foo" always reports "foo syntax OK" if foo is a directory
Message ID:
f86994700812141828l109f830ew38e86e060e676bb5@mail.gmail.com
On Sun, Dec 14, 2008 at 2:30 PM, via RT Ben Crowell <
perlbug-followup@perl.org> wrote:

> # New Ticket Created by  Ben Crowell
> # Please include the string:  [perl #61362]
> # in the subject line of all future correspondence about this issue.
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61362 >
>
>
> Hi,
>
> I'd like to report a bug in perl, which is that if foo is a directory,
> "perl -c foo" always responds with "foo syntax OK." (The most common
> way this comes up is if you have a program foo that lives in a directory
> called foo, so you intended "perl -c foo/foo," but accidentally did
> "perl -c foo" instead.)
>
>        Regards,
>
>        Ben
>
> -------------------------------
> output of perl -V
> -------------------------------
> Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
>  Platform:
>    osname=linux, osvers=2.6.24-15-server,
> archname=x86_64-linux-gnu-thread-multi


FYI, it could be one of ActivePerl's patches, but Windows actually gets it
right. Tested with both 5.8.8 and 5.10.0. (perl -v below)

>perl -c foo
Can't open perl script "foo": Permission denied


This is perl, v5.8.8 built for MSWin32-x86-multi-thread
(with 12 registered patches, see perl -V for more detail)

Copyright 1987-2007, Larry Wall

Binary build 824 [287188] provided by ActiveState http://www.ActiveState.com
Built Sep  3 2008 11:14:55


This is perl, v5.10.0 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2007, Larry Wall

Binary build 1001 [283495] provided by ActiveState
http://www.ActiveState.com
Built Dec 18 2007 08:46:15

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About