-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add --format
flag
#134
Comments
+1 i wanted to decompress a zstd initrd but couldn't since it has no extension
|
@Artturin can you try with master branch? It should infer the extension |
I will be attempting to solve this |
rev 308b8f7
--format gives
|
You're right, I had This is totally broken and needs to be addressed. |
this will require rework on the error handling part, in a medium sized PR, so I'm removing it from the 0.4 milestone just so that we can make the next release |
Problem
Currently, we don't have control of what extensions should be used in compression or decompression, we rely on automatic extension detection.
Using
archive.tar.gz.xz
as an example, you might want to decompress it into:That is, decompress it partially, or just decompress a file without extensions.
Workaround
Decompress and compress it again.
Note that the shell expansion .* is necessary in case you have any hidden files.
New solution
--format
flag that overwrites the automatic format detection system.We already have detection on partial compression:
Ouch detects it should only partially compress the
.xz
part, and triggers it, I think this behavior is useful but can be triggered by accident.We should leave this detection only as a warning to tell the users that if they want to partially compress, they should use the
--format
flag.The text was updated successfully, but these errors were encountered: