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

Command blocks on large stdin #172

Open
rocketnik opened this issue May 9, 2018 · 0 comments
Open

Command blocks on large stdin #172

rocketnik opened this issue May 9, 2018 · 0 comments

Comments

@rocketnik
Copy link
Contributor

rocketnik commented May 9, 2018

using macOS 10.13.4, ghc 8.0.2, shelly-1.7.2

the following command blocks indefinitely:

ghci -XOverloadedStrings
:m +Data.List Data.Text Shelly
shelly $ setStdin (pack $ Prelude.take 1000000 . repeat $ 'a') >> (fmap (Data.Text.take 200) $ run "cat" []) >>= echo

if you replace 1000000 with something shorter like 100000 or 1000, then this command succeeds. Looks like a buffering/laziness issue.

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

1 participant