public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* unzip surprise: foo.exe hides foo/ ?
@ 2013-05-31  1:58 Dan Kegel
  2013-05-31  4:23 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Kegel @ 2013-05-31  1:58 UTC (permalink / raw)
  To: cygwin

It seems that if a zipfile includes both foo.exe and foo/, unzipping
the zipfile fails like this:

inflating: /cygdrive/c/yobuild/src/gtest/msvc/gtest/Debug/gtest_prod_test.exe
checkdir error:
/cygdrive/c/yobuild/src/gtest/msvc/gtest/Debug/gtest_prod_test exists
but is not directory
                 unable to process
yobuild/src/gtest/msvc/gtest/Debug/gtest_prod_test/.

unzip then exits with nonzero status.

Is that confusion expected?  It kind of looks like unzip needs to be
aware of the leaky abstraction...

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: unzip surprise: foo.exe hides foo/ ?
  2013-05-31  1:58 unzip surprise: foo.exe hides foo/ ? Dan Kegel
@ 2013-05-31  4:23 ` Larry Hall (Cygwin)
  0 siblings, 0 replies; 2+ messages in thread
From: Larry Hall (Cygwin) @ 2013-05-31  4:23 UTC (permalink / raw)
  To: cygwin

On 5/30/2013 9:50 PM, Dan Kegel wrote:
> It seems that if a zipfile includes both foo.exe and foo/, unzipping
> the zipfile fails like this:
>
> inflating: /cygdrive/c/yobuild/src/gtest/msvc/gtest/Debug/gtest_prod_test.exe
> checkdir error:
> /cygdrive/c/yobuild/src/gtest/msvc/gtest/Debug/gtest_prod_test exists
> but is not directory
>                   unable to process
> yobuild/src/gtest/msvc/gtest/Debug/gtest_prod_test/.
>
> unzip then exits with nonzero status.
>
> Is that confusion expected?

Yes, it is expected.  There's lots of discussions about transparently
handling the .exe extension in the email archives and the ramifications
if you're interested in more details.  It's exciting reading. ;-)

-- 
Larry

_____________________________________________________________________

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-31  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-31  1:58 unzip surprise: foo.exe hides foo/ ? Dan Kegel
2013-05-31  4:23 ` Larry Hall (Cygwin)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).