Bug 11581

Summary: unzip -l output differ
Product: Busybox Reporter: Ale <ale5000>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: minor CC: ale5000, busybox-cvs
Priority: P5    
Version: 1.30.x   
Target Milestone: ---   
Hardware: All   
OS: All   
Host: Target:
Build:

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