Skip to content

more: panics if file is not readable #4886

@cakebaker

Description

@cakebaker

more from util-linux shows a message, if a file is not readable:

$ touch example
$ chmod 244 example
$ more example
more: cannot open example: Permission denied

uutils more, on the other hand, panics:

$ touch example
$ chmod 244 example
$ cargo run more example
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', /home/dho/projects/coreutils/src/uu/more/src/more.rs:107:62

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