nushell / nushell/reedline

Redirected stdin is ignored

Open
#509 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.