Bug 11581 - unzip -l output differ
Summary: unzip -l output differ
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.30.x
Hardware: All All
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-31 01:32 UTC by Ale
Modified: 2019-01-03 21:31 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ale 2018-12-31 01:32:44 UTC
<BusyBox unzip>
Command: touch -t 197911300100.00 test.txt && zip -X test.zip test.txt && busybox unzip -l test.zip

Output:
Archive:  test.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  01/01/1980 00:00   test.txt
---------                     -------
        0                     1 file

<UnZip 6.00>
Command: touch -t 197911300100.00 test.txt && zip -X test.zip test.txt && ./unzip.exe -l test.zip

Output:
Archive:  test.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  01-01-1980 00:00   test.txt
 --------                     -------
        0                     1 files


There are 2 differences:
- Separator of date: "-" vs "/"
- Text: "file" vs "files"
Comment 1 Ale 2018-12-31 01:34:50 UTC
Sorry, I have reversed the outputs.
Consider them switched.
Comment 2 Ale 2018-12-31 01:38:56 UTC
Third change:
- There is one "-" less in the length column at the bottom
Comment 3 Ale 2019-01-03 21:31:57 UTC
I have done others test under linux, you can see them here: https://travis-ci.com/a5k-testing/unzip-test/builds/96233651