Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Huh. My intuition would have been that stdin/stderr provided by sshd to the shell would have been been marked as `isatty(3)`. TIL.


The interesting thing is, `isatty()` seems to report 1 even over an ssh connection...so yeah, purely from that point of view, the shell should be "interactive". Why this case is then marked as special in the bash manpage, I cannot say :D




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: