Skip to content

du: error: the argument '--human-readable' cannot be used multiple times (but works in GNU) #11783

@bwduncan

Description

@bwduncan

Hi,

To reproduce:

du -h -h

or:

alias du='du -h'
du -h

(I have this setup on most machines, but my muscle memory still contains -h...)

Actual output:

error: the argument '--human-readable' cannot be used multiple times

Expected output (for example):

0

GNU coreutils accepts multiple idempotent arguments. uutils should do the same.

I noticed there are a few bugs on this theme, many from 2020/2021, and in fact du itself has many arguments which should be accepted multiple times (e.g. --si, -s, -x, -c etc.) In fact almost all arguments can be safely passed multiple times with no ambiguity.

Do you want a separate bug for each argument, or each tool, or something else?

Thanks!
Bruce

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