facebook/zstd

better gzip(1) command line option compatibility: Support -l for gzip files

オープン

#3,037 opened on 2022/01/30

 (2 件のコメント) (1 件のリアクション) (0 人の担当者)C (2,481 件のフォーク)batch import
feature requesthelp wantedlong-term

Repository metrics

Stars
 (27,100 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Is your feature request related to a problem? Please describe. I'm experimenting with the "gzip" symlink on zstd binary and notice that there these compatibility options missing:

-n --no-name When compressing, do not save the original file name and time stamp by default. (The original name is always saved if the name had to be truncated.)

-l --list For each compressed file, list the following fields: compressed size: size of the compressed file uncompressed size: size of the uncompressed file ratio: compression ratio (0.0% if unknown) uncompressed_name: name of the uncompressed file

While listing is available as an option, it just aborts with an error message:

zstd --format=gzip -l *gz
Frames  Skips  Compressed  Uncompressed  Ratio  Check  Filename
File "test-0.1.0.tar.gz" not compressed by zstd

Describe the solution you'd like

provide more drop-in compatibility when used via a symlink to "gzip" with the gzip command line options, as documented here (and elsewhere): https://linux.die.net/man/1/gzip

コントリビューターガイド