Skip to content

Conversation

@joeytwiddle
Copy link

Before this change, the script would fail on Linux, with a sed error

@joeytwiddle
Copy link
Author

joeytwiddle commented Mar 16, 2023

According to the Linux man page, -u causes sed to flush its buffers more often.

In my experience, this is the option to use to get realtime streaming output from sed. (It's the closest thing to line-buffering.)

@joeytwiddle
Copy link
Author

joeytwiddle commented Mar 16, 2023

This manpage says the BSD version of sed also accepts the -u argument. man page

In which case the simplest solution would just be to use -u instead of -l without any checking.

However, I'm not convinced that all Macs have that version of sed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant