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

extension checking is too strict #198

Open
jheidemann opened this issue Mar 8, 2025 · 0 comments
Open

extension checking is too strict #198

jheidemann opened this issue Mar 8, 2025 · 0 comments

Comments

@jheidemann
Copy link

jheidemann commented Mar 8, 2025

I was surprised dropping snzip in with other compressors that it enforces filename extensions.

Thus:

echo foo | snzip -c >foo.sz; snzcat foo.sz

works. But

echo foo | snzip -c >foo.sz; mv foo.sz foo.sz~; snzcat foo.sz~

fails with error "foo.sz~ has unknown suffix".
However

snzcat <foo.sz~

will work fine, because it hides the filename from snzcat.

This behavior is stricter than gzip and xz, and it makes it hard to use snzip as a drop-in.

Perhaps a -f option could force compression, even if the filename is unrecognized?

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

1 participant