Skip to main content
11 events
when toggle format what by license comment
Sep 28, 2022 at 9:14 history edited Kamil Maciorowski CC BY-SA 4.0
fixed formatting
Sep 28, 2022 at 8:51 comment added Mikko Rantalainen 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.
Oct 13, 2021 at 18:00 history edited Kamil Maciorowski CC BY-SA 4.0
added 252 characters in body
Aug 16, 2019 at 21:01 comment added Kamil Maciorowski @AnthonyNaddeo Thanks for the feedback. I integrated your observations and the link into my answer.
Aug 16, 2019 at 20:56 history edited Kamil Maciorowski CC BY-SA 4.0
mentioned issue with fish
Aug 16, 2019 at 19:46 vote accept Anthony Naddeo
Aug 16, 2019 at 19:46 comment added Anthony Naddeo 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.
Aug 16, 2019 at 19:35 comment added Anthony Naddeo 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.
Aug 16, 2019 at 19:32 comment added Anthony Naddeo 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.
Aug 16, 2019 at 19:20 history edited Kamil Maciorowski CC BY-SA 4.0
added 216 characters in body
Aug 16, 2019 at 19:15 history answered Kamil Maciorowski CC BY-SA 4.0