Skip to main content

Module compat

Module compat 

Source
Expand description

Compatibility links: when the binary is invoked under another tool’s name (through a symlink), it behaves as that tool, with that tool’s flags, messages and exit codes, not stuffr’s.

Modules§

bzip2
The bzip2 / bunzip2 / bzcat family: stuffr behaving as bzip2 1.0.8.
bzip2recover
bzip2recover: stuffr behaving as bzip2recover 1.0.8.
gzip
The gzip family (gzip, gunzip, zcat, gzcat): stuffr behaving as the platform’s own gzip.
links
stuffr install-links: opt-in compatibility symlinks.
xz
The xz family (xz, unxz, xzcat, lzma, unlzma, lzcat): stuffr behaving as XZ Utils 5.8.4’s xz.
zstd
The zstd family (zstd, unzstd, zstdcat, zstdmt): stuffr behaving as zstd 1.5.7’s command line tool.

Enums§

Family
A family of tools the binary can impersonate.

Functions§

dispatch
Run the compatibility tool args[0] names, or return None when it names none (the caller then behaves as stuffr). The tool gets the arguments after args[0]; bzip2recover, which prints its argv[0] verbatim, gets args[0] as well.
family_for
The family and canonical name for an argv[0], or None when it is not a compatibility name. Only the final path component counts, and on Windows a trailing .exe is ignored.
names
Every compatibility name, from the one table family_for also reads.