feat(file): add magic-byte detection and -h/-i mapping
Implements GNU coreutils compatibility for file:
- Magic-byte detection for ELF, PE32, gzip, zip, JPEG,
PNG, PDF, GIF, bzip2, xz, RAR, Java class, WebAssembly,
and Ogg before falling back to extension and
http.DetectContentType
- -h/--no-dereference: don't follow symlinks
- -L re-enables symlink dereference (last-wins)
- -i mime mode maps magic descriptions to specific MIME
types via magicMIME table
Custom magic file flags (-M, -m) are documented as
deferred since they require a libmagic-style DSL.
Refs: docs/posix2018/CONFORMANCE.md
Assisted-by: Claude Opus 4.7 via Claude Code
Signed-off-by: Xe Iaso <me@xeiaso.net>