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:15Thread Previous | Thread Next