This is the mail archive of the cygwin-apps@cygwin.com 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]

Bug in zip with -j option


Dear zip maintainer, hi Charles ;-),

I foung a small problem in the zip program.

$ cygcheck -c zip
Cygwin Package Information
Package              Version
zip                  2.3-2

When you try:
$ zip -j ziptest c:/cygwin/cygwin.bat

you get:
$ unzip -l ziptest.zip
Archive:  ziptest.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
       55  02-26-02 11:08   cygwin.bat
 --------                   -------

But
$ zip -j ziptest2.zip c:\\cygwin\\cygwin.bat

leads to:
$ unzip -l ziptest2.zip
Archive:  ziptest2.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
       55  02-26-02 11:08   c:\cygwin\cygwin.bat
 --------                   -------

The -j option doesn't strip the directories when you use backslashes.

The native W32 zip from InfoZip works correctly with both directory
separators.

Thanks

Volker

--
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

Attachment: pgp00000.pgp
Description: PGP signature


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