coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] du: document the TIME_STYLE env variable in usage


From: Bernhard Voelker
Subject: Re: [PATCH] du: document the TIME_STYLE env variable in usage
Date: Sun, 16 Nov 2025 18:38:36 +0100
User-agent: Mozilla Thunderbird

On 11/15/25 22:03, PƔdraig Brady wrote:
How about something like:

I like it.
diff --git a/src/du.c b/src/du.c
index f4dbd8c05..d1c0d5d2b 100644
--- a/src/du.c
+++ b/src/du.c
@@ -336,9 +336,9 @@ Summarize device usage of the set of FILEs, recursively for 
directories.\n\
                             directory, or any of its subdirectories\n\
         --time=WORD       show time as WORD instead of modification time:\n\
                             atime, access, use, ctime or status\n\
-      --time-style=STYLE  show times using STYLE, which can be:\n\
-                            full-iso, long-iso, iso, or +FORMAT;\n\
-                            FORMAT is interpreted like in 'date'\n\
+"), stdout);
+      fputs (_("\
+      --time-style=STYLE   time/date display format; see TIME_STYLE below\n\

I adjusted to this like in ls(1) to make it clearer that --time-style/TIME_STYLE
is in effect only when the --time option is used.

      --time-style=STYLE   time/date format with --time; see TIME_STYLE below\n\

Pushed.

Thanks & have a nice day,
Berny



reply via email to

[Prev in Thread] Current Thread [Next in Thread]