tmux-plugins / tmux-logging

Easy logging and screen capturing for Tmux.
MIT License
1.03k stars 113 forks source link

Enable unbuffered I/O in sed when logging #14

Closed modax closed 5 years ago

modax commented 8 years ago

Otherwise log files are flushed very infrequently which might even result in the data loss.

sed option -u is supported on Linux/FreeBSD. sed on OSX should be unbuffered by default.

bruno- commented 5 years ago

The -u option is not supported on Mac OS. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html#tag_20_116_01

That said, I'm not sure why we also use -r as that one is also not supported. I think I might have had GNU sed installed at the time when that was writted.