Redirected stdin is ignored
Open
Nobody has claimed this yet.
A-API
A-Events
bug
- Dominant language
- Rust
- Stars
- 818
- Forks
- 249
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 30
Description
It seems reedline is unable to read lines redirected from the stantard input.
Example:
$ echo "hello" | cargo run -q --example basic
/mnt/renato/git/rust/reedline〉
There you can see the redirected stdin was ignored.
Using rustyline, for example, that doesn't happen:
$ echo "hello" | cargo run -q --example minimal
Line: hello
Error: Eof
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the cargo run -q --example basic command and redirected input shown in the report. Trace how the basic example handles standard input, then verify that piping hello reads and displays the line instead of opening an empty prompt.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100