Skip to content

ptx: show no output if input is numeric #10886

@cakebaker

Description

@cakebaker

GNU ptx doesn't show any output if the input is numeric whereas uutils ptx shows some output.

$ printf "123" | ptx
$ echo $?
0
$ printf "1 2 3" | ptx
$ echo $?
0

$ printf "123" | cargo run -q ptx
                                       123
$ printf "1 2 3" | cargo run -q ptx
                                       1 2 3
                                   1   2 3
                                 1 2   3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions