Skip to content

sort: needs support for human-readable block size suffixes R and Q #7182

@jfinkels

Description

@jfinkels

Environment: Ubuntu 20.04, uutils main branch (git commit 6a5f2aa), GNU coreutils v9.6.3-3189c-dirty

Steps to reproduce:

printf "1Q\n1R\n" | sort -h

What happens now: uutils sort outputs

1Q
1R

What I expected to happen GNU sort outputs

1R
1Q

Notes: this is causing a failure in the GNU test file tests/sort/sort.pl. Apparently R and Q are new suffixes for (very large) block sizes, see https://www.gnu.org/software/coreutils/manual/html_node/Block-size.html

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