Closed
Description
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.