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

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT
X-Spam-Check-By: sourceware.org
Date: Wed, 15 Sep 2010 21:34:09 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <1243659800.20100915213409@mtu-net.ru>
To: Al <oss DOT elmar AT googlemail DOT com>, cygwin AT cygwin DOT com
Subject: Re: .exe magic reloaded 2
In-Reply-To: <AANLkTimo=wkaoCOmr3SPqEJ1yLpMZBg1Dwy=hNs34b9E@mail.gmail.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> <20100915140721 DOT GS15121 AT calimero DOT vinschen DOT de> <AANLkTimo=wkaoCOmr3SPqEJ1yLpMZBg1Dwy=hNs34b9E AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes
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

Greetings, Al!

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

May I point to the fact that not only binary files could be executable?
Shell(both), Perl, PHP scripts...

(Wish we could set "short" file name longer than 8.3 ... that would be
wonderful and semi-transparent solution...)


--
WBR,
 Andrey Repin (anrdaemon AT freemail DOT ru) 15.09.2010, <21:21>

Sorry for my terrible english...


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