www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_CQ,TW_QP,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <2BF01EB27B56CC478AD6E5A0A28931F20143776D@A1DAL1SWPES19MB.ams.acs-inc.net> |
References: | <20100817082041 DOT GA16295 AT calimero DOT vinschen DOT de> <2BF01EB27B56CC478AD6E5A0A28931F20143776D AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net> |
Date: | Tue, 17 Aug 2010 14:58:27 +0200 |
Message-ID: | <AANLkTikvCWWBiRAMxdkBRTe3OSb=8qWjEewncaUZU1Nw@mail.gmail.com> |
Subject: | Re: Existence check fails on Cygwin Perl |
From: | Reini Urban <rurban AT x-ray DOT at> |
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 |
2010/8/17 Nellis, Kenneth <Kenneth DOT Nellis AT acs-inc DOT com>: >> From: Corinna Vinschen >> On Aug 16 18:13, Andrew DeFaria wrote: >> > =A0This is strange. I usually tend to use Cygwin's Perl as it is more >> > full featured and works well but there are times when I am forced to >> > use "cqperl" - a Perl that comes with Rational Clearquest - at my >> > clients. Here it seems that Cygwin's Perl utterly fails the test >> > where as cqperl - a derivative of ActiveuuState - works. >> > >> > This is using the existence check (-e) for a file. The file happens >> > to be on a share thus we are using UNC notation. It doesn't even >> > matter if "server" is a real server or not, nor whether the share >> > and path exist. Use anything you like. In fact use "server" and >> > "path" and "file". Either way Cygwin's Perl reports that the file >> > exists even when it doesn't, or the path is wrong or even if the >> > server does not exist! >> > > <snip> >> >> I can not reproduce your problem. =A0I used "\\\\server\\path\\file" >> unchanged, as well as valid server and share names and just a >> non-existant file name. =A0In both cases the script prints "false". >> And it prints "true" for an existing file, just as expected. >> >> BLODA? >> >> >> Corinna > > FWIW, I was able to reproduce the OP's results, both with Cygwin's > Perl 5.10.1 and cqperl v5.8.6. I hadn't had any BLODA issues to > date. Sure. You need a recent cygwin snapshot to get it fixed. http://www.cygwin.com/ml/cygwin/2010-06/msg00049.html http://cygwin.com/snapshots/ $ [ -e //server/junk ] && date $ uname -a CYGWIN_NT-6.1 ATGRZWN503050 1.7.6s(0.230/5/3) 20100816 13:53:13 i686 Cygwin --=20 Reini Urban -- 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 |