Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <17B78BDF120BD411B70100500422FC6309E267@IIS000> From: Bernard Dautrevaux To: "'Larry Hall (RFK Partners, Inc)'" , Randall R Schulz , cygwin AT cygwin DOT com Subject: RE: Trailing Periods on File Names Date: Fri, 6 Apr 2001 18:37:24 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" > -----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. > >% > > > > > > >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