Skip to content

gnucompability(test): large numbers rejected while gnu accepted #12874

@HackingRepo

Description

@HackingRepo

Hi, uutils mainteners

i want let you known that very large numbers accepted by gnu test without any problems while with the uutils test
it become too strict and needs to match the gnu one as our test confirms, it rejected large numbers

relunsec@relunsec:~/software/coreutils/target/debug$ ./test 1 -eq 16267277278126277227728782172782882627278282882172762677623672762783782
test: invalid integer '16267277278126277227728782172782882627278282882172762677623672762783782'
relunsec@relunsec:~/software/coreutils/target/debug$ ./test 1 -eq 16267277278126277227728782172782882627278282882172762677623672762783782
test: invalid integer '16267277278126277227728782172782882627278282882172762677623672762783782'
relunsec@relunsec:~/software/coreutils/target/debug$ gnutest 1 -eq 16267277278126277227728782172782882627278282882172762677623672762783782
relunsec@relunsec:~/software/coreutils/target/debug$ echo $?
1
relunsec@relunsec:~/software/coreutils/target/debug$ gnutest 16267277278126277227728782172782882627278282882172762677623672762783782 -eq 16267277278126277227728782172782882627278282882172762677623672762783782
relunsec@relunsec:~/software/coreutils/target/debug$ echo $?
0
relunsec@relunsec:~/software/coreutils/target/debug$ ./test 16267277278126277227728782172782882627278282882172762677623672762783782 -eq 16267277278126277227728782172782882627278282882172762677623672762783782
test: invalid integer '16267277278126277227728782172782882627278282882172762677623672762783782'
relunsec@relunsec:~/software/coreutils/target/debug$ 

Metadata

Metadata

Assignees

No one assigned

    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