FreeBSD and macOS have a test that treats == as an alias for =, but Linux tends to use GNU coreutils (when not a builtin) which does not. Use the standard syntax instead for compatibility. Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D35811