[patch coreutils/ touch.c] fix help

walter harms wharms at bfs.de
Sat Dec 10 14:20:29 UTC 2011


The help text did not mention -t  -- fixed
the BB_AUDIT SUSv3 noted -r and -t as missing -- fixed

Signed-off-by: wharms <wharms at bfs.de>

diff --git a/coreutils/touch.c b/coreutils/touch.c
index 0f980fd..d370fb4 100644
--- a/coreutils/touch.c
+++ b/coreutils/touch.c
@@ -7,7 +7,7 @@
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */

-/* BB_AUDIT SUSv3 _NOT_ compliant -- options -a, -m, -r, -t not supported. */
+/* BB_AUDIT SUSv3 _NOT_ compliant -- options -a, -m  not supported. */
 /* http://www.opengroup.org/onlinepubs/007904975/utilities/touch.html */

 /* Mar 16, 2003      Manuel Novoa III   (mjn3 at codepoet.org)
@@ -36,8 +36,9 @@
 //usage:       "Update the last-modified date on the given FILE[s]\n"
 //usage:     "\n	-c	Don't create files"
 //usage:	IF_DESKTOP(
-//usage:     "\n	-d DT	Date/time to use"
+//usage:     "\n	-d STRING Date/time to use"
 //usage:     "\n	-r FILE	Use FILE's date/time"
+//usage:     "\n	-t [[CC]YY]MMDDhhmm[.ss] instead of current time"
 //usage:	)
 //usage:
 //usage:#define touch_example_usage


More information about the busybox mailing list