Skip to content

extension checking is too strict #198

Description

@jheidemann

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions