This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: filename does not exist but test gives true back
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 21 Apr 2004 13:09:55 +0200
- Subject: Re: filename does not exist but test gives true back
- References: <AE9593E6D161544D82CEFCA0552EEAAE011D878C@ebexbn01.dpeb.de>
- Reply-to: cygwin at cygwin dot com
On Apr 21 12:38, cygwin.20.job@spamgourmet.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.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Co-Project Leader mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/