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]

Re: Bug in zip with -j option


Thanks for the bug report. Patches to correct this behavior will be gratefully considered. However, I don't have much interest in -- or time to -- personally tracking down increasingly obscure bugs that occur when using a unix zip executable (like cygwin's) with mswin-style paths.

But send me a patch, and I'll consider it.

--Chuck


Volker Quetschke wrote:


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




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