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 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: <20100915120315 DOT GQ15121 AT calimero DOT vinschen DOT de> <20100915135030 DOT GR15121 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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