Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Tue Mar 2 20:17:00 GMT 2010

On Tue, Mar 02, 2010 at 01:12:47PM -0700, Eric Blake wrote:
>According to Corinna Vinschen on 3/2/2010 12:41 PM:
>>>> should create "bar.exe" only if "foo" really resolved to "foo.exe" to
>>>> begin with?  In other words, what is the use case where someone wants
>>>> "foo" to become "bar.exe", but "foo.exe" did not exist, and they called
>>>> rename("foo","bar") instead of rename("foo","bar.exe")?
>>> I thought the idea is that bar becomes bar.exe if we know that foo is
>>> really a PE-COFF binary.
>> That's what `strip foo' does.  It creates a temp file, writes the
>> stripped content of the executable into the temp file, removes the
>> original and then calls rename(temp_filename, "foo").  That's the
>> most common situation which (well...) requires to append the .exe
>> suffix automatically.
>Would it be easier to teach strip to always append .exe, seeing as how
>that is a program that KNOWS it will be dealing with PE-COFF files?

Sure, if we decided that this was the best way to handle this.


More information about the Cygwin-developers mailing list