Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Teach 'tar' to support more file types
- X-seq: zsh-workers 42599
- From: Eitan Adler <lists@xxxxxxxxxxxxxx>
- To: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>
- Subject: Re: Teach 'tar' to support more file types
- Date: Thu, 5 Apr 2018 23:53:02 -0700
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vRQc8Be66X/hM9qJIDxau7PTl2jL/5biL/Gq3KQ9M3U=; b=BIpUjBJpoDawPfuugt2n5ziREy4Bijh8u2QPa2VksZeoF+FibV/zl1mpMNLxwsBNwi MaNaE1D/aUeaaHnQv6hlsMoomRVkKxAWJXWXYIoXMvLaqwxZAA+47Ncb2tjGvD6jVvP8 8VQuvXtv0vcvc5XxDcjqkXBXQYIvuMZGXUf/w=
- In-reply-to: <7060C6C4-6721-4878-B8BC-224346633816@kba.biglobe.ne.jp>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAF6rxg=4Uj3_KdWLwy2vWNvEk6vBr+3YtGrAjvAwQOCUN_H_=Q@mail.gmail.com> <7060C6C4-6721-4878-B8BC-224346633816@kba.biglobe.ne.jp>
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