mirror of
https://github.com/xroche/httrack.git
synced 2026-06-16 07:13:45 +03:00
Running the suite on macOS surfaced two GNU/Linux assumptions. The test harness there resolves $(BASH) to /bin/sh (POSIX mode), and macOS ships BSD userland, so: - 01_engine-cache used "du -sb"; the -b (apparent bytes) flag is GNU-only and BSD/macOS du rejects it, leaving an empty size and an "integer expression expected" error. Switch to portable "du -sk" (1024-byte units); block-allocated size is an upper bound, fine for a ceiling. - 02_manpage-regen used diff with process substitution, which a POSIX /bin/sh does not parse. Stage the stripped inputs in temp files instead. Both now pass under dash as well as bash, on Linux and macOS. Signed-off-by: Xavier Roche <roche@httrack.com>