Skip to content

gnucompability(tail): -c accepts some large units that gnu rejects #13136

Description

@HackingRepo

Hi, uutils mainteners

we confirmed that the uu tail -c accepted, some large units, without errors

relunsec@relunsec:~/software/coreutils/target/debug$ ./tail -c2z a
hello
relunsec@relunsec:~/software/coreutils/target/debug$ gnutail -c2z a
gnutail: invalid number of bytes: ‘2z’
relunsec@relunsec:~/software/coreutils/target/debug$ ./tail -c2e a
hello
relunsec@relunsec:~/software/coreutils/target/debug$ gnutail -c2e a
gnutail: invalid number of bytes: ‘2e’
relunsec@relunsec:~/software/coreutils/target/debug$ ./tail -c2g a
hello
relunsec@relunsec:~/software/coreutils/target/debug$ gnutail -c2g a
gnutail: invalid number of bytes: ‘2g’
relunsec@relunsec:~/software/coreutils/target/debug$ 
relunsec@relunsec:~/software/coreutils/target/debug$ ./tail -c2t a
hello
relunsec@relunsec:~/software/coreutils/target/debug$ gnutail -c2t a
gnutail: invalid number of bytes: ‘2t’
relunsec@relunsec:~/software/coreutils/target/debug$ 

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