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

Indeed, the GNU Coding Standards explicitly argues against doing that:

please don’t make the behavior of a command-line program depend on the type of output device it gets as standard output or standard input.”¹

https://www.gnu.org/prep/standards/standards.html#User-Inter...



Interesting. Doesn't git (a pretty new tool) violate this? I think running log from the terminal pauses per page of output but if you pipe it to something it pipes all the content.


I think it's just piping it to another program. It's still giving you the same output, but sending you to a program meant for humans to be able to read text in a console, instead of just printing it all out.

That said, I'm not entirely sure which git pipes to.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: