delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/21/07:34:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: AW: filename does not exist but test gives true back
Date: Wed, 21 Apr 2004 13:33:21 +0200
Message-ID: <AE9593E6D161544D82CEFCA0552EEAAE011D87A5@ebexbn01.dpeb.de>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: cygwin DOT 20 DOT job AT spamgourmet DOT com
To: cygwin AT cygwin DOT com

> -----Ursprüngliche Nachricht-----
> Von: Corinna Vinschen - corinna-cygwin AT cygwin DOT com
> [mailto:+cygwin+job+2760557170.corinna-cygwin#cygwin DOT com AT spamgourmet DOT com]
> Gesendet: Mittwoch, 21. April 2004 13:10
> An: cygwin AT cygwin DOT com
> Betreff: Re: filename does not exist but test gives true back (cygwin:
> message 2 of 20)
> 
> On Apr 21 12:38, cygwin DOT 20 DOT job AT spamgourmet DOT com wrote:
> > Hi folk, I have ported a bash-script from UNIX to cygwin and have the
> Problem that test says that the file exist but there is no file with the
> given Name.
> >
> > Here come some command to reproduce the problem.
> >
> >
> > Wed Apr 21  12:36:00  556 ls -al;  if [ -e "load_evu.ctl." ] ;then echo
> "load_evu.ctl." exists;fi;
> > insgesamt 1
> > drwxr-xr-x+   2 F.Braunb Dom?nen-        0 21. Apr 12:28 .
> > drwxr-xr--+  12 F.Braunb ????????        0 21. Apr 12:19 ..
> > -rw-r--r--    1 F.Braunb Dom?nen-      285 21. Apr 12:35 load_evu.ctl
> > load_evu.ctl. exists
> >
> > When I go on in the script and working with a file which does not exist
> I run in trouble.
> >
> > Any idea how to fix it that test says the file exists?
> 
> Trailing dots are silently ignored by Windows.
> 
The problem is hat I passed the filename with the trailing dot to a Windows-Program which produced errors and corrupted the file without trailing dot.

Any idea how to fix it?

Franz


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019