Bug in zip with -j option

Volker Quetschke quetschke@scytek.de
Fri May 16 07:54:00 GMT 2003


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 251 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20030516/acd8ea9e/attachment.sig>


More information about the Cygwin-apps mailing list