Skip to content

more crashes when attempting more lines than terminal lines #2362

@hbina

Description

@hbina

Running something like:

for i in {1..100..1}; do echo "$i"; done | cargo run -- more

or

cat Cargo.toml Cargo.lock | cargo run -- more

Will just crash with

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: IoError(Custom { kind: Other, error: "Failed to initialize input reader" })', src/uu/more/src/more.rs:235:51

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions