Skip to content

du: block size parsing #7738

@BenWiederhake

Description

@BenWiederhake
  • -B0 shouldn't panic. I think this should win some kind of "panic golf" :)
  • 1000 and kb and 1024 and k should result in different output, but parse_size_u64 causes information loss (i.e. does not return whether a multiplier was used).
  • 0b11 should be accepted (and interpreted as 3), but determine_number_system does not recognize that prefix.

I think I'll fix this myself soon-ish, but wanted to documented it first, in case I forget about it.

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