Skip to content

du: should support arbitrary format arg to --time-style #7665

@jfinkels

Description

@jfinkels

Environment: Ubuntu 24.04, uutils main branch (git commit 3971bb3), GNU coreutils v9.6.38-2b088-modified

Steps to reproduce:

touch f
du --time --time-style='+%Y-%m-%d' f

What happens now: uutils du errors with usage information:

./target/debug/du: invalid argument '+%Y-%m-%d' for 'time style'
Valid arguments are:
- 'full-iso'
- 'long-iso'
- 'iso'
Try './target/debug/du' for more information.

What I expected to happen: uutils du prints the file size, formatted modification time, and filename:

0       2025-04-05      f

Notes: this is causing a failure in GNU test file tests/misc/time-style.sh.

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