Ole Laursen <[EMAIL PROTECTED]> wrote:
| According to the info-page for date, running just plain
|
|   date
|
| is supposed to work like
|
|   date '+%c'
|
| An excerpt from the front page:
|
|    `date' with no arguments prints the current time and date, in the
|    format of the `%c' directive (described below).
|
| However:
|
|   ole: ~$ date
|   fre mar  9 18:11:39 CET 2001
|   ole: ~$ date '+%c'
|   fre 09 mar 2001 18:11:45 CET
|
| I'm using the Danish locale (da_DK) and 'date (GNU sh-utils) 2.0'.

Thanks for the report.
I've just fixed the documentation:

Index: sh-utils.texi
===================================================================
RCS file: /fetish/shellutils/doc/sh-utils.texi,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -r1.88 -r1.89
--- sh-utils.texi       2001/03/09 18:28:11     1.88
+++ sh-utils.texi       2001/03/10 07:53:35     1.89
@@ -2198,14 +2198,16 @@
 @cindex time, printing or setting
 @cindex printing the current time
 
-@code{date} with no arguments prints the current time and date, in the
-format of the @samp{%c} directive (described below).  Synopses:
+Synopses:
 
 @example
 date [@var{option}]@dots{} [+@var{format}]
 date [-u|--utc|--universal] @c this avoids a newline in the output
 [ MMDDhhmm[[CC]YY][.ss] ]
 @end example
+
+Invoking @code{date} with no arguments is equivalent to invoking
+@samp{date '+%a %b %e %H:%M:%S %Z %Y'}.
 
 @findex strftime @r{and @code{date}}
 @cindex time formats

_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to