delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/05/15:42:18

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Lotus-FromDomain: JPMORGAN AT SMTP
From: "Noel L Yap" <yap_noel AT jpmorgan DOT com>
To: jmerz42 AT earthlink DOT net
cc: Cygwin AT Cygwin DOT Com
Message-ID: <85256A25.006AE78A.00@nyc-ntgw-n01.ny.jpmorgan.com>
Date: Thu, 5 Apr 2001 15:27:42 -0400
Subject: Re: OT pondering (WAS: Re: Trailing Periods on File Names)
Mime-Version: 1.0

My guess:  DOS filenames are composed of two parts -- the main part and the
extension.  When parsing filenames, you look for the '.'.  Anything before the
'.' is the main part; anything after it is the extension.  Files ending with '.'
just don't have an extension.

Noel




jmerz42 AT earthlink DOT net on 2001.04.05 15:02:55

Please respond to jmerz42 AT earthlink DOT net

To:
cc:   cygwin AT cygwin DOT com (bcc: Noel L Yap)
Subject:  OT pondering (WAS: Re: Trailing Periods on File Names)




Larry Hall (RFK Partners, Inc) wrote:

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

I agree with that, having seen this before, but I am curious... It seems that
such functionality did not get there by accident (I cannot think of a way to
ignore characters in a filename without some _extra_ coding), so it must have
been done for some purpose.  Yet I cannot for the life of me imagine what
benefit this produces, or what fault it would circumvent.  Anyone have ideas
as to this?






--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple








This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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