This is the mail archive of the cygwin-developers 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: 1.7.2?


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?

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


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