8000 pr: Doesn't allow for omitted optional argument to `-n` · Issue #3109 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
pr: Doesn't allow for omitted optional argument to -n #3109
Closed
@ljrk0

Description

@ljrk0

Test case:

$ pr -n foo.txt
# successfully prints foo.txt with line numbers
$ uu-pr -n foo.txt
# waits for input on stdin since foo.txt is seen as argument to `-n`

The POSIX manpages specifies that the arguments to -n are to directly follow this option, as far as I can see, i.e., -n1 would be allowed, while -n 1 would be seen as "number lines, input file '1'". That's how GNU handles it as well.

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

      0