2 ms·
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 d
by teddyh 12y ago
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-Interfaces https://www.gnu.org/prep/standards/standards.html#User-Inter...
- tieTYT 12y agoInteresting. 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.
- dkuntz2 12y agoI 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.