From: Collin Funk Date: Thu, 27 Nov 2025 03:27:07 +0000 (-0800) Subject: doc: date: mention --file=- reads from standard input X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=194176cddbfdfd9d26b9be14bd9cc18708fba488;p=thirdparty%2Fcoreutils.git doc: date: mention --file=- reads from standard input * src/date.c (usage): Mention that standard input will be read if DATEFILE is "-". Reported at https://bugs.debian.org/1100395 --- diff --git a/src/date.c b/src/date.c index 2b944e79fd..8959094d4f 100644 --- a/src/date.c +++ b/src/date.c @@ -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\