X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 17 Aug 2010 12:03:19 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Existence check fails on Cygwin Perl
Message-ID: <20100817100319.GH11340@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <010016E11294264BB30D58894AB4040D02B1FE18@de010369.de.ina.com> <20100817090627.GA16800@calimero.vinschen.de> <AANLkTi=gBWgzXdkADZohVkezC9SWnHBsnFGW8Vr7-=az@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <AANLkTi=gBWgzXdkADZohVkezC9SWnHBsnFGW8Vr7-=az@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Aug 17 10:47, Andy Koppe wrote:
> On 17 August 2010 10:06, Corinna Vinschen wrote:
> > On Aug 17 10:54, Lemke, Michael  SZ/HZA-ZSB2 wrote:
> >> On 17 Aug 2010 10:20:41 +0200, Corinna Vinschen wrote:
> >> >On Aug 16 18:13, Andrew DeFaria wrote:
> >> >> $ cat test.pl'
> >> >> use warnings;
> >> >> use strict;
> >> >>
> >> >> # Obviously non-existant server and file
> >> >> my $file = "\\\\server\\path\\file";
> >> >>
> >> >> # Check for existance returns true for Cygwin - false for ActiveState
> >> >> if (-e $file) {
> >> >>   print "true\n"
> >> >> } else {
> >> >>   print "false\n"
> >> >> }
> >> >> $ perl test.pl
> >> >> true
> >> >> $ cqperl test.pl
> >> >> false
> >> >> $
> >> >
> >> >I can not reproduce your problem.  I used "\\\\server\\path\\file"
> >> >unchanged, as well as valid server and share names and just a
> >> >non-existant file name.  In both cases the script prints "false".
> >> >And it prints "true" for an existing file, just as expected.
> >>
> >> Hm, I can reproduce it and it's even simpler, no perl involved:
> >>
> >> pc> [ -e //server/junk ] && date
> >> Tue Aug 17 10:28:14 WEDT 2010
> >> pc> ls -ls //server/junk
> >> 0 -rw-r--r-- 1 lemkemch Domain Users 0 Dec  1  2006 //server/junk
> >>
> >> Here's no server called server.
> >
> > I can't reproduce, but I'm already running Cygwin 1.7.6.  I have a vague
> > memory that we already had a report along these lines and that I patched
> > this at one point...  I *think* that's what is successfully hidden
> > behind the "Fix erroneous handling of devices in path checking." message
> > in the announcement...
> 
> http://www.cygwin.com/ml/cygwin/2010-06/msg00049.html

Oh, right, thanks.  I have to refurbish my memory, I guess.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

