Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Thanks for the suggestion. In testing it I got a new piece of information. It actually works just fine in zsh, I'm not sure what changed from my last test, but it looks like its only a problem in fish, and there the --line-buffered switch actually doesn't do anything it seems. This might be a fish question. Commented Aug 16, 2019 at 19:32
  • EDIT: I do need the line-buffered options get it working isntantly in zsh as well, my bad. But I can't get that solution to work in fish. Commented Aug 16, 2019 at 19:35
  • Ok, this was the solution, thank you. The tricky part was fish's function wrapper around grep: unix.stackexchange.com/questions/305261/…. If I use grep directly with /bin/grep it works in fish as well. Not sure why they wrapped it. Commented Aug 16, 2019 at 19:46
  • @AnthonyNaddeo Thanks for the feedback. I integrated your observations and the link into my answer. Commented Aug 16, 2019 at 21:01
  • Great answer and special thanks for mentioning that unbuffer and stdbuf do technically totally different things as explained in unix.stackexchange.com/a/97327/20336unbuffer doesn't actually change buffering so it could have name like pretend-connected-to-terminal to better describe what it actually does. Commented Sep 28, 2022 at 8:51