crabz icon indicating copy to clipboard operation
crabz copied to clipboard

Feature request: add --no-name flag

Open rhpvorderman opened this issue 2 years ago • 3 comments

By default the gzip header saves a NULL-terminated filename and a timestamp. However, having these results in non-reproducible output for the same content.

Therefore pigz, gzip and igzip all feature a --no-name flag in order to not include the filename and set the timestamp in the gzip header to 0.

It would be great if crabz could have the same flag for inclusion in xopen. (https://github.com/pycompression/xopen). This library enhances python compression speed by piping through external programs and since a few releases back always creates reproducible output by default.

rhpvorderman avatar Feb 02 '23 09:02 rhpvorderman

That seems like a great feature all around! I'll try to get that added in the next week or so. Thanks for making an issue!

sstadick avatar Feb 02 '23 16:02 sstadick

crabz does in fact write zeros to the header, despite not having a --no-name flag, thus creating reproducible outputs. This is a limitation which is actually somewhat advantageous in this case, although this feature is definitely still desirable.

camlloyd avatar Mar 24 '24 23:03 camlloyd

Ah, good to know, thanks!

rhpvorderman avatar Mar 25 '24 06:03 rhpvorderman