Skip to content

tsort: show error if directory is specified #5853

@cakebaker

Description

@cakebaker

GNU tsort shows an error if a directory is specified and returns 1 as exit code:

$ tsort dir
tsort: dir: read error: Is a directory
$ echo $?
1

uutils tsort, on the other hand, doesn't fail:

$ cargo run tsort dir
$ echo $?
0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions