Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter "-c" ignored if it last (gzip incompatible) #51

Closed
ktrace opened this issue Nov 29, 2017 · 2 comments
Closed

Parameter "-c" ignored if it last (gzip incompatible) #51

ktrace opened this issue Nov 29, 2017 · 2 comments

Comments

@ktrace
Copy link

ktrace commented Nov 29, 2017

In original gzip

gzip -c -d foo.tar.gz > bar.tar

and

gzip -d foo.tar.gz -c > bar.tar

work identical: keep foo.tar.gz unchanged, create bar.tar as uncompressed .tar

pigz -c -d foo.tar.gz > bar.tar

work as needed

pigz -d foo.tar.gz -c > bar.tar

ignore "-c", bar.tar empty foo.tar.gz became foo.tar

see ib/xarchiver#40

@madler
Copy link
Owner

madler commented Nov 29, 2017

pigz is working as documented, where options are processed on the command line in order with the file names. Options affect files to the right of the options, and options and operations can be changed and reversed as they are processed left to right.

@madler madler closed this as completed Nov 29, 2017
@ib
Copy link

ib commented Nov 30, 2017

pigz is working as documented, where options are processed on the command line in order with the file names.

It's obviously incompatible with any other single file compressor then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants