▲ | Dylan16807 4 hours ago | ||||||||||||||||
What are you saying is "not meant to be interactive"? That's not true of pipes in general, or of grep in general. Or, even if it is true of pipes, then we need an alternate version of a pipe that signals not to buffer, and can be used in all the same places. It's a real problem either way, it just changes the nature of the problem. > The proposed fix makes the contract a lot more complicated. How so? Considering programs already have to deal with terminals, I'm skeptical a way to force one aspect of them would be a big deal. | |||||||||||||||||
▲ | YZF 2 hours ago | parent [-] | ||||||||||||||||
Sure. An alternative for combining interactive terminal applications might be interesting. But I think there is tension between the Unix mechanisms and interactive applications that's not easy to resolve. What's `less | grep` or `vim | grep`... do we need to send input back through the pipe now? It's one of those things you get used to when you've used Unix-like systems long enough. Yes, it's better things just work as someone who is not a power user expects them to work but that's not always possible and I'd say it's not worth it to try to always meet that goal, especially if it leads to more complexity. | |||||||||||||||||
|