On Thu, Apr 05, 2018 at 12:55:21PM +0900, Jun T wrote: > > > 2018/04/02 7:10, Eitan Adler 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'. > bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.2.3 bz2lib/1.0.6 yes :) Bapt