summaryrefslogtreecommitdiff
path: root/src/touch.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-09 20:44:16 +0000
committerJim Meyering <jim@meyering.net>1993-10-09 20:44:16 +0000
commit87372cd3aefb4154d9096a491700576d551abd1f (patch)
tree152f4b579d8b9b064d01fbd009795771098e5410 /src/touch.c
parent4ab2d8f53aa7198e41d0e4e0e94055dc1f6e31ba (diff)
downloadcoreutils-87372cd3aefb4154d9096a491700576d551abd1f.tar.xz
merge with 3.8.3e
Diffstat (limited to 'src/touch.c')
-rw-r--r--src/touch.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/touch.c b/src/touch.c
index 35b3d8f16..7977ca158 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -379,23 +379,23 @@ static void
usage (status)
int status;
{
- fprintf (stderr, "\
+ fprintf (status == 0 ? stdout : stderr, "\
Usage: %s [OPTION]... FILE...\n\
\n",
program_name);
if (status == 0)
- fprintf (stderr, "\
- -a change the access time only\n\
- -c do not create files that do not exist\n\
- -d, --date STRING parse STRING and use it, instead of current time\n\
+ fprintf (stdout, "\
+ -a change only the access time\n\
+ -c do not create any files\n\
+ -d, --date STRING parse STRING and use it instead of current time\n\
-f (ignored)\n\
- -m change the modification time only\n\
- -r, --file REFERENCE use this file's times, instead of current time\n\
- -t STAMP use MMDDhhmm[[CC]YY][.ss], instead of current time\n\
- --help provide this help\n\
+ -m change only the modification time\n\
+ -r, --file REFERENCE use this file's times instead of current time\n\
+ -t STAMP use MMDDhhmm[[CC]YY][.ss] instead of current time\n\
+ --help display this help and exit\n\
--time WORD access -a, atime -a, mtime -m, modify -m, use -a\n\
- --version show program version\n\
+ --version output version information and exit\n\
\n\
STAMP may be used without -t if none of -drt, nor --, are used.\n");