POSIX conformance for file-based date(1)
Aug. 22, 1989
1:38 a.m.
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) {
13320
Age (days ago)
13320
Last active (days ago)
0 comments
1 participants
participants (1)
-
ado