I don't understand the answer well (my knowledge about computers is very limited),
i.e. I do not immediately understand what it means for a file to be a tty.
But also, I think the isatty() is about the TOC file, i.e. the file given as INFILE (after the `<`)
But I am not giving any INFILE (which would make the command add the TOC to the file given as argument),
Instead I simply provide a single filepath as argument so that the command simply prints the TOC.
(I hope this answer makes sense, I might be misunderstanding something)