Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Teach 'tar' to support more file types



On 4 April 2018 at 20:55, Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>
>> 2018/04/02 7:10, Eitan Adler <lists@xxxxxxxxxxxxxx> wrote:
>>
>>    In libarchive based (BSD) tar implementations, all file types can be
>>    uncompressed, even without a filetype letter.  In GNU tar's case
>>    "recent" versions (for over 10 years) can do the same.
>>    As such, remove the check for tar type and just assume it works.
>
> We can't assume it works since there are many systems where tar requires
> explicit compression flags. Even on some BSDs (OpenBSD and NetBSD) tar
> is not based on libarchive.
>
> If the tar command is based on libarchive, we can detect it by using
> 'tar --version'.

This patch LGTM.


-- 
Eitan Adler



Messages sorted by: Reverse Date, Date, Thread, Author