On 09/21/19 01:14 PM,
becky.ku...@gmail.com wrote:
> I have some queries about info zip which I just discovered:
>
> 1) The last two versions of zip I have are:
>
> 2013/07/24 04:47:10 107395 F:\usr\bin\zip.exe
>
> (OS/2 executable module built for kLIBC v0.6.4+)
>
> 2010/08/14 04:11:26 224844 F:\OS2_Apps\zip.exe
>
> (OS/2 executable module built with InnoTek GCC)
>
> However, even though they seem very different, and are compiled differently, they return the same version information:
>
> [F:\usr\bin]F:\usr\bin\zip.exe
> Copyright (c) 1990-2008 Info-ZIP
> Zip 3.0 (July 5th 2008). Usage:
>
> [F:\OS2_Apps]F:\OS2_Apps\zip.exe
> Copyright (c) 1990-2008 Info-ZIP
> Zip 3.0 (July 5th 2008). Usage:
>
> If any, what are the functional differences?
The version info is likely hardcoded and the porters never touched it.
Hopefully no functional differences, but really it depends on whether
the porters needed to touch anything and the toolchain, differences in
behaviour or bugs. When it comes to the toolchain, usually newer is better.
>
>
> 2) This discovery was precipitated when I was attempting to verify zip file integrity. Both these executables return:
>
> [G:\ZipBackup]F:\usr\bin\zip.exe -T ThinkPad_MR2_20190721.zip
> unzip: cannot find either "ThinkPad_MR2_20190721.zip" or "ThinkPad_MR2_20190721.zip".zip.
> test of ThinkPad_MR2_20190721.zip FAILED
>
> zip error: Zip file invalid, could not spawn unzip, or wrong unzip (original files unmodified)
>
> [G:\ZipBackup]F:\OS2_Apps\zip.exe -T ThinkPad_MR2_20190721.zip
> unzip: cannot find either "ThinkPad_MR2_20190721.zip" or "ThinkPad_MR2_20190721.zip".zip.
> test of ThinkPad_MR2_20190721.zip FAILED
>
> zip error: Zip file invalid, could not spawn unzip, or wrong unzip (original files unmodified)
>
> So, I checked an older info zip version:
>
> [G:\ZipBackup]D:\OS2\ZIP.EXE -T ThinkPad_MR2_20190721.zip
> ThinkPad_MR2_20190721.zip: found a preamble of 1825507506 bytes
> test of ThinkPad_MR2_20190721.zip OK
>
> [D:\os2]zip
> Copyright (C) 1990-2005 Info-ZIP
> Type 'zip "-L"' for software license.
> Zip 2.31 (March 8th 2005). Usage:
>
> What is up with this?
Bad zip, that's a huge preamble. I guess the older zip looks harder at
the file to try to correct for errors and it looks like the zip itself
was good, just hiding at the end of the file.
I believe there are newer versions of Zip v3 at Netlabs rpm repositories
(available as zips) and perhaps Paul's site.
I have,
6-12-18 2:02a 89,787 124 a--- unzip.exe
9-28-18 7:09a 110,449 124 a--- zip.exe
Dave