Re: What should tty? do if handed a port that's not even vaguely a tty? Lassi Kortela 10 Aug 2019 22:03 UTC
> I think we should generalize EBADF to attempts to do > something fd-ish on a port without a fd. So we raise on EBADF, but > otherwise return #t or #f depending on the result of isatty(). > ENOTSUP makes more sense. My intuition says we shouldn't fabricate errno values for errors that don't have them. But I don't have anything concrete to back it up.