Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow reading from stdin in perpetuity #112

Open
mpvl opened this issue Sep 30, 2020 · 2 comments
Open

Allow reading from stdin in perpetuity #112

mpvl opened this issue Sep 30, 2020 · 2 comments

Comments

@mpvl
Copy link

mpvl commented Sep 30, 2020

It can be useful to test how programs behave reading from stdin if this is not terminated. Currently this doesn't seem possible. Either stdin sends EOF immediately or it must be set with finite content.

@mvdan
Copy link
Collaborator

mvdan commented Sep 30, 2020

I would also find this useful for testing edge cases. We could add stdin - to mean that stdin is left open forever but never provies any bytes.

@rogpeppe
Copy link
Owner

Can you provide an example testscript where this might come in useful? I'm finding it hard to understand how this would work in practice.

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

No branches or pull requests

3 participants