From 51e6e87eaab9408356ca236b707cb7ebd4ca6a82 Mon Sep 17 00:00:00 2001 From: jutty Date: Fri, 28 Jun 2024 08:48:41 -0300 Subject: [PATCH] Add date nanoseconds portability note to docs --- docs/portability.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/portability.md b/docs/portability.md index c9a2990..a469d45 100644 --- a/docs/portability.md +++ b/docs/portability.md @@ -13,6 +13,7 @@ Below is a list of assumptions made about what your system supports: - `find` - `sed` - `date` with nanoseconds as `%N` + - While nanoseconds support in `date` is not in the POSIX 2017 standard, it is used only when `$DEBUG` is set in the environment and is available on the currently supported systems (FreeBSD, Void Linux) and on the next operating system with planned support (Debian). - `env` at `/usr/bin/env` - While this may be an issue from a portability standpoint, hardcoding the path where `sh` is also poses another portability issue. A more robust way to find it would be desirable.