@fiore @coolbean @tisanae @rose adj
https://man.9front.org/1/fortune
NAME
fortune, theo, troll - sample lines from a file
SYNOPSIS
fortune [ file ]
theo
troll
DESCRIPTION
Fortune prints a one-line aphorism chosen at random. If a
file is specified, the saying is taken from that file; oth-
erwise it is selected from /sys/games/lib/fortunes.
Troll is more specific than fortune; it specializes in
inflammatory rhetoric.
Theo is more specific than troll; it presents insults from
OpenBSD founder Theo de Raadt.
@SRAZKVT @Misofist @rose @lunareclipse @navi I think it makes sense for the two to be separated, specially as "check if path exist" has to be something where you get a file descriptor to avoid TOCTOU issues afterwards.
And reminds me that what I'd more want in modern languages is types for a path query (stuff like ../ goes there, maybe also globbing), a path (relative or absolute), and a filename.
@navi @rose @SRAZKVT Interestingly I feel like I've seen that one before in a POSIX meeting (so in the last 12+ months) but might be misremembering as I can't find it in the bugtracker.
Might be worth it to look at what other implementations have, maybe they did it with an O_* flag which would likely be easier to standardize.