delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,TW_CQ,TW_QP,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <20100817090627.GA16800@calimero.vinschen.de> |
References: | <010016E11294264BB30D58894AB4040D02B1FE18 AT de010369 DOT de DOT ina DOT com> <20100817090627 DOT GA16800 AT calimero DOT vinschen DOT de> |
Date: | Tue, 17 Aug 2010 10:47:44 +0100 |
Message-ID: | <AANLkTi=gBWgzXdkADZohVkezC9SWnHBsnFGW8Vr7-=az@mail.gmail.com> |
Subject: | Re: Existence check fails on Cygwin Perl |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 17 August 2010 10:06, Corinna Vinschen wrote: > On Aug 17 10:54, Lemke, Michael =C2=A0SZ/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 =3D "\\\\server\\path\\file"; >> >> >> >> # Check for existance returns true for Cygwin - false for ActiveState >> >> if (-e $file) { >> >> =C2=A0 print "true\n" >> >> } else { >> >> =C2=A0 print "false\n" >> >> } >> >> $ perl test.pl >> >> true >> >> $ cqperl test.pl >> >> false >> >> $ >> > >> >I can not reproduce your problem. =C2=A0I used "\\\\server\\path\\file" >> >unchanged, as well as valid server and share names and just a >> >non-existant file name. =C2=A0In 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 =C2=A01 =C2=A02006 //server/j= unk >> >> Here's no server called server. > > I can't reproduce, but I'm already running Cygwin 1.7.6. =C2=A0I have a v= ague > memory that we already had a report along these lines and that I patched > this at one point... =C2=A0I *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 -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |