xvoland / Extract

Bash/Zsh function for extract: .zip, .rar, .bz2, .gz, .zlib, .tar, .tbz2, .tgz, .Z, .7z, .xz, .exe, .tar.bz2, .tar.gz, .tar.xz, etc.
MIT License
468 stars 83 forks source link

gzip: stdin: not in gzip format #30

Closed ilioni closed 1 year ago

ilioni commented 1 year ago

If .tar not compressed whith gzip:

zip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
touch hello.txt
tar -cvf foo.tar hello.txt
tar -czvf foo2.tar hello.txt
file foo*
foo.tar: POSIX tar archive (GNU)
foo2.tar:  gzip compressed data, from Unix, original size modulo 2^32 10240
xvoland commented 1 year ago

This has nothing to do with extract