From: Omar Polo Subject: Re: tog: ensure stdin is a tty To: Stefan Sperling Cc: Mark Jamsek , Game of Trees Date: Sat, 03 Sep 2022 16:55:57 +0200 On 2022/09/03 15:37:31 +0200, Stefan Sperling wrote: > On Sat, Sep 03, 2022 at 11:24:47PM +1000, Mark Jamsek wrote: > > This was discussed a while back on IRC to handle such things like: > > > > $ tog < /dev/null > > > > ok? > > Should 'return 1' or exit(1) on error, not return GOT_ERR_IO. given the place where that check is, I'd go with an errx(1, "stardand input is not a tty"); otherwise ok for me! Thanks,