This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: .exe magic reloaded 2


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

Al

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]