delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/15/13:08:12

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk
Message-ID: <4C90FD69.5020100@cygwin.com>
Date: Wed, 15 Sep 2010 13:07:53 -0400
From: "Larry Hall \(Cygwin\)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: .exe magic reloaded 2
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> <20100915140721 DOT GS15121 AT calimero DOT vinschen DOT de> <AANLkTimo=wkaoCOmr3SPqEJ1yLpMZBg1Dwy=hNs34b9E AT mail DOT gmail DOT com>
In-Reply-To: <AANLkTimo=wkaoCOmr3SPqEJ1yLpMZBg1Dwy=hNs34b9E@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 9/15/2010 12:23 PM, Al wrote:
>>
>> 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.
>
> Probably without checking it. No sane program would use the .exe
> suffix as extension of a mere textfile.
>
> What would be the ideal approach, without thinking of backward issues?
>
> How about this?
>
> 1.) When a file is made executable .exe is appended, but only visible
> from Windows API.
> 2.) When the last execution bit is removed the .exe suffix is also removed.
> 3.) Using the .exe suffix from the Cygwin API always gives an error.
> 4.) Hence: You never see this suffix on the Cygwin API.

How would this work with non-Cygwin programs?  They wouldn't be handled under
(1).

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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