Expand description
The gzip family (gzip, gunzip, zcat, gzcat): stuffr behaving as
the platform’s own gzip.
Two personalities share the member layer (member) and the format
sniffer (sniff):
- GNU (
gnu/): GNU gzip 1.15, written from its manual,--helpand black-box observation of the binary only. GNU gzip is GPLv3 and its source is never read. Itsgunzipandzcatare shell scripts that rungzip -dandgzip -dc, so every message saysgzip:;gzcatbehaves aszcat. The module doc ofgnu/mod.rslists the behaviours reproduced and the deviations. - BSD (
bsd/): Apple’s gzip 487, ported fromfile_cmds(BSD-2-Clause,LICENSE-gzip-bsd); its compressed bytes are Apple’s on the C tier. The module doc ofbsd/mod.rslists the behaviours reproduced and the deviations.
The flavour is default_flavour unless STUFFR_GZIP_FLAVOR says gnu
or bsd; run reads the variable once, before any argument.
Anything else in it is refused, exit 1, in stuffr’s own words (neither
reference has the variable).
Enums§
- Flavour
- Which reference the gzip family follows.
Functions§
- default_
flavour - The flavour a build uses when
STUFFR_GZIP_FLAVORis unset or empty: BSD on Apple platforms and the BSDs, whose gzip is the FreeBSD/NetBSD one; GNU everywhere else, Windows included. - run
- Entry point for
gzip,gunzip,zcatandgzcat;nameis the canonical invoked name andargsthe arguments afterargv[0].