crystal-lang / shards

Dependency manager for the Crystal language
Other
758 stars 99 forks source link

Standard input file descriptor immediately closed when running a program using `shards run` #550

Closed hovsater closed 1 year ago

hovsater commented 2 years ago

I noticed that standard input descriptor is immediately closed when running shards run. This is evident by the following code:

https://github.com/crystal-lang/shards/blob/85b30b5755b5aad8e5b4bd94cc94610c6a617bea/src/commands/run.cr#L31

Only standard output and standard error are inherited from the parent process.

Is this a mistake or by design? I'd be happy to address the problem in case it's the former. 🙂