Skip to content

du -h --apparent-size adds an extra zero on stdout .  #6159

@AnirbanHalder654322

Description

@AnirbanHalder654322

Steps to reproduce
GNU coreutils

truncate -s12M a
du -h --apparent-size a
12M	a

uutils-coreutils

truncate -s12M a
./coreutils/target/release/coreutils du -h --apparent-size a
12.0M	a

Works the same for any two and three digit sizes K and M .

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