1003.2: 4.15.4: The output always shall be terminated by a newline character.
This commit is contained in:
parent
2ea901d347
commit
7bab32a746
|
@ -33,7 +33,7 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)date.1 6.16 (Berkeley) 7/30/91
|
||||
.\" $Id: date.1,v 1.4 1993/08/01 07:48:55 mycroft Exp $
|
||||
.\" $Id: date.1,v 1.5 1993/08/16 23:08:51 jtc Exp $
|
||||
.\"
|
||||
.Dd July 30, 1991
|
||||
.Dt DATE 1
|
||||
|
@ -219,4 +219,4 @@ will be running on
|
|||
The
|
||||
.Nm date
|
||||
command is expected to be compatible with
|
||||
.St p1003.2 .
|
||||
.St -p1003.2 .
|
||||
|
|
|
@ -39,7 +39,7 @@ char copyright[] =
|
|||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)date.c 5.5 (Berkeley) 3/18/91";*/
|
||||
static char rcsid[] = "$Id: date.c,v 1.5 1993/08/01 19:00:18 mycroft Exp $";
|
||||
static char rcsid[] = "$Id: date.c,v 1.6 1993/08/16 23:08:52 jtc Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -110,7 +110,7 @@ main(argc, argv)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
format = "%a %b %e %H:%M:%S %Z %Y\n";
|
||||
format = "%a %b %e %H:%M:%S %Z %Y";
|
||||
|
||||
/* allow the operands in any order */
|
||||
if (*argv && **argv == '+') {
|
||||
|
@ -127,7 +127,7 @@ main(argc, argv)
|
|||
format = *argv + 1;
|
||||
|
||||
(void)strftime(buf, sizeof(buf), format, localtime(&tval));
|
||||
(void)printf("%s", buf);
|
||||
(void)printf("%s\n", buf);
|
||||
exit(retval);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue