GNU bug report logs - #79113
du --time-styles inconsistencies between manual and behaviour

Previous Next

Package: coreutils;

Reported by: Nicolas Boichat <nicolas <at> boichat.ch>

Date: Mon, 28 Jul 2025 14:45:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Nicolas Boichat <nicolas <at> boichat.ch>
To: Pádraig Brady <P <at> draigbrady.com>
Cc: 79113 <at> debbugs.gnu.org
Subject: bug#79113: du --time-styles inconsistencies between manual and behaviour
Date: Tue, 29 Jul 2025 11:53:08 +0800
On Tue, 29 Jul 2025 at 06:12, Pádraig Brady <P <at> draigbrady.com> wrote:
>
> On 28/07/2025 20:13, Pádraig Brady wrote:
> > On 28/07/2025 18:49, Nicolas Boichat wrote:
> >> I could have been clearer for this last one, I mean that the command
> >> line error text for `du` could mention that +FORMAT is supported:
> >>
> >> Comparing du and ls output with a bad timestyle:
> >> ```
> >> $ du --time --time-style=xyz blob
> >> du: invalid argument ‘xyz’ for ‘time style’
> >> Valid arguments are:
> >>     - ‘full-iso’
> >>     - ‘long-iso’
> >>     - ‘iso’
> >>>>>>> it would be nice to add `- +FORMAT (e.g., +%H:%M) for a 'date'-style format` here
> >> Try 'du --help' for more information.
> >> $ ls -l --time-style=xyz blob
> >> ls: invalid argument ‘xyz’ for ‘time style’
> >> Valid arguments are:
> >>     - [posix-]full-iso
> >>     - [posix-]long-iso
> >>     - [posix-]iso
> >>     - [posix-]locale
> >>     - +FORMAT (e.g., +%H:%M) for a 'date'-style format
> >> Try 'ls --help' for more information.
> >> ```
> >
> > Oh right.
> > I'll refactor the code that prints the ls and du errors in this case.
> >
>
> Will push the attached later.

Thanks!

>
> cheers,
> Padraig




This bug report was last modified 19 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.