This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Trailing Periods on File Names
- To: "'Larry Hall (RFK Partners, Inc)'" <lhall at rfk dot com>, Randall R Schulz <rschulz at teknowledge dot com>, cygwin at cygwin dot com
- Subject: RE: Trailing Periods on File Names
- From: Bernard Dautrevaux <Dautrevaux at microprocess dot com>
- Date: Fri, 6 Apr 2001 18:37:24 +0200
> -----Original Message-----
> From: Larry Hall (RFK Partners, Inc) [mailto:lhall@rfk.com]
> Sent: Thursday, April 05, 2001 8:50 PM
> To: Randall R Schulz; cygwin@cygwin.com
> Subject: Re: Trailing Periods on File Names
>
>
> At 02:38 PM 4/5/2001, Randall R Schulz wrote:
> >Hi,
> >
> >I just discovered some odd behavior.
> >
> >Witness:
> >
> >% mkdir dir
> >% cd dir
> >% ls -l
> >total 0
> >% echo "I like Cygwin" >|File
> >% ls -l
> >total 0
> >-rw-r--r-- 1 randall None 15 Apr 5 11:31 File
> >%
> >% ls -l File.
> >-rw-r--r-- 1 randall None 15 Apr 5 11:31 File.
> >%
>
> <snip>
>
>
>
> >Curious, no? Perhaps this is a side-effect of the potential
> aliasing of suffix-less names and the same name with a ".exe" suffix?
>
>
> No, this is Windows madness. It ignores periods at the end
> of file names.
>
In fact Windows not exactly ignores periods at the end of file names:
writing a filename as "foo." asks windows NOT to search for "foo.exe" or
"foo.bat" IF it needs to execute the file... This is allows to execute "foo"
instead of "foo.exe" if both exist, just to add some more fun :-)
Regards,
Bernard
--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel: +33 (0) 1 47 68 80 80
Fax: +33 (0) 1 47 88 97 85
e-mail: dautrevaux@microprocess.com
b.dautrevaux@usa.net
--------------------------------------------
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple