Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 11 Mar 2005 12:00:33 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: Problem with the "-r" test in Perl 5.8.6-4 In-Reply-To: <20050311081809.GE20798@cygbert.vinschen.de> Message-ID: References: <20050311081809 DOT GE20798 AT cygbert DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 11 Mar 2005, Corinna Vinschen wrote: > On Mar 10 20:44, Igor Pechtchanski wrote: > > Hi, > > > > I'm having trouble with Perl 5.8.6-4 under Cygwin 1.5.12. > > [snip] > > $ perl -e 'exit !(-r $ARGV[0])' /cygdrive/c/Program\ Files/ThinkPad/Utilities && echo "yep" > > $ test -r /cygdrive/c/Program\ Files/ThinkPad/Utilities && echo "yep" > > yep > > > > Is this behavior by design, or does perl actually check ACLs and something > > is wrong with my installation? > > It looks like perl is using a homebrew test instead of using access(2). > At least that would explain the behaviour. Yeah, that's what I thought too. Gerrit? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/