]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: date: mention --file=- reads from standard input
authorCollin Funk <collin.funk1@gmail.com>
Thu, 27 Nov 2025 03:27:07 +0000 (19:27 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Thu, 27 Nov 2025 03:31:11 +0000 (19:31 -0800)
* src/date.c (usage): Mention that standard input will be read if
DATEFILE is "-".
Reported at https://bugs.debian.org/1100395

src/date.c

index 2b944e79fd880e5f077d8591e05b605faa5665c4..8959094d4f8ee7f453a3aaa99f769fd003857d0f 100644 (file)
@@ -146,7 +146,9 @@ With -s, or with [MMDDhhmm[[CC]YY][.ss]], set the date and time.\n\
                               warn about questionable usage to standard error\n\
 "), stdout);
       fputs (_("\
-  -f, --file=DATEFILE        like --date; once for each line of DATEFILE\n\
+  -f, --file=DATEFILE        like --date; once for each line of DATEFILE;\n\
+                               If DATEFILE is -, read names from standard input\
+\n\
 "), stdout);
       fputs (_("\
   -I[FMT], --iso-8601[=FMT]  output date/time in ISO 8601 format.\n\