From 741f851bf61c884ea41eaee2c1a90d4cab99776f Mon Sep 17 00:00:00 2001 From: Bob Proulx Date: Mon, 20 Aug 2007 22:04:45 -0600 Subject: 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. --- src/touch.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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 (); } -- cgit v1.2.3-54-g00ecf