Mail Archives: cygwin/2001/04/06/12:57:54
> -----Original Message-----
> From: Larry Hall (RFK Partners, Inc) [mailto:lhall AT rfk DOT com]
> Sent: Thursday, April 05, 2001 8:50 PM
> To: Randall R Schulz; cygwin AT cygwin DOT 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 AT microprocess DOT com
b DOT dautrevaux AT usa DOT net
--------------------------------------------
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -