delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/15/10:07:50

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 15 Sep 2010 16:07:21 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: .exe magic reloaded 2
Message-ID: <20100915140721.GS15121@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <AANLkTimrrA-cW8t9u=axyxQt+AyHcckybVRjksFYM6Bg AT mail DOT gmail DOT com> <20100915120315 DOT GQ15121 AT calimero DOT vinschen DOT de> <AANLkTimjDFH39z=cHH+ZTYPAg2OOuC80yzQ4i0TT=pN=@mail.gmail.com> <20100915135030 DOT GR15121 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20100915135030.GR15121@calimero.vinschen.de>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Sep 15 15:50, Corinna Vinschen wrote:
> On Sep 15 15:38, Al wrote:
> > >
> > > True.  In theory we would have to remove .exe and .lnk suffixes from
> > > directory listings as well, but that was never the case in Cygwin.
> > >
> > >
> > 
> > That's the way it has always been... isn't a strong argument in development.
> 
> It wasn't an argument, it was just a description of the state.
> 
> > I guess there are some other reasons to do it this way. If not one
> > should really consider to improve it to make Cygwin still more Unix
> > compatible.
> 
> I'd love to drop the .exe suffix from readdir(), I'm just not sure what
> unwelcome side-effects we create.

For instance, this one:  Either we always remove the .exe suffix from
a file, or we have to check for each file with a .exe suffix, whether
it's executable or not.

In the first case, you get something like this:

  $ echo foo > bar.exe
  $ ls bar*
  bar
  $

Fortunately:

  $ ls bar.exe
  bar.exe

However, dependent of the intelligence of a script or application, the
suddenly missing suffix could result in trouble.

In the second case, the extra test for executability would be a big
performance hit, especially if you call `ls /usr/bin'.  And you know how
we already have a lot of users kicking our asses for Cygwin's
performance.

So, whatever we do will result in problems for another group of users.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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