utils-std version 0.0.5 - 2025-06-02 = Highlights = == Fixed == - Cross-compilation, accidentally used ./cmd/ executables in Makefile - test(1) now uses proper collation for '>' and '<' operators - echo(1) no longer errorneously prints warning for unknown options - printf(1) now skips leading double-dash when there is multiple arguments - Proper error messages for unknown long options even when using getopt_long == Added == - chown: support for --reference option = Full changelog = Haelwenn (lanodan) Monnier (34): lib/humanize: handle negative num test-lib/t_humanize: new lib/humanize: fix off-by-one for max prefix cmd/sleep: handle nanosleep errno != EINTR cmd/timeout: warning on nanosleep errno != EINTR cmd/expr: use snprintf instead of length estimate + sprintf lib/iso_parse -> lib/datetime_parse lib/iso_parse.mdoc -> lib/datetime_parse.mdoc lib/datetime_parse: Allow any amount of space between ISO date and time cmd/mv: handle errors from child_destdir.fd = openat(…) cmd/base64: make sure uuencode mainloop stops after EOF cmd/getconf: only free at end of -a loop lib/consent: call free() regardless of len Makefile: don't use ./cmd/ executables by default cmd/test: Use strcoll(3) instead of strcmp(3) for '>' and '<' operators test-cmd/test.sh: add test case for 0 arguments cmd/touch: properly check -t second separator location cmd/wc: optimise -l without -w Handle unknown long-option gracefully when getlopt_long is available cmd/chmod: fix --reference case still handled without getopt_long posix_utilities.txt: acknowledge POSIX.1-2024 new "intrinsic utilities" cmd/chown: Add support for --reference README.md: Add note about keeping dependencies to a minimum test-cmd/mktemp.sh: workaround NetBSD bug #59443 configure.d/getopt_long.c: do not pass NULL to puts cmd/echo: don't print warning on unknown option, echo has none cmd/echo: write escape() function similar to cmd/printf to avoid malloc configure.d/sendfile_linux.c: clear -Wnon-literal-null-conversion from clang test-cmd/pathchk-getlimits: clear -Wformat warning cmd/printf: rewrite, fixing documented bugs and getting rid of VLA configure: Add -Wvla when supported cmd/printf: skip leading double-dash when there is multiple arguments cmd/{echo,printf}: rename 'escape' decoding function to 'unescape' cmd/printf: Add support for %q specifier