Skip to content

gnucompability(pr): -l 0/--pages 0 uutils accept it and gnu rejects it #12768

@HackingRepo

Description

@HackingRepo

Hi, uutils mainteners

the compability issue here the problem with the 0 value for the pr, how interepted by gnu and uutils differently, the testing confirms it
the uutils accept but gnu behavior reject

relunsec@relunsec:~/software/coreutils/target/debug$ ./pr -l 0 a

relunsec@relunsec:~/software/coreutils/target/debug$ gnupr -l 0 a
gnupr: '-l PAGE_LENGTH' invalid number of lines:0: Numerical result out of range

and the same as well for --pages

relunsec@relunsec:~/software/coreutils/target/debug$ ./pr --pages 0

relunsec@relunsec:~/software/coreutils/target/debug$ gnupr --pages 0
gnupr: invalid page range ‘0’
relunsec@relunsec:~/software/coreutils/target/debug$ 

as you can see in the second example the uutil pr hangs the gnu pr reject 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions