Skip to content

Command blocks on large stdin #172

Open
@rocketnik

Description

@rocketnik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions