[Toybox] [PATCH] test -ef -ot -nt (POSIX 2024)

Oliver Webb aquahobbyist at proton.me
Tue Jul 2 22:37:15 PDT 2024


Looking over the new stuff in POSIX 2024, toybox already has most of the stuff it specifies

Excluding things like make which toybox doesn't have, and gettext/msgfmt which from all
the design documentation I've read Rob doesn't wanna add to toybox, These are the POSIX 2024
features toybox doesn't have:

dd iflag=fullblock
rm -d
tail -r (which from my checking coreutils doesn't have)
test -ef -nt -ot

The attached patch adds in the test -ef -nt -ot

As for symbolic links:

$ test /bin/bash -ef /bin/sh && echo yes
yes
$ test /bin/bash -ot /bin/sh && echo yes
yes

test is meant to follow symlinks _only_ when checking inodes with -ef

-   Oliver Webb <aquahobbyist at proton.me>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-test-ef-ot-nt-POSIX-2024.patch
Type: text/x-patch
Size: 2630 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20240703/62c60a8f/attachment.bin>


More information about the Toybox mailing list