POSIX conformance for file-based date(1)

Arthur David Olson ado
Tue Aug 22 01:38:27 UTC 1989


The 1989 version of the file-based "date" command is missing the 'c' in
the argument to getopt that's needed to enable its POSIX-conformant handling
of a command-line 'c' option.  The needed change is attached.

				--ado

*** 7.1/date.c	Mon Aug 21 21:26:46 1989
--- 7.2/date.c	Mon Aug 21 21:26:48 1989
***************
*** 2,4 ****
  #ifndef NOID
! static char	elsieid[] = "@(#)date.c	7.1";
  /*
--- 2,4 ----
  #ifndef NOID
! static char	elsieid[] = "@(#)date.c	7.2";
  /*
***************
*** 103,105 ****
  	format = value = NULL;
! 	while ((ch = getopt(argc, argv, "und:t:a:")) != EOF) {
  		switch (ch) {
--- 103,105 ----
  	format = value = NULL;
! 	while ((ch = getopt(argc, argv, "ucnd:t:a:")) != EOF) {
  		switch (ch) {



More information about the tz mailing list