summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Proulx <bob@proulx.com>2007-08-20 22:04:45 -0600
committerJim Meyering <jim@meyering.net>2007-08-21 09:01:07 +0200
commit741f851bf61c884ea41eaee2c1a90d4cab99776f (patch)
treef1ba4a33d744c765d7d824ac8b4cb06bea62e0d6 /src
parent6dfe8fc30d29658ec002c04d390b19435cdecba1 (diff)
downloadcoreutils-741f851bf61c884ea41eaee2c1a90d4cab99776f.tar.xz
Clarify touch documentation of file arguments.
* src/touch.c (usage): Improve wording of documentation regarding file argument handling and special handling of - argument. * doc/coreutils.texi (touch invocation): Likewise. Documentation problem reported by Vincent Lefevre.
Diffstat (limited to 'src')
-rw-r--r--src/touch.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/touch.c b/src/touch.c
index 963e7ffb1..2540558e5 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -233,6 +233,11 @@ usage (int status)
fputs (_("\
Update the access and modification times of each FILE to the current time.\n\
\n\
+A FILE argument that does not exist is created empty.\n\
+\n\
+A FILE argument string of - is handled specially and causes touch to\n\
+change the times of the file associated with standard output.\n\
+\n\
"), stdout);
fputs (_("\
Mandatory arguments to long options are mandatory for short options too.\n\
@@ -256,8 +261,6 @@ Mandatory arguments to long options are mandatory for short options too.\n\
fputs (_("\
\n\
Note that the -d and -t options accept different time-date formats.\n\
-\n\
-If a FILE is -, touch standard output.\n\
"), stdout);
emit_bug_reporting_address ();
}