Hi. I know it's documented (see my report). I think that a change in the
behavior would help pipelines a lot and make the behavior more consistent.
IMHO.

Il mer 9 ott 2024, 16:00 Sergey Poznyakoff <g...@gnu.org.ua> ha scritto:

> Hi Vincenzo,
>
> That's a normal and documented behavior.  Quoting GNU Tar Manual,
> subsection 8.1.1 "Creating and Reading Compressed Archives":
>
>    The only case when you have to specify a decompression option while
>    reading the archive is when reading from a pipe or from a tape drive
>    that does not support random access.  However, in this case GNU 'tar'
>    will indicate which option you should use.  For example:
>
>      $ cat archive.tar.gz | tar tf -
>      tar: Archive is compressed.  Use -z option
>      tar: Error is not recoverable: exiting now
>
> Regards,
> Sergey
>
>
>

Reply via email to