[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] GNU tar 1.30 fails to extract zip file
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] GNU tar 1.30 fails to extract zip file |
Date: |
Sat, 02 Mar 2019 16:29:16 +0200 |
Dr. Axel Braun <address@hidden> ha escrit:
> I used tar for a while now to extract zip files with the command
Tar cannot be used to extract zip files. It can, however, be used to
extract tar archives *compressed with zip command*, provided that
certain conditions are met (see below).
> tar --strip-components 3 -xzf /tmp/${lang_file}
This command can succeed only if:
1) /tmp/${lang_file} is a valid tar archive compressed with zip
and
2) It (zip file, not the archive) contains only one entry. In other
words, "unzip -l /tmp/${lang_file} | tail -n 1" shows something like:
522240 1 file
Regards,
Sergey