summaryrefslogtreecommitdiff
path: root/old/sh-utils/ChangeLog
blob: aa1959fb3904b812a75977ea977a5ce420508bb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
Wed Jan 31 23:40:50 1996  Jim Meyering  (meyering@na-net.ornl.gov)

	* lib/strftime.c (add_num_tz): New function.
	(strftime): Handle new %z format.
	* date.c (main): Accept new option, --rfc-822 (-R).
	(show_date): Use RFC822-mandated strftime format.
	From H. Peter Anvin (hpa@storm.net).
	(usage): Add a line describing the new option.

	* lib/strftime.c (add_num_tz): Don't use local, LENGTH,
	before it's defined.

Mon Jan 29 19:24:04 1996  Jim Meyering  (meyering@na-net.ornl.gov)

	* acconfig.h (PROTOTYPES): Define it.

Fri Jan 19 22:00:08 1996  Jim Meyering  (meyering@na-net.ornl.gov)

	* aclocal.m4 (fp_PROG_INSTALL): New macro.
	* configure.in: Use it instead of AC_PROG_INSTALL.

	* who-users.c: Protoize.

Wed Jan 17 23:37:59 1996  Jim Meyering  (meyering@na-net.ornl.gov)

	* stty.c: Protoize and __P-protect forward dcls.
	(visible): Change parameter type to unsigned int from unsigned char.
	(integer_arg): Use xstrtol instead of open-coding this.

	* lib/Makefile.am (su_SOURCES): Add xstrtol.c.
	(HEADERS): Add xstrtol.h.

	* test.c (advance): Protoize function.

	* sleep.c (argdecode): Declare parameter const.

Sat Jan 13 22:31:23 1996  Jim Meyering  (meyering@na-net.ornl.gov)

	* stty.c: Indent cpp directives.

Sun Jan  7 23:56:03 1996  Jim Meyering  (meyering@na-net.ornl.gov)

	Use automake to generate Makefile.in files.
	* Makefile.am: New file.
	* doc/Makefile.am: New file.
	* lib/Makefile.am: New file.
	* man/Makefile.am: New file.
	* src/Makefile.am: New file.

	* configure.in (OPTIONAL_PROGS, OPTIONAL_SCRIPTS): New variables
	used in place of PROGS.

Sat Jan  6 05:13:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)

	* configure.in (PACKAGE, VERSION): New variables.
	(fp_C_PROTOTYPES): Use it.

	* printf.c (print_esc_char): Change type of argument from char
	to int to avoid potential promotion problem.
	* uname.c (print_element): Likewise.

	* system.h [__P]: New macro.

	* basename.c, date.c, dirname.c, echo.c, env.c, expr.c, factor.c,
	hostname.c, id.c, logname.c, nice.c, pathchk.c, printenv.c,
	printf.c, pwd.c, seq.c, sleep.c, tee.c, test.c, tty.c, uname.c,
	whoami.c, yes.c: Protoize and __P-protect forward dcls.

	* who-users.c: New file.  Renamed from who.c.
	* who.c: Define WHO and include who-users.c.
	* uses.c: Define USERS and include who-users.c.

	* id.c Remove no-longer-used NGROUPS_MAX cpp macros.
	(print_group_list) [HAVE_GETGROUPS]: Reorganize to use
	getgroups (0, NULL) to compute number of groups at run time
	rather than relying on NGROUPS_MAX at compile time.
	(print_full_info) [HAVE_GETGROUPS]: Likewise.
	Suggestion from Roland McGrath.

	* su.c: Remove NGROUPS_MAX junk.  It wasn't being used.

Wed Jan  3 19:03:26 1996  Paul Eggert  <eggert@twinsun.com>

	* configure.in (LOCALTIME_CACHE): Define if tzset exists and
	if localtime caches TZ.  Check for tzset.
	* acconfig.h (LOCALTIME_CACHE): New macro.
	* date.c (putenv): Declare.
	(universal_time): Remove.
	(main): If -u is given, set TZ to "UTC0"; this causes date to use
	UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'.
	(show_date): Just use localtime and a single format, since TZ will
	be set properly if -u is given.

Fri Dec 22 21:34:55 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* configure.in: Touch stamp-h only if config.h is remade.

Sun Nov 26 16:09:33 1995  Jim Meyering  (meyering@comco.com)

	* test.c (usage): Clarify usage.  From Karl Berry.

Wed Nov 22 23:12:47 1995  Jim Meyering  (meyering@comco.com)

	* Makefile.in (all et. al.): If make was invoked with -k and a
	sub-make fails, fail after the loop rather than exiting right away.
	Otherwise, make's -k option could be ineffective.

Thu Nov 16 21:25:45 1995  Jim Meyering  (meyering@comco.com)

	* Makefile.in (default): New default target.  Depend on `all' to work
	around bug in AIX-3.2.5's /bin/make.  Reported by Andreas Luik
	<luik@isa.de>.

Tue Nov  7 23:53:20 1995  Jim Meyering  (meyering@comco.com)

	* stty.c (usage): Clarify descriptions of ignpar and ignbrk.
	From Theodore Ts'o and Ulrich Windl.

Sun Oct 29 08:47:50 1995  Jim Meyering  (meyering@comco.com)

	* test.c [TEST_STANDALONE]: Define.
	* src/Makefile.in (test.o): Remove special rule.

Sat Oct 28 00:49:13 1995  Jim Meyering  (meyering@comco.com)

	* aclocal.m4 (jm_WITH_AUTODEPS): New directive.
	* configure.in: Use it.

	* lib/Makefile.in (INCLUDE, COMPILE): New variables.
	(.c.o): Rewrite to be more like src/Makefile.in.
	Add line that (--with-autodeps) will include mkdep-Makefile.
	(distclean): Remove .deps.
	* src/Makefile.in: Likewise.

	* mkdep-Makefile: New file.
	* Makefile.in (DISTFILES): Add mkdep-Makefile.

	* doc/Makefile.in (mostlyclean): Remove *.info.

	* date.c: New option --reference=FILE (-r FILE) analogous to the
	like-named touch option.
 	(main): Recognize it and give diagnostic for misuse.
	(usage): Describe briefly.
	From Franc,ois Pinard.

	* date.c (batch_convert): Close input stream also when it's not stdin.
	(main): Reorganize to do option-consistency checks before all else.

Tue Sep 26 23:05:01 1995  Jim Meyering  (meyering@comco.com)

	* man/Makefile.in (install-data, uninstall): Use sed not basename.
 	The GNU Coding Standard suggests that only a select set of
 	relatively standard utilities be used in Makefiles.  basename is
	not among them.  Suggested by Ulrich Drepper.

Tue Aug  8 22:57:34 1995  Jim Meyering  (meyering@comco.com)

	* yes.c: Include system.h to get definition of _.

Mon Aug  7 23:27:54 1995  Jim Meyering  (meyering@comco.com)

	* system.h (_): Define macro -- as empty for now.
	* src/*.c: Annotate localizable strings with _(...).  From Franc,ois.

	* Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
	From Franc,ois.

Fri Jun 23 23:04 1995  Jim Meyering  (meyering@comco.com)

	* configure.in: (AC_REPLACE_FUNCS): Add memcpy and memset.
	Add checks for floor, modf, and rint -- all used by seq.c.

Mon Jun 12 00:26:54 1995  Jim Meyering  (meyering@comco.com)

	* getdate.y (Convert): Use 2037 as threshold, not 1999.
	Before years after 1999 were treated as invalid.
	From Andreas Schwab.

Sat May 27 00:35:47 1995  Jim Meyering  (meyering@comco.com)

	* system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
	Without this, SunOS doesn't get type for memchr.
	Reported by Kaveh Ghazi.

Sun May 21 07:20:55 1995  Jim Meyering  (meyering@comco.com)

	* Makefile.in (.PHONY): TAGS is not a phony target.  From Franc,ois.

	* All Makefile.in (install-exec, install-exec): New targets.
	From Karl Berry.

	* all Makefile.in (maintainer-clean): Renamed from realclean
	per GNU Standards.

Mon May 15 01:00:08 1995  Jim Meyering  (meyering@comco.com)

	* all source files (usage): Include one- or two-line synopsis
	in --help output.  From Karl Berry.

Sat May 13 08:57:20 1995  Jim Meyering  (meyering@comco.com)

	* lib/Makefile.in (maintainer-clean): Rename from realclean.
	(.PHONY): New dependencies.
	[.c.o]: Remove -I. since safe-l?stat.h are no longer used.

Fri May 12 21:25:50 1995  Jim Meyering  (meyering@comco.com)

	* test.c (usage): Remove duplicate descriptions of --help
	and --version.  From Karl Berry.

	* pathchk.c: Use stat (lstat), not safe_stat (safe_lstat).
	* test.c: Likewise.
	* who.c: Likewise.

	* lib/Makefile.in (SOURCE): Add memcpy.c, memset.c.
	Remove all reference to (now unused) safe-xstat.hin.

Tue Apr 18 22:57:43 1995  Jim Meyering  (meyering@comco.com)

	* configure.in: (AC_OUTPUT): Use echo, not date, to avoid creating
	unnecessary conflicts for people using version control software
	like RCS and CVS.
	(AC_ARG_PROGRAM): Use it.

Fri Mar 10 21:14:11 1995  Jim Meyering  (meyering@comco.com)

	* src/*.c: Update Copyright dates.

Mon Feb 27 08:05:25 1995  Jim Meyering  (meyering@comco.com)

	* system.h: Separate errno declaration from STDC_HEADERS.
	Remove bcopy, bzero, strchr, strrchr definitions.

	* stty.c (main, set_window_size): Use memset instead of bzero.
	* su.c (correct_password): Likewise.

	* seq.c Remove \n's from error format strings.
	(main): Let `seq 1 1' work.
	Invoke usage always with 1 when failing.

Sat Feb 11 08:27:12 1995  Jim Meyering  (meyering@comco.com)

	* src/Makefile.in (install): Fix rules for su to avoid relying on
	just-built `id' executable.  That would lose when cross-compiling and
	on systems like GNU in which a user may have several effective IDs.
	(SOURCES, OBJECTS, PROGS): Add seq.
	* Makefile.in (PROGS): Add seq.

        * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset.
        (AC_CHECK_FUNCS): Add strchr and strrchr.
        * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c.

	* system.h: Remove index/rindex and bcmp/bcopy/bzero references.
	Separate errno declaration from STDC_HEADERS.

Thu Jan 26 23:38:04 1995  Jim Meyering  (meyering@comco.com)

	* getdate.y (ToSeconds): Properly convert 12am and 12pm.
	From Takeshi Sone <ts1@tsn.or.jp>.

	* lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Add readtokens.[coh].
	(all): Depend on safe-stat.h and safe-lstat.h.

	* date.c (batch_convert): Remove any trailing newline from offending
	line before including it in the `invalid date' error from `date -f'.
	Reported by Franc,ois Pinard.

Sat Dec 31 09:25:09 1994  Jim Meyering  (meyering@comco.com)

	* Makefile.in (PROGS): Add factor.
	* src/Makefile.in (SOURCES, OBJECTS, PROGS): Add factor.
	(factor): New rule.

Mon Dec 26 18:31:08 1994  Jim Meyering  (meyering@comco.com)

	* test.c (term): Running `./test \( a -o b' got a seg fault.
	From from Klaus.Reichl@aut.alcatel.at.

Mon Dec 19 22:05:12 1994  Jim Meyering  (meyering@comco.com)

	* src/*.c: Include "error.h" rather than simply declaring
	`void error ();'.
	* src/Makefile.in (OBJECTS): Depend on ../lib/error.h.

	* lib/Makefile.in (DISTFILES): Remove safe-xstat.cin.
	(distclean): Remove references to safe-l?stat.c.
	Remove all related rules and dependencies.

	* safe-xstat.hin (SAFE_LSTAT, SAFE_STAT): Remove macros.
	Now that we always define the functions, these are no longer needed.

	* pathchk.c (dir_ok): Use safe_stat instead of SAFE_STAT.
	* who.c (print_entry): Likewise.
	* test.c (test_stat, binary_operator): Likewise.
	(unary_operator): Use safe_lstat instead of SAFE_LSTAT.

Mon Dec 12 22:42:09 1994  Jim Meyering  (meyering@comco.com)

	* expr.c (docolon): Zero out re_buffer and re_regs before using them.
	From H.J. Lu <hjl@nynexst.com>.

Sun Dec  4 14:53:12 1994  Jim Meyering  (meyering@comco.com)

	* dirname.c (main): Use strchr and strrchr instead of index and rindex.
	* echo.c (main): Likewise.
	* env.c (main): Likewise.
	* pathchk.c (validate_path): Likewise.
	* printf.c (print_formatted, print_esc): Likewise.
	* test.c [member]: Likewise.
	* who.c (extract_trimmed_name): Likewise.
	* system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to
	rindex instead of the other way around.

	* doc/Makefile.in (DISTFILES): Add getdate.texi.

Sat Dec  3 07:59:55 1994  Jim Meyering  (meyering@comco.com)

	* configure.in (AC_CHECK_FUNCS): Add strchr and strrchr.
	(AC_CHECK_HEADERS): Add stdlib.h.
	(LIBS): If the strtod replacement is required, check for pow in -lm.
	* src/Makefile.in (printf): Remove hard-coded -lm.  Not every
	system has it.

Thu Nov 17 23:47:26 1994  Jim Meyering  (meyering@comco.com)

	* who.c (list_entries): Delete.  Split in two actually...
	(list_entries_users, list_entries_who, userid_compare): New functions.
	(list_entries_users): Sort the user names.  Reported by
	Michael I Bushnell.
	Topologically sort the functions and remove fwd declarations.

Sat Nov 05 08:35:25 1994  Jim Meyering  (meyering@comco.com)

	* Version 1.12.

Fri Nov 04 06:01:00 1994  Jim Meyering  (meyering@comco.com)

	* Version 1.11.

Wed Nov 02 18:52:20 1994  Jim Meyering  (meyering@comco.com)

	* doc/Makefile.in (install): Remove test for existence of info
	file.  Simply change to $(srcdir) instead.

Wed Oct 26 23:40:07 1994  Jim Meyering  (meyering@comco.com)

	* safe-xstat.hin [EINTR]: Always define safe_l?stat.
	Define it __static -- which is `static' for most includers,
	but `/* empty */' for safe-xstat.cin.
	* safe-xstat.cin: Define __static to nothing so we get public
	safe_l?stat functions in the library.

	* Makefile.in (All actions invoking $(MAKE) from within compound
	(e.g. `for') sh statements): Exit non-zero if the sub-make fails.
	Otherwise, the top-level make may exit successfully when it should
	fail.  From Jim Kingdon (kingdon@cygnus.com).

Sun Oct 23 23:36:26 1994  Jim Meyering  (meyering@comco.com)

	* safe-xstat.hin: Don't use a statement expression here.
	Use an inline function instead.
	* safe-xstat.cin: Don't duplicate the definition of safe_l?stat here.
	Get the definition from safe-xstat.hin.

Fri Oct 21 00:57:23 1994  Jim Meyering  (meyering@comco.com)

	* man/Makefile.in: Fix typo that had su.1 being installed as
	`man/man1/.1'.  From Kjetil Torgrim Homme.

	* basename.c, dirname.c, expr.c, pathchk.c, sleep.c (main): Diagnose
	wrong number of argument -- usually too few -- instead of just
	referring the user to the --help option.  Reported by Karl Berry.

Mon Oct 17 23:55:41 1994  Jim Meyering  (meyering@comco.com)

	* doc/Makefile.in (install): Install the info files from either
	the source directory or the object directory.
	From Ian Lance Taylor (ian@cygnus.com).

Sun Oct 16 12:14:02 1994  Jim Meyering  (meyering@comco.com)

	* lib/Makefile.in (distclean): Don't delete getdate.c and posixtm.c
	here since they are not distributed.
	(realclean): Delete them here instead.
	From Francois Pinard.

Mon Oct 10 21:44:42 1994  Jim Meyering  (meyering@comco.com)

	* id.c (print_group_list, print_full_info): Use more precise
	feature tests.  Rather than assuming that a definition for
	NGROUPS_MAX implies the existence of the getgroups function,
	test for HAVE_GETGROUPS explicitly.
	* su.c (log_su): Likewise.  Similarly, check HAVE_INITGROUPS.
	Both from Kaveh Ghazi.  He reported that a Pyramid 9820 OSx 5.0d
	(Dual universe SVR3/BSD4.2) system had NGROUPS_MAX and syslog.h
	but not getgroups, initgroups or the syslog functions.

Fri Oct 07 19:42:35 1994  Jim Meyering  (meyering@comco.com)

	* doc/Makefile.in (sh-utils.dvi): Depend on version.texi.
	* version.texi: Use RELEASEDATE, not RELEASE_DATE.
	* sh-utils.texi: Likewise.

	* configure.in: Test for crypt in -lcrypt for NetBSD.
	Reported by Greg Hudson (ghudson@mit.edu).

	* system.h: Don't define lstat.  safe-l?stat.h does that now.

Thu Oct 06 21:14:07 1994  Jim Meyering  (meyering@comco.com)

	* src/Makefile.in (link_command): Remove $(CFLAGS).  Because
	the default value usually includes -g, Linux users were getting
	statically linked executables.  With this removal they'll get
	much smaller, dynamically linked ones by default.

	* lib/Makefile.in (safe-lstat.o): Depend on safe-stat.h, too.

Sun Oct 02 16:15:32 1994  Jim Meyering  (meyering@comco.com)

	* src/Makefile.in: Don't use binprefix.  Use autoconf-2's
	@program_transform_name@ instead.
	* man/Makefile.in: Likewise for manprefix.

	* safe-xstat.hin [!S_ISLNK]: Include safe-stat.h and define
	SAFE_LSTAT and safe_lstat to their symlink-ignorant counterparts.
	* lib/Makefile.in (extract_lstat, extract_stat): Add sed rules to
	extract the new cpp directives into safe-lstat.h, but not into
	safe-stat.h.

Sat Oct 01 00:14:10 1994  Jim Meyering  (meyering@comco.com)

	* system.h: Remove conditional definition of mode_t.
	configure takes care of this now.

	* configure.in: Add -l$lib (not $lib) to LIBS when checking
	for syslog.  From Kaveh Ghazi.

	* date.c (batch_convert): Use K&R style function definition.
	From Kaveh Ghazi.

	* date.c (main): When reading dates from a file with a +FORMAT-style
	user-specified format, don't print the leading `+'.  Franc,ois Pinard
	noticed this problem.
	Make an error message clearer.  From Franc,ois.

	* lib/Makefile.in (DISTFILES): Add getline.h.
	(SOURCES, OBJECTS): Add getline.c, getline.o.

	* safe-xstat.hin: Don't include <sys/types.h> or <sys/stat.h>.
	Otherwise, we'd lose when the includer has already included
	<sys/stat.h> on systems that aren't protected against multiple
	inclusion.  Add a note that those headers must be included before
	this one.  Don't include <config.h> either.
	* safe-xstat.cin: Include <sys/types.h> and <sys/stat.h> here instead.
	Include <config.h> here, too.
	Kaveh Ghazi reported this problem.

Fri Sep 30 22:40:21 1994  Jim Meyering  (meyering@comco.com)

	* date.c (main): Accept new option: (-f) --file=datefile.
	(batch_convert): New function.  Suggested by Karl Berry.

	* date.c (main): Diagnose use of conflicting options.
	Revamp non-option argument processing.
	Detect write errors.

	* lib/*.c, src/*.c: Remove CONFIG_BROKETS conditional.
	* lib/Makefile.in src/Makefile.in: Don't define it.

	configure.in (AC_CHECK_FUNCS): Add getcwd.  From Kaveh Ghazi.

	* safe-xstat.c.in, safe-xstat.h.in: Rename to safe-xstat.cin and
	safe-xstat.hin so the names don't exceed the 14-character limit.
	Reported by Kaveh Ghazi.

Mon Sep 26 19:49:40 1994  Jim Meyering  (meyering@comco.com)

	* configure.in: Don't use $su_cv_sys_tiocgwinsz_in_termios_h
	uninitialized.  From R. Bernstein <rocky@panix.com> and Kaveh Ghazi.
	(NICE_PRIORITY): Fix typo that caused omission from PROGS of nice
	and nohup on systems with nice but not setpriority.
	From Andreas Schwab.

Sat Sep 24 10:13:00 1994  Jim Meyering  (meyering@comco.com)

	* Makefile.in (stamp-h.in): Create using echo, not date.
	Using the latter could easily lead to rcs/cvs merge conflicts.
	* configure.in (stamp-h): Ditto, though this is less important
	because stamp-h isn't distributed.

	* nice.c (main): Revamp option processing to detect options
	like `--7' manually and pass the rest off to getopt_long.
	(isinteger): Use ISDIGIT.
	Use parse_long_options.

	* system.h: Include <ctype.h> and add IS* macros.
	* expr.c: Don't include <ctype.h> or define IS* macros since
	system.h now does that.
	* printf.c: Ditto.

	* date.c (usage): Add description of numeric modifiers.

	* printf.c (print_formatted): Declare DIREC_LENGTH size_t, not int.
	(print_esc_string): Ditto for LENGTH.
	* dirname.c (main): Cast string literal to (char*).
	* stty.c (wrapf): Declare first argument const char *.
	* tee.c (main, tee): More const dcls and casting.
	* who.c (read_utmp): New variable: size to avoid type warnings.
	All of these eliminate compilation warnings reported by
	Franc,ois Pinard.

	* doc/Makefile.in (DISTFILES): Add version.texi because generating
	that file now depends on having a version of date that can handle
	formats like `+%Y %B'.
	(version.texi): Generate RELEASE_DATE, too.
	* sh-utils.texi: Use RELEASE_DATE instead of hard-coded date.

	* long-options.h: Prepend underscores to arg names in prototype
	to avoid warnings about shadowing.

	* src/Makefile.in: Add dependencies on long-options.h.

	* configure.in: Make having autoconf-1.120 a prerequisite.

	* sh-utils.texi [INFO-DIR-ENTRY]: Add an entry for each `invoking'
	node.  Regularize punctuation, indexing, and xrefs.
	From Franc,ois Pinard.

	* date.c (usage): Tweak the usage message a little.
	Add `const' to more dcls.

	* stty.c: Add `const' to more dcls.
	* su.c: Ditto.
	* who.c: Ditto.

	* tee.c (main): Use _POSIX_SOURCE, not _POSIX_VERSION.

Sat Sep 17 15:48:10 1994  Jim Meyering  (meyering@comco.com)

	* (doc): New subdirectory with texinfo documentation.
	Thanks to Franc,ois Pinard and Karl Berry!
	Note however that it contains mainly the information from the
	`man' pages, so it is not good documentation.  But this way,
	at least we don't have to maintain the troff man pages anymore.

	* su.c: Test !HAVE_ENDGRENT and !HAVE_ENDPWENT rather than
	_POSIX_SOURCE to determine whether endgrent and endpwent should
	be defined away.
	* configure.in (AC_CHECK_FUNCS): Add endgrent and endpwent.

	* who.c: Test HAVE_SYS_PARAM_H rather than _POSIX_SOURCE
	to determine whether <sys/param.h> should be included.

	* date.c (main): Rewrite command-line argument handling code
	to give diagnostics for inconsistent options.

	* Makefile.in: Restructure dependencies using local-*
	and recursive-* targets to avoid evil double-colon rules.
	Although the actions assiciated with double-colon rules are
	run sequentially using GNU make-3.71, POSIX doesn't guarantee
	that behavior.	The next release may run them in parallel.
	Running the old rules in parallel would sometimes delete
	config.status before it was used in a subdirectory make.
	With several suggestions from Franc,ois Pinard.

Thu Sep 15 19:10:51 1994  Jim Meyering  (meyering@comco.com)

	* stty.c [VWERSE && !VWERASE]: Define VWERASE for AIX-3.2.5.

Sat Sep 03 00:41:53 1994  Jim Meyering  (meyering@comco.com)

	* lib/Makefile.in (safe-lstat.c, safe-lstat.h, safe-stat.c,
	safe-stat.h): Use $(srcdir) to find source files.
	(.c.o): Use -I. to get safe-lstat.h and safe-stat.h from the
	build directory.
	* src/Makefile.in (incl): Add -I../lib to get lib/safe-lstat.h and
	lib/safe-stat.h from the build directory.  From Michael I Bushnell
	<mib@geech.gnu.ai.mit.edu>.

	* Makefile.in: Remove rules to create installation directories.
	* {src,man}/Makefile.in: Put them here instead.

	* configure.in: Update to take advantage of autoconf 2.0 features.

Sat Aug 27 16:57:20 1994  Jim Meyering  (meyering@comco.com)

	* system.h [BROKEN_STAT_MACROS]: Remove unnecessary #ifdef's.
	From Francois Pinard.

Thu Aug 18 11:44:48 1994  Jim Meyering  (meyering@comco.com)

	* su.1: Explain why GNU doesn't support the `wheel group'.

Mon Aug 01 21:58:14 1994  Jim Meyering  (meyering@comco.com)

	* date.c: Add --utc option.  It will supercede --uct.
	Change references to `universal coordinated time' to
	correct `coordinated universal time'.  From Harris Boldt Edelman
	<hbe@red-eft.la.ca.us>.
	* date.1: Correct the documentation, too.

	* date.c (main, show_date): For -u, use gmtime instead of relying on
	localtime's ability to interpret the TZ enviroment variable.
	`date -u' failed (by reporting local time) on romp-ibm-bsd and PCs
	(DOS and OS/2) running emx 0.8h.  From R. Bernstein
	<rocky@watson.ibm.com>.

Sat Jul 30 07:52:27 1994  Jim Meyering  (meyering@comco.com)

	* nohup.sh: Separate `nice -5' from COMMAND with `--' to ensure
	that COMMAND isn't interpreted as an option to nice.
	* groups.sh: Similarly, separate each name from `id -Gn' with `--'.
	Karl Berry pointed out that `groups --help user' gave confusing
	diagnostics.

Tue Jul 26 11:33:53 1994  Jim Meyering  (meyering@comco.com)

	* su.c (main): Make copies of the password information we'll use
	so that log_su (through getlogin) doesn't clobber the static data.
	With suggestions from Francois Pinard.

	* system.h: Remove `|| defined(_POSIX_VERSION)' from test that
	decides whether to include <fcntl.h>.  From Francois Pinard.

Mon Jul 25 23:54:36 1994  Jim Meyering  (meyering@comco.com)

	* pathchk.c (dir_ok): Use SAFE_STAT.
	* test.c (test_stat, binary_operator, unary_operator): Use SAFE_STAT
	and SAFE_LSTAT.
	* who.c (print_entry):  Use SAFE_STAT.

	* test.c (group_member): Remove function.  Use the one broken out
	into group-member.c instead.

Fri Jul 15 00:23:17 1994  Jim Meyering  (meyering@comco.com)

	system.h: Remove unneeded decls of atof and atol.

Fri Jul 08 01:09:23 1994  Jim Meyering  (meyering@comco.com)

	stty.c (main): Initialize max_col (used by wrapf) before calling
	display_speed.  Otherwise, `stty speed' output a spurious newline.
	From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.

Sun Jul 03 08:44:00 1994  Jim Meyering  (meyering@comco.com)

	* configure.in [AC_HAVE_HEADERS]: Add sys/param.h, for
	definition of HAVE_SYS_PARAM_H, now tested in pathmax.h.

	* configure.in [AC_WORDS_BIGENDIAN]: Add it.  This macro is
	required by memcmp.c on big-endian systems.  Its absence was
	diagnosed by Lars Duening (duening@ibr.cs.tu-bs.de).

Sun Jun 19 00:18:06 1994  Jim Meyering  (meyering@comco.com)

	* nice.c (main): Accept options like `--5' (equivalent to `-n -5')
	instead of letting getopt give an `unrecognized option' error.

	* long-options.c: Require another argument: version_string.
	Don't include "version.h" or "system.h".
	* basename.c, dirname.c, echo.c, expr.c, hostname.c, printf.c,
	pwd.c, stty.c, test.c, yes.c: Adjust callers of parse_long_options
	accordingly.

Thu Jun 02 14:11:31 1994  Jim Meyering  (meyering@comco.com)

	* stty.c (main): Set max_col and current_col before running
	display_window_size.  Otherwise, `stty size' output a spurious
	newline.  From Bauke Jan Douma (bjdouma@xs4all.hacktic.nl).

Mon May 30 09:33:53 1994  Jim Meyering  (meyering@comco.com)

	* test.c (test_syntax_error, beyond): Add __attribute__ ((noreturn))
	so gcc will know enough not to give warnings.

Sun May 29 17:40:21 1994  Jim Meyering  (meyering@comco.com)

	* long-options.c: Move from src/ to lib/.
	* long-options.h: Ditto.
	* src/Makefile.in: Remove references to long-options.[ch].
	* lib/Makefile.in (SOURCES, OBJECTS): Add long-options.[co].

Fri May 27 18:20:18 1994  Jim Meyering  (meyering@comco.com)

	* stty.c [VFLUSH && !VFLUSHO]: Define VFLUSH0.
	Ultrix's termios.h defines VFLUSH, but not VFLUSHO.
	From Kjetil Torgrim Homme <kjetilho@ifi.uio.no>.

Thu May 26 08:46:32 1994  Jim Meyering  (meyering@comco.com)

	* configure.in [INSTALL]: Revert change of March 8.  autoconf
	has fixed this.

Thu May 19 01:10:20 1994  Jim Meyering  (meyering@comco.com)

	* Version 1.10.

	* lib/Makefile.in (DISTFILES): Add getdate.c and posixtm.c.

	* src/Makefile.in (users.c): Use cp if hard link fails.
	From Ian Lance Taylor.

	* Makefile.in (dist): Change package name from shellutils to sh-utils.
	That allows a hyphen and 5-character version number without exceeding
	the 14-character limit on file name length.  shellutils-1.10 would
	have been too long.
	* version.c: Update package name.

	* hostname.c: Include <sys/types.h> before "system.h".
	From Kaveh Ghazi and Karl Berry.

	* hostname.c (sethostname) [!HAVE_SETHOSTNAME && HAVE_SYSINFO &&
	HAVE_SYS_SYSTEMINFO_H && HAVE_LIMITS_H]: New function.  SVR4 systems
	prefer sysinfo over sethostname.
	* configure.in (AC_HAVE_FUNCS): Add sysinfo.
	(AC_HAVE_HEADERS): Add sys/systeminfo.h.
	From Kaveh Ghazi.

Fri May 13 09:45:23 1994  Jim Meyering  (meyering@comco.com)

	* lib/xgethostname.c (xgethostname): Call xmalloc outside the loop.
	Correct loop termination condition.

	* pwd.c: Include <sys/types.h> before "system.h".
	From Kaveh Ghazi.

	* {lib,man,src}/Makefile.in (Makefile): Use ../config.status
	instead of $(srcdir)/../config.status.  The latter didn't work
	for builddir != srcdir.  From Kaveh Ghazi.

	* Makefile.in (Makefile): Remove dependencies on */Makefile.in.
	Change the rule so running config.status creates only Makefile.
	(stamp-config): Have config.status generate only config.h.

	* {lib,man,src}/Makefile.in (Makefile): Add single dependency on
	Makefile.in and rule to make config.status create only Makefile.

	* hostname.c: New program.
	* hostname.1: New file.
	* Makefile.in (PROGS): Add hostname.
	(SOURCES): Add hostname.c
	* src/Makefile.in: Add rules and dependencies for hostname.
	* configure.in (AC_HAVE_FUNCS): Add sethostname.

	* pathchk.c (validate_path) [lint]: Initialize a variable to
	suppress `used before initialized' warning.

	* who.c: Correct gethostname prototype to indicate the function
	returns int, not char.

Sun May 01 08:38:18 1994  Jim Meyering  (meyering@comco.com)

	* who.c: Add #ifdefs to build the `users' executable.
	* src/Makefile.in: Add corresponding rules.
	* Makefile.in (PROGS): Add users.
	From Kaveh R. Ghazi <ghazi@noc.rutgers.edu>.
	* users.1: Document it.

Thu Apr 28 00:45:02 1994  Jim Meyering  (meyering@comco.com)

	* pwd.c: New program.
	* pwd.1: New file.
	* Makefile.in (PROGS): Add pwd.
	* lib/Makefile.in: (DISTFILES): Add pathmax.h.
	(SOURCES, OBJECTS): Add xgetcwd.c and xgetcwd.o respectively.
	* src/Makefile.in: Add rules and dependencies for pwd.

	* yes.c: Don't include version.h.

Mon Apr 18 19:54:24 1994  Jim Meyering  (meyering@comco.com)

	* documentation: Change uses of `pathname' and `path' as per
	GNU standards.

	* long-options.c (parse-long-options): Take a new argument,
	command_name, for use in --version output.
	* basename.c, dirname.c, echo.c, expr.c, printf.c, stty.c, test.c,
	yes.c (main): Update callers.

Wed Mar 30 08:53:21 1994  Jim Meyering  (meyering@comco.com)

	* configure.in: Use AC_SET_MAKE.
	* Makefile.in: Edit MAKE assignments into @SET_MAKE@.

Fri Mar 25 01:13:42 1994  Jim Meyering  (meyering@comco.com)

	* configure.in: Use AC_VERBOSE, AC_CHECKING, and AC_WARN instead
	of explicit echo commands.
	When checking for shadow password routines, make sure the function
	getspnam is available before defining HAVE_SHADOW_H.
	<dvldbg@cs.umu.se> reported that shadow.h exists on some
	linux system that did not have the function.

Tue Mar  8 10:29:13 1994  Jim Meyering  (meyering@comco.com)

	* configure.in [INSTALL]: When AC_PROG_INSTALL resorts to setting
	this to `./install.sh', make it `../install.sh' instead since that
	script will be invoked only from subdirectories.
	[WINSIZE_IN_PTEM]: Check for this unconditionally, rather than
	only when TIOCGWINSZ is not defined through termios.h.  The old
	method loses on SCO ODT 3.0 systems.

Sat Feb 19 14:23:14 1994  Jim Meyering  (meyering@comco.com)

	* Version 1.9.4.

	* stty.c (main): Use getopt_long_only with "ag" instead of
	getopt_long with "".  The latter incremented optind so the
	-a and -g options weren't recognized.

	* Version 1.9.3.

Tue Feb 15 18:28:28 1994  Jim Meyering  (meyering@comco.com)

	* stty.c (main): Use getopt only to recognize long options.
	Hand code the loop to detect -a, -g, -ag and -ga.  Using getopt
	to detect the short options loses (because we have to ignore
	unrecognized options and we are allowing GNU getopt to permute)
	because e.g. `-tabs' is interpreted as a group of options, one of
	which is `-a'.  Before, running `stty -tabs echo' gave this error:
	  stty: when specifying an output style, modes may not be set
	Reported by Arne H. Juul.

Sun Feb 13 13:34:25 1994  Jim Meyering  (meyering@comco.com)

	* basename.1, dirname.1, stty.1: Reflect usage changes.
	* basename.c, dirname.c, stty.c (usage): Ditto.

	* long-options.h (parse_long_options): Invoke usage function
	argument with explicit dereference as per GNU coding standards.

	* basename.c dirname.c: Use parse_long_options instead of the
	conventional getopt_long paradigm.  Before, the commands
	`basename file-dist -dist' and `basename -- file.c .c' produced
	incorrect results.  Now, even `basename -file-dist -dist' works
	and the command `basename -- file.c .c' fails for the right
	reason: the `--' is not a special (to getopt) token for these
	commands.  It is interpreted as the filename, so there are too
	many arguments to basename.  Rick Sladkey <jrs@world.std.com>
	reported the problem with basename.

	* stty.c (set_window_size): When stty fails to get the window size
	(as happens on telnet sessions to Solaris systems), initialize all
	fields of the winsize struct.  Before, it was using the uninitialized
	pixel fields of the struct in the ioctl to set window size parameters.
	From Rick Sladkey.

	* stty.c (main): Use parse_long_options to handle --help and --version.
	(main): In the remaining getopt_long loop, don't jump out of the
	loop from the `default' branch of the switch statement.  Doing that
	left optind in an inconsistent when there were non-option arguments
	preceding `reversed' arguments (e.g. stty echo -echoe) and the
	preceding non-option arguments were ignored.  Rick Sladkey reported
	that stty was ignoring arguments.

	* stty.c (main): Fail with a diagnostic when both -g and -a are given.
	(main): Fail with a diagnostic when either -g or -a is used with
	arguments for setting modes.

Fri Feb 11 19:39:37 1994  Jim Meyering  (meyering@comco.com)

	* stty.c (get_win_size): Don't use an ANSI-style function
	definition.  From Kaveh R. Ghazi <ghazi@noc.rutgers.edu>.

Thu Feb 10 01:22:37 1994  Jim Meyering  (meyering@comco.com)

	* stty.c [CSWTCH] (__sparc__ && __svr4__): Define `swtch' to
	_POSIX_VDISABLE by default.  Otherwise, the default settings on
	SunOS 5.3 (from /usr/include/sys/termios.h) have both `swtch'
	and `susp' set to ^Z.  Those default settings are not unusual.
	What is unusual is that with such settings on SunOS 5.3, the tty
	driver doesn't generate a signal for control-Z.  Reported by
	Brent Wiese <brent@dot.imgen.bcm.tmc.edu>.

	* stty.c (main) [CIBAUD]: Don't report an error on SunOS 4.1.x
	systems if the only difference is in this nybble of c_cflag.
	See the comments for the gory details.  Thanks to
	Erez "HWank1" Zadok <ezk@cs.columbia.edu> for reporting this
	and helping me reproduce it.

Tue Feb 01 00:59:56 1994  Jim Meyering  (meyering@comco.com)

	* stty.c (main): Call tcsetattr only if we've updated tty modes,
	not e.g. if we've changed the window size.

	* Update Copyright dates in src/*.

Fri Jan 28 11:02:21 1994  Jim Meyering  (meyering@comco.com)

	* configure.in: Don't set LDFLAGS since linking now uses both
	LDFLAGS and CFLAGS.

Wed Jan 26 10:54:02 1994  Jim Meyering  (meyering@comco.com)

	* stty.c (get_win_size): New function.  Try getting size first
	for the device on stdout.  Try stdin only if that fails.  Suggested
	by Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
	(set_win_size): Call get_win_size instead of calling ioctl directly.
	(display_window_size): Ditto.
	(screen_columns): Ditto.

Mon Jan 24 22:57:18 1994  Jim Meyering  (meyering@comco.com)

	* stty.c (set_window_size): Work around SunOS 4.x kernel bug that
	makes `stty rows 34 cols 80;stty rows 0;stty cols 0' incorrectly
	set rows to 80 and columns to 0.  Sun's stty has this problem, too.
	The kernel bug is fixed in Solaris 2.  Mostly from Alexander Dupuy
	<dupuy@cs.columbia.edu>.

	* src/Makefile.in: Use both LDFLAGS and CFLAGS when linking.
	* man/Makefile.in: Use binprefix as the default manprefix.

	* nohup.sh: Redirect usage message to stderr.
	From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.

Thu Jan 13 17:27:38 1994  Jim Meyering  (meyering@comco.com)

	* src/Makefile.in: Change all link commands to use both $(CFLAGS)
	and $(LDFLAGS).

Mon Jan 10 01:20:38 1994  Jim Meyering  (meyering@comco.com)

	* man/Makefile.in (manprefix): Use binprefix as the default.

Thu Jan 06 18:19:06 1994  Jim Meyering  (meyering@comco.com)

	* who.c (print_entry): Prepend `/dev/' only if ut_line is not
	already an absolute filename.  Just to be safe.

Fri Dec 31 00:22:59 1993  Jim Meyering  (meyering@comco.com)

	* date.c (usage): Reorder listing of % formats in `sort -f' order.

Tue Dec 28 15:49:32 1993  Jim Meyering  (meyering@comco.com)

	* install.sh: New file.
	Makefile.in [DISTFILES]: Add it.

	* who.c (read_utmp): Use stdio functions instead of open/read/close
	to avoid having to handle POSIX read's -1/errno=EINTR failure case.

	* tee.c (tee): A POSIX implementation of the read system call
	may return -1 and set errno to EINTR when it is interrupted.
	Retry instead of failing with an error.
	(tee): Don't use xwrite.  Use full_write instead and include the
	losing file name in the message reporting a write failure.
	Don't treat standard output as a special case, so a failed write
	to stdout doesn't exit immediately.

	* date.c (usage): Note that for %w, 0 corresponds to Sunday.

Sat Dec 25 23:15:58 1993  Jim Meyering  (meyering@comco.com)

	* who.c (main): Don't chdir ("/dev") for the stat in print_entry.
	(print_entry): Instead of stat'ing the /dev-relative path, ut_line,
	stat the absolute path with "/dev/" prefix.  From David MacKenzie.

Wed Dec 22 00:53:51 1993  Jim Meyering  (meyering@comco.com)

	* expr.c (toarith): Interpret the empty string as just that
	rather than as the integer zero.
	Before, `expr "" == 0' output 1.  Now it prints 0.

	* configure.in (AC_HAVE_HEADERS): Check for float.h for strtod.c.

	* configure.in (check for TIOCGWINSZ): Don't look in sys/ioctl.h
	or sys/ptem.h if we've already found it in termios.h.  This
	eliminates redefinition warnings from including both termios.h
	and sys/ioctl.h on sytems running SunOS.  From Matthew Seaman
	(matthew@dyson.ox.ac.uk).

	* date.1: Document new %s format and old `-' and `_' numeric field
	modifiers.

	* memcmp.c: Use the latest version from GNU C library.

Mon Dec 20 23:29:30 1993  Jim Meyering  (meyering@comco.com)

	* configure.in [test for 8-bit clean memcmp]: Add a test to detect
	losing memcmp from SunOS4.1.x.  From Robert H. de Vries
	<robert@and.nl>.

Sat Dec 18 01:12:24 1993  Jim Meyering  (meyering@comco.com)

	* configure.in (AC_OUTPUT): Put `touch stamp-config' in second arg
	so it goes in config.status.  This eliminates unnecessary second run
	of configure.

Fri Dec 10 01:06:28 1993  Jim Meyering  (meyering@comco.com)

	* stty.c (screen_columns): Instead of dying just because Solaris'
	`ioctl (0, TIOCGWINSZ' fails (strangely only for telnet sessions,
	not rlogin sessions), ignore its errno == EINVAL and try to get
	the number of columns another way.

	* stty.c (set_window_size): If ioctl to get window size fails,
	(as on telnet sessions to Solaris 2.[12] systems) try to set the
	requested fields anyway, setting to zero any unspecified fields.
	This is what Sun's /bin/stty appears to do.
	* (display_window_size): Don't display anything for the number
	of rows and columns if the ioctl call intended to get them fails.

Tue Nov 30 23:58:54 1993  Jim Meyering  (meyering@comco.com)

	* Version 1.9.2.

Mon Nov 29 00:28:35 1993  Jim Meyering  (meyering@comco.com)

	* stty.c, configure.in, acconfig.h: Revert change of Nov 26.
	I am no longer able to reproduce the behavior that prompted
	that patch -- but I had tested only using an old version of gcc.
	When building with a more recent version of gcc or with /bin/cc
	there is no problem.

Sat Nov 27 15:11:21 1993  Jim Meyering  (meyering@comco.com)

	* nice.c (main): If an adjustment is specified, but no command is
	given, give a diagnostic in addition to the usage message.
	(isinteger): Accept a leading `+'.

Fri Nov 26 18:49:42 1993  Jim Meyering  (meyering@comco.com)

	* stty.c [GWINSZ_BROKEN]: Define TIOCGWINSZ to TCGETS for Solaris-2.2.
	On that system, ioctl (0, TIOCGWINSZ, &win) always fails, but using
	TCGETS works.  Reported by Francois Pinard.

	* configure.in [GWINSZ_BROKEN]: New test to detect Solaris' inability
	to get window size from ioctl using TIOCGWINSZ.
	* acconfig.h [GWINSZ_BROKEN]: Add an #undef.

Mon Nov 22 23:40:21 1993  Jim Meyering  (meyering@comco.com)

	* who.c [defined (UTMPX_FILE)]: (undef and) define UTMP_FILE to
	this value even if UTMP_FILE is already defined.  Because some
	systems define both symbols.  From Arne H. Juul.
	* [MESG_BIT]: Rename to S_IWGRP (from sys/stat.h>) and define only
	if not already defined.

Fri Nov 19 23:08:03 1993  Jim Meyering  (meyering@comco.com)

	* who.c (print_entry): Produce reasonably formatted output even when
	sizeof (this->ut_name,ut_line) are much larger than 8.  For Solaris
	and other SysVr4.  With help from Arne H. Juul.
	* configure.in (HAVE_UTMPX_H): New test; combined with test for the
	ut_host field.  From Arne H. Juul.

	* memcmp.c: New file.
	* lib/Makefile.in [SOURCES]: Add memcmp.c.
	* configure.in (AC_REPLACE_FUNCS): Add memcmp.
	Add test for 8-bit clean memcmp.

	* configure.in (AC_HAVE_FUNCS): Add isascii.
	* expr.c [!defined (isascii) || defined (STDC_HEADERS)]: This failed
	on AIX PS/2 1.3 systems because isascii is a function and it is used
	in definitions (with the necessary side effect of assigning to a
	global variable) of the is* macros.  Also test HAVE_ISASCII and
	redefine ISASCII(c) instead of isascii.
	Reported by Minh Tran-Le (tranle@intellicorp.com).
	* printf.c: Ditto.

	* configure.in (AC_HAVE_HEADERS): Add sys/timeb.h; getdate.y tests
	HAVE_SYS_TIMEB_H.

	* stty.c (main): Detect the case in which POSIX-conformant tcsetattr
	fails and still returns zero.

Wed Nov 17 21:05:10 1993  Jim Meyering  (meyering@comco.com)

	* yes.c (main): Complete my half-finished Nov 2 change.
	yes with arguments did not print newlines.  From Andreas Schwab
	(ls5.informatik.uni-dortmund.de).

	* stty.c (wrapf): Fix off-by-one error that could make `stty -a'
	output lines one character too long.  From Andreas Schwab.

Sat Nov 13 00:11:19 1993  Jim Meyering  (meyering@comco.com)

	* Version 1.9.1.

	* configure.in [LIBS]: Add -lbsd if that is necessary to get the
	syslog function.  With help from Kaveh Ghazi.

	* configure.in [LIBS]: Reorganize/unify the code that adds libraries
	solely to resolve syslog.  Add a library only if it is required to
	resolve the syslog reference.

	* configure.in [AC_HAVE_HEADERS]: Check for sys/timeb.h.
	getdate.y needs to know.
	[LIBS]: Check for initgroups in -los.  This is required by SCO-ODT-3.0
	when linking su.
	[LIBS]: Check -lufc for crypt.
	Reported by Steven W Orr (steveo@world.std.com).

Thu Nov 11 23:55:48 1993  Jim Meyering  (meyering@comco.com)

	* id.c [NGROUPS_MAX]: Undefine before redefining.
	From Kaveh R. Ghazi (ghazi@noc.rutgers.edu).

	* who.c (list_entries): Trim any trailing blanks from ut_name
	and make sure the string is NUL-terminated before printing it.
	Before, `who -q' displayed 8-character names with a tty
	(e.g. `q1') suffix.

	* stty.c [CFLUSHO]: Move this definition so it follows the
	one for VFLUSHO.

Mon Nov 08 23:16:36 1993  Jim Meyering  (meyering@comco.com)

	* Version 1.9.

	* su.c (correct_password): Report an error and fail if getpass
	returns NULL.

Tue Nov 02 01:14:21 1993  Jim Meyering  (meyering@comco.com)

	* acconfig.h: Add comments.

	* printenv.c (main): Exit with status == 2 for file error.

	* yes.c (main): Restore argv/optind handling -- now that
	parse_long_options doesn't change optind.

Mon Oct 25 19:22:58 1993  Jim Meyering  (meyering@comco.com)

	* basename.c, date.c, dirname.c, echo.c, env.c, expr.c, id.c,
	logname.c, nice.c, pathchk.c, printenv.c, printf.c, sleep.c,
	stty.c, su.c, tee.c, test.c, tty.c, uname.c, who.c, whoami.c,
	yes.c: Use the preferred `--longopt=arg' syntax in --help message
	rather than `--longopt arg'.  From Francois Pinard.

	* stty.c (main, integer_arg): Don't just call error(1,... about
	improper usage.  Call `error (0,...' then usage (1).

Sun Oct 24 14:10:23 1993  Jim Meyering  (meyering@comco.com)

	* test.c [member]: Don't try to cast index return value to an int.
	That can lose on systems with 64-bit pointers.

	* long-options.c: Save and restore optind, too.
	* long-options.h: New file.
	* long-options.c, echo.c, expr.c, printf.c, test.c, yes.c:
	Include it instead of duplicating dcls.
	* src/Makefile.in: Add dependencies for it.

Tue Oct 19 00:26:27 1993  Jim Meyering  (meyering@comco.com)

	* expr.c [!__STDC__]: Don't define away `const'.  configure alone
	decides whether to do that.  From Francois Pinard.

Sat Oct 16 22:32:54 1993  Jim Meyering  (meyering@comco.com)

	* whoami.c (main): Cast printf arg UID so it matches the type
	expected by %u format no matter how uid_t is defined.

	* stty.c: Accept `status' option and VDISCARD as an alias for
	VFLUSHO.  From Arne H. Juul (arnej@imf.unit.no).

	* basename.c, date.c, dirname.c, echo.c, env.c, expr.c,
	false.sh, groups.sh, id.c, logname.c, long-options.c, nice.c,
	nohup.sh, pathchk.c, printenv.c, printf.c, sleep.c, stty.c,
	su.c, tee.c, test.c, true.sh, tty.c, uname.c, who.c, whoami.c,
	yes.c: Using --help gets long well- formatted help.  Now --help
	writes to stdout and exits successfully.  From Francois Pinard
	<pinard@iro.umontreal.ca>.

Wed Oct 13 13:10:27 1993  Jim Meyering  (meyering@comco.com)

	* long-options.c: Include sys/types before system.h.
	From Franc,ois Pinard (pinard@iro.umontreal.ca).

Tue Oct 12 00:53:26 1993  Jim Meyering  (meyering@comco.com)

	* stime.c [HAVE_CONFIG_H, CONFIG_BROKETS]: Include <config.h>
	or "config.h".

	* src/Makefile.in [clean]: Also delete '['.

Sun Oct 10 14:05:23 1993  Jim Meyering  meyering@comco.com

	* false.sh, groups.sh, nohup.sh, true.sh: Add --help and --version.
	* src/Makefile.in (false, groups, nohup, true): Substitute the string
	from version.c for @VERSION@ in *.sh.

Sat Oct  9 23:12:53 1993  Jim Meyering  meyering@comco.com

	* configure.in: Remove AC_UNISTD_H; add unistd.h to AC_HAVE_HEADERS.

Tue Oct  5 22:18:05 1993  Jim Meyering  meyering@comco.com

	* tty.c (main): Detect write error.  Use isatty (rather than
	testing whether ttyname() is NULL) to determine exit status
	because ttyname may return NULL when stdin is a terminal device.

	* expr.c (eval7): Rewrite if-else-if-else... sequence to avoid a
	spurious `function returns without a value' warning.

	* printenv.c (main), tty.c (main): Detect and report write errors.

	* echo.c, patchchk.c, printenv.c, printf.c, sleep.c, stty.c, su.c,
	tee.c, test.c, tty.c, uname.c, yes.c: Accept --help and --version
	options.

	* long-options.c: New file.  To let echo, expr, printf, test, and
	yes accept --help and --version as unobtrusively as possible.
	* src/Makefile.in [SORUCES]: Add it.

	* configure.in: Add AC_TIME_WITH_SYS_TIME and AC_STAT_MACROS_BROKEN.

	* nice.c (main) [NICE_PRIORITY]: When given an argument, don't
	try to get current priority.  nice() requires only the delta;
	we don't need to compute the absolute priority as for setpriority.

Mon Oct 04 22:15:07 1993  Jim Meyering (meyering@comco.com)

	* who.c (print_entry, print_heading, who_am_i):
	Cast printf field width arguments to int to avoid warnings.
	(idle_string): Cast idle seconds and minutes to int.
	Declare functions read_utmp and idle_string to be static.
	Don't declare ttyname as static.

	* echo.c (just_echo): Use putchar instead of printf.

	* expr.c (parse_long_options): New function.
	(main): Use it to handle --version and --help properly.

	* tee.c (main): Put entire #ifdef inside if-braces to make structure
	clearer.
	(main, tee): Compare close() != 0 rather than close () == -1.

	* pathchk.c (portable_chars_only, dir_ok): Make a couple variables
	const.

Wed Sep 08 00:07:36 1993  Jim Meyering (meyering@comco.com)

	* test.c [advance, unary_advance]: Rewrite using do{...}while(0)
	paradigm instead of comma expressions that make Alpha OSFv1.3
	C compiler segfault.

	* basename.c, date.c, dirname.c, env.c, id.c, logname.c, nice.c:
	Add --help and --version options.

Sat Jul 24 08:52:18 1993  Jim Meyering (meyering@comco.com)

	* configure.in: Check for -lshadow.  Linux needs it when using shadow
	passwords.  Reported by Mattias Olofsson <mattias@lysator.liu.se>.

Thu May 27 20:05:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)

	* configure.in (c_line test): Add missing `fi'.

Tue May 18 23:49:26 1993  Jim Meyering (meyering@comco.com)

	* mkinstalldirs: New file.
	* Makefile.in (installdirs): Use it.

Thu May 13 01:03:16 1993  Jim Meyering (meyering@comco.com)

	* Makefile.in (installdirs): New rules for creating installation
	directories. (install): depend on it.

Mon May  3 22:09:24 1993  Jim Meyering (meyering@comco.com)

	* configure.in: Add AC_GETGROUPS_T.
	* id.c, test.c: Don't define GETGROUPS_T.  Now configure does it.

Sun May  2 00:21:05 1993  Jim Meyering  (meyering@comco.com)

	* expr.c (eval6): Terminate result with a zero byte.
	The command `expr substr xx 1 2' would fail on systems with
	tight malloc.  From Steve James <smj@cats.COM>.

	* expr.c (null): Recognize the string `0' as zero.
	(divide, mod): Upon request to divide by zero, give an error
	message instead of dumping core.
	From J.T. Conklin <jtc@wimsey.com>.

	* configure.in: Check for sys/time.h; getdate.y needs it for
	structs timeval and timezone on some systems.
	* Check for gettimeofday and for `struct tm'.
	* Add existence tests for memcpy and bcopy.

	* configure.in: Find a parser generator.

	* putenv.c: Include stdlib.h only if __GNU_LIBRARY__ is defined.
	Many vendor-supplied <stdlib.h> have a declaration of putenv that
	conflicts with ours.

Tue Apr 20 02:33:24 1993  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)

	* stty.c: Use GWINSZ_IN_SYS_IOCTL, not _AIX, to determine
	whether sys/ioctl.h is needed to support `stty size'.

Thu Apr  1 18:03:47 1993  Jim Meyering  (meyering@comco.com)

	* printf.c, expr.c [isascii]: Undefine before redefining.

Sun Mar 28 00:07:45 1993  Jim Meyering  (meyering@comco.com)

	* stty.c: Accept `flush' option.  From Arne H. Juul arnej@lise.unit.no
	* system.h: Don't define r?index, bcopy... if they're already defined.

Thu Mar 25 22:41:01 1993  Jim Meyering  (meyering@comco.com)

	* configure.in: Add AC_IRIX_SUN to get -lsun because
	Irix-4.0.5's libc.a doesn't have yp/NIS entrypoints.
	From Kjetil Wiekhorst J|rgensen <jorgens@pvv.unit.no>.

Fri Mar 05 00:02:53 1993  Jim Meyering  (meyering@comco.com)

	* date.c: Add long-named options.

Sun Dec  6 23:17:09 1992  Jim Meyering  (meyering@comco.com)

	* date.c: Remove unused definition of isdigit.
	* expr.c (toarith): Change single use of isdigit to ISDIGIT.
	* printf.c (print_formatted, print_esc): Define ISDIGIT and
	ISXDIGIT and use them instead of isdigit and isxdigit.

Wed Dec  2 12:49:11 1992  Jim Meyering  (meyering@comco.com)

	* env.c, id.c, nice.c, pathchk.c, stty.c, su.c, tee.c, tty.c,
	uname.c, who.c: Convert static declarations of struct option
	to use new macros from getopt.h: no_argument, required_argument,
	and optional_argument.

Tue Nov 24 09:46:02 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)

	* echo.c: Use V9_DEFAULT instead of USG.  Define it always.

	* system.h: Use HAVE_FCNTL_H and HAVE_STRING_H instead of USG.

Wed Nov 11 18:19:10 1992  Jim Meyering  (meyering@hal.gnu.ai.mit.edu)

	* All files in src: Make all functions and extern variables static.
	Make all longopts arrays const as well as static.
	Make a couple statically initialized aggregates `const.'

	* pathchk.c (portable_chars_only): Cast char used as array index.

	* echo.c (main), su.c (restricted_shell): Add parentheses to
	assignment statements used in boolean context.

	* stty.c (set_mode): Parenthesize expressions with bit operations
	to correctly set/reset modes bits.

Wed Oct 28 14:16:48 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)

	* Version 1.8.

	* stty.c: Accept Irix VRPRNT for VREPRINT.
	From Jim Meyering.

	* stty.c: Fix some type mismatches.  From Bruce Evans, bde@runx.oz.au.

	* who.c (read_utmp): Close file on error.
	From Bruce Evans.

	* su.c, test.c: Add some decls.  From Bruce Evans.

	* sleep.c (main): Arg to sleep is unsigned, not long.
	From Bruce Evans.

Fri Sep 11 00:25:52 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)

	* echo.c, echo.1: New files.

Thu Sep 10 18:42:44 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)

	* pathchk.c (main): Don't strip trailing slashes from args;
	they might make a path invalid.
	(portable_chars_only, dir_ok): New functions.
	(validate_path): Renamed from validate_new_path.
	Call them.  Don't complain if a leading
	dir doesn't exist.  Don't replace `parent' with a dir that
	doesn't exist.  Don't print a message when falling back
	from pathconf to constant values.

	* who.c [!UTMP_FILE]: If _PATH_UTMP is defined, use it instead
	of /etc/utmp.  From Marc Boucher <marc@cam.org>.

Tue Aug 25 17:02:25 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)

	* Version 1.7.

	* groups.sh, nohup.sh: Add $(bindir) to front of path.

Mon Aug 24 16:39:39 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)

	* stty.c: make sane value for "min" 1, not 0.
	From haible@ma2s2.mathematik.uni-karlsruhe.de (Bruno Haible).

Sun Aug 23 03:02:07 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)

	* id.c, test.c: Use NGROUPS_MAX if it's defined.  386BSD is like sun.

Sat Aug 22 03:16:41 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)

	* test.c: Rename STANDALONE to TEST_STANDALONE to avoid IBM RT
	ACIS sys/param.h conflict.

	* su.c (correct_password) [HAVE_SHADOW_H]: Try to get the
	encrypted correct password from the shadow password file.

Fri Jul 17 15:25:01 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)

	* su.c, getusershell.c: New files.

Fri Jul  3 15:08:43 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)

	* stty.c, who.c: Change FOO_MISSING to HAVE_FOO.

Fri Jun  5 01:49:29 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)

	* strcspn.c: New file.

	* expr.c: Misc. cleanups.

	* expr.c (eval7): Renamed from eval6.
	Give syntax error if no more args.  Don't coerce all values to numbers.
	(eval6): New function.
	(eval5): Accept == as a synonym for =.
	(eval2): Coerce values to numbers for comparisons.
	Above all from Dana Jacobsen (jacobsd@prism.cs.orst.edu).

Thu Jun  4 19:32:09 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)

	* printf.c (print_formatted): Move main loop into new function.
	(main): Add an outer loop to use the format multiple times.
	(verify): Don't reject a completely empty string.
	Check errno (for overflow).

	* false.sh, true.sh: New programs.  Oh, boy.

Thu May 14 01:17:22 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)

	* stty.c (set_mode): Support crt and dec modes partially if
	necessary, so they work on, for example, Ultrix . . . .

Wed May 13 14:47:45 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)

	* stty.c (set_mode): Swap nl and -nl.  Have them also affect
	output as well as input.

Tue May 12 00:07:28 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)

	* date.c (show_date): Use strftime for the whole conversion.

Tue May  5 15:20:24 1992  David J. MacKenzie  (djm@hal)

	* stty.c (wrapf): Print the formatted buffer; don't redo the
	formatting using vprintf.

Thu Apr 30 01:17:08 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)

	* printf.c (xstrtol, xstrtoul, xstrtod, verify): New functions.
	(main, print_direc): Use them.  Make error messages more specific.

	* tee.c (tee): Only malloc and free the table of file descriptors
	if >0 files are given.

Fri Apr 17 11:56:48 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)

	* pathchk.c (validate_new_path): Print the name of the component that
	failed the length test, not the whole path.
	From Andreas Schwab (schwab@ls5.informatik.uni-dortmund.de).

Mon Apr  6 15:11:36 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)

	* who.c (read_utmp): Check close return for error.
	(print_heading): Align columns based on sizes of utmp members.
	(who_am_i): Skip past /dev/ instead of skipping leading path.

Mon Mar 16 23:47:03 1992  David J. MacKenzie  (djm@apple-gunkies.gnu.ai.mit.edu)

	* date.c (show_date): Don't call strftime if FORMAT is the
	empty string.

	* date.c (main): Reorganize to reduce duplicated code.
	Add -d option.
	(usage): Document -d.
	(set_date): Function removed.

Tue Feb 11 16:12:18 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* printf.c (print_esc): When a numeric escape is given,
	don't call print_esc_char, and return 1 less.
	From Thorston Ohl.

Mon Jan 20 02:17:18 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* Version 1.6.

	* test.c: HAVE_MULTIPLE_GROUPS -> HAVE_GETGROUPS, for bash 1.11.

Fri Jan 17 15:46:18 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* expr.c (docolon): Use re_nsub to find the number of
	subexpressions . . . From Karl Berry, who knows.

Wed Dec 25 23:27:53 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* expr.c (docolon): Use the new way (re_regs.num_regs > 0) to find
	out if there were any subexpressions, instead of the old way
	(re_regs.start[1] >= 0), which can cause random memory
	accesses with regex 0.1.  From Brian Matthews.

Tue Dec 24 02:12:15 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* system.h, id.c, pathchk.c, tee.c: Change POSIX ifdefs to
	HAVE_UNISTD_H and _POSIX_VERSION.

Wed Dec 11 13:15:09 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* Version 1.5.

	* expr.c (main): Set obscure_syntax to tell re_match to
	allocate memory for the group registers.

Mon Dec  9 16:03:14 1991  Charles Hannum  (mycroft at hal.gnu.ai.mit.edu)

	* who.c (list_entries): Check type == USER_PROCESS if defined, for SysV.

Sat Dec  7 00:32:02 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* Version 1.4.

	* env, id, nice, pathchk, stty, tee, tty, uname: Change usage
	messages and documentation to list long-named options starting
	with `--' rather than `+'.

	* env.c (main), nice.c (main): Simplify test for which exit
	status to use if exec fails.

Fri Dec  6 23:49:42 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* tee.c (main) [POSIX]:  Use sigaction instead of signal, which
	POSIX doesn't have.

Fri Oct 18 00:31:35 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* test.c (two_arguments): Fix from Chet.

	* expr.c: Include regex.h after sys/types.h, not before, so
	size_t gets defined.

	* test.c: New version, adapted from bash 1.10.

	* id.c: GID_T -> GETGROUPS_T, for clarity.

Sat Oct 12 14:38:34 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)

	* configure: Define uid_t and gid_t as int if they're not
	defined in sys/types.h.  That's probably right for old Unixes
	and avoids trying to find the C preprocessor.

Sat Sep 28 13:01:23 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)

	* stty.c (set_mode): Make `raw' and `cooked' not change parity
	and character size, which would probably make them useless on
	7-bit lines.
	Make `raw' set the `time' character to 0, not 1.
	From Bruce Evans.

	* nohup.sh: If creating nohup.out, give it mode 0600, for POSIX.

Fri Sep 13 14:59:51 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)

	* id.c [POSIX]: Always use sysconf to get NGROUPS_MAX.

Thu Aug 29 14:43:07 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* test.c: Don't include sys/file.h if POSIX.
	Use gid_t for getgroups.

	* stty.c (set_mode): Use CEOF and CEOL instead of hardcoding them.
	(display_speed): Fix a printf string type mismatch.
	From Bruce Evans.

Mon Aug 26 16:52:51 1991  David J. MacKenzie  (djm at pogo.gnu.ai.mit.edu)

	* configure, src/Makefile.in, lib/Makefile.in: Only put $< in
	Makefiles if VPATH is being used, because older makes don't
	understand it.

Mon Aug 19 01:57:46 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* Version 1.3.

Sat Aug 17 22:48:15 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)

	* src/Makefile.in (install): Install a link to test called '['.

Wed Aug 14 12:22:57 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)

	* test.c (unary_operator): Check first char of string, not its address.

Sun Aug 11 18:10:30 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* Version 1.2.

	* system.h: Define S_IFMT if needed, for test.c.

	* test.c: New file, from bash.

	* nice.c: Change +priority to +adjustment (more accurate).

Sat Aug 10 13:09:51 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* stty.c [WINSIZE_IN_PTEM]: sys/ptem.h requires sys/stream.h.

	* nice.c, configure: Use nice if available and setpriority is missing.

Thu Aug  8 01:34:05 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* date.c: USG needs TZ=GMT0 for UCT timezone, also.

	* stty.c: Add pass8 and litout modes.

Sun Aug  4 22:45:51 1991  David J. MacKenzie  (djm at wheat-chex)

	* Version 1.1.

Fri Aug  2 13:22:31 1991  David J. MacKenzie  (djm at apple-gunkies)

	* configure: Implement +srcdir.  Don't check for bison.

	* stty.c: Don't change ixon in "sane" mode.

	* configure: Use 1 instead of 255 for checking tzname,
	because of signedness.

Thu Aug  1 13:40:58 1991  David J. MacKenzie  (djm at apple-gunkies)

	* printenv.c (main): Don't print the variable names when given
	args, as people seem to use printenv in scripts after all . . . .

	* stty.c: Don't change parity or character size settings in
	"sane" mode.  The right values for those depend on the hardware.

Wed Jul 31 01:19:01 1991  David J. MacKenzie  (djm at hal)

	* stty.c [_AIX]: Include sys/ioctl.h -- needed on
	AIX to get window size.

Tue Jul 30 00:06:54 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* getdate.y: New file.
	* date.c: Add -s option to set date in English.
	* configure: Check for ftime.

	* date.c: Remove COMPUTE_TM_ZONE code, which didn't work.
	* configure: Instead of checking whether tzname is declared,
	check whether it exists.

	* logname.c (main): Go back to just printing an error message
	if getlogin fails, as required by POSIX.

	* stty.c (screen_columns, wrapf): New functions to implement
	output wrapping.
	Globally: use them.

	* configure: Define uid_t and gid_t if sys/types.h doesn't.
	* system.h: Define F_OK et al. if nothing else does.

Mon Jul 29 21:11:16 1991  David J. MacKenzie  (djm at wombat.gnu.ai.mit.edu)

	* pathchk.c (validate_new_path): Rearrange tests so that
	pathconf is only called on existing directories.  Use access
	instead of stat to determine directory searchability.
	From Jim Meyering.

	* stty.c, configure: Add WINSIZE_IN_PTEM and GWINSZ_BROKEN for SCO.

Wed Jul 24 02:13:31 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* stty.c (sane_mode): Always set control chars to sane values.
	Set min and time if they're different from eof and eol.

	* whoami.c: Print UID as unsigned.
	* logname.c: Do "whoami" if getlogin fails.

	* logname.c (main): fprintf was missing an arg.

Tue Jul 23 02:20:15 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* id.c: GID_T is int if ultrix as well as if sun.

	* stty.c: Implement raw and cooked modes.

Mon Jul 22 15:21:21 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* tee.c (main): close stdin and stdout to check for errors.

	* stty.c: Use tcflag_t for termios bitmasks.
	Use speed_t for speeds.  Use unsigned long for baud rates to
	accomodate large values, and support 57600 and 115200 if available.

	* date.c, configure: Instead of SIZE_T_MISSING,
	define size_t if it's missing.

	* id.c, whoami.c: Use uid_t and gid_t.

	* id.c: If POSIX and not sun (bogus!), pass getgroups and
	getugroups an array of gid_t instead of int.

	* system.h: New file.
	* Most programs: include it.

Fri Jul 19 12:04:58 1991  David J. MacKenzie  (djm at apple-gunkies)

	* env.c [!STDC_HEADERS]: Declare errno.
	* printf.c, pathchk.c: Don't include errno.h; not needed.

	* version.c: New file.
	* All C programs: Link with it, to get version number in the
	binary where at least `strings -' and grep can find it.

	* pathchk.c (strip_trailing_slashes): Function removed; use
	version in lib.

Mon Jul 15 11:34:22 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* Version 1.0.

	* pathchk.c: Always check whether _POSIX_PATH_MAX and
	_POSIX_NAME_MAX need to be defined.
	[POSIX]: If no PATH_MAX or NAME_MAX and pathconf for the path
	returns -1 (some systems do this if the path does not exist),
	use pathconf for "/".

Sun Jul 14 21:17:22 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)

	* date.c (date_seconds): Function removed, replaced with
	posixtm.y in lib.
	(set_date): Change caller.
	* configure: Check for bison.

	* stty.c [!C_LINE_MISSING]: Add support for setting and
	printing the line discipline.
	* configure: Check for C_LINE_MISSING.

	* configure: Check for Minix.

Sat Jul 13 01:33:59 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)

	* Add `man' directory and manual pages.
	* configure: Set INSTALLDATA and MAN.

	* id.c: Add #ifdefs for POSIX ways of getting max groups list size.
	(print_group_list, print_full_info): Allocate list of groups
	with malloc since its size might not be constant.

	* nice.c (main): Don't adjust priority if printing it.
	Default adjustment of 10, not 0.

	* printf.c: Add \c escape and %b conversion.
	Implement '*' for field width and precision.
	Make all errors fatal.
	(print_esc_string, print_esc): New functions.

	* configure, date.c: Change SYS_TIME_H to TM_IN_SYS_TIME.
	* configure: Always check where to find struct tm.

	* yes.c: Rewrite to accept multiple arguments.

	* Add groups.sh.

Fri Jul 12 10:57:00 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)

	* dirname.c: Move code from dirname function into main,
	simplifying things quite a bit.  From Jim Meyering.
	* Omit strdup from lib; no longer used.
	* configure: Don't check for strdup.

	* printenv.c (main): If args given, print the values in the order
	given on the command line rather than the order given in the
	environment.

	* tee.c, tty.c (struct longopts): Revise to make short-option
	equivalents clear.

Thu Jul 11 12:46:11 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)

	* nice.c: Add long options.

	* Add date command and libraries it needs.
	* configure: Updated.

	* env.c: Add long options.  Use GNU putenv instead of custom
	setenv function.

	* id.c: Add long options.

	* pathchk.c [POSIX]: Use pathconf if necessary to get NAME_MAX
	and PATH_MAX.

	* nice.c: Use exit status required for nohup by POSIX.2
	(nohup execs nice).

	* sleep.c: Don't bother with hex and octal.

	* env.c: Fix exit status for POSIX.2 draft 11.1.

	* Many files: Remove private copies of xmalloc, error, xstrdup,
	etc. to use shared versions.
	Fix #includes for USG, STDC_HEADERS, POSIX.

Mon Jul  8 18:56:24 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)

	* date.c (main): For -u, set TZ to "" instead of "GMT0",
	unless on HP-UX or Ultrix.

	* Rename some feature-test macros.
	* stime.c: Created from code in date.c.
	* date.c (compute_tm_zone): New function.
	(date_seconds, show_date): Use it.
	(xmalloc, xrealloc): Functions removed; use xmalloc.c instead.

Tue Jul  2 02:28:11 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)

	* tee.c (tee): Report errors in closing files.

Mon Mar 18 10:13:59 1991  Jeffrey A. Law  (law at geech.ai.mit.edu)

	* date.c (date_seconds, show_date): #if COMPUTE_TMZONE then
	compute the proper value to place in tm->tm_zone from
	information returned by localtime and gettimeofday.

Fri Apr 26 11:38:09 1991  David J. MacKenzie  (djm at mole.gnu.ai.mit.edu)

	* stty.c: Define default values for control chars if necessary.
	Complain about invalid options if no other options follow.
	Use POSIX functions instead of ioctl, for manipulating termios.

	* expr.c (main): Exit status was backwards.

Thu Dec 20 00:36:01 1990  David J. MacKenzie  (djm at apple-gunkies)

	* id.c: Reorganization and many changes to fix bugs and POSIX
	compliance problems.

Mon Dec 10 03:09:13 1990  David J. MacKenzie  (djm at apple-gunkies)

	* stty.c: Don't declare printf and some other functions that
	might have variable numbers of args in system header file decls.

Tue Nov 14 23:37:22 1990  Roland McGrath  (roland at geech.ai.mit.edu)

	* id.c (print_groups): Put spaces after commas.
	(print_group): New fn, to print a group id.  Uses numeric fmt
	unless -n, in which case it uses group names.
	(print_groups): Call it.  Find the rgid and egid, and print them as
	well as the supplementary groups.  Make sure we print each group only
	once.

Sun Sep 16 01:49:14 1990  David J. MacKenzie  (djm at apple-gunkies)

	* id.c (main): Add -G option for POSIX.2 draft 10.
	Allow a username to be given.
	(print_groups): New function from code in main.
	(getugroups): New function.

Sun Aug 12 00:32:01 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)

	* env.c (main): Instead of setting _POSIX_OPTION_ORDER,
	tell getopt to not permute, with `+'.

Sat Aug 11 01:32:53 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)

	* expr.c: Use regex.c library instead of private regex routines.

	* nice.c (main): Add -n option for POSIX.2a.
	(usage): New function.

Fri Aug 10 23:58:11 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)

	* who.c: Add -m, -i, -w options for POSIX.2a.

Tue Aug  7 00:01:02 1990  David J. MacKenzie  (djm at apple-gunkies)

	* expr.c: Use exit directly instead of longjmp on error.
	Use argv[0] instead of hardcoded "expr" in messages.
	Make some functions void.

Sat Aug  4 21:19:25 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)

	* env.c: Change exit statuses for POSIX draft 10.

Wed Jul  4 04:32:51 1990  David J. MacKenzie  (djm at apple-gunkies)

	* tee.c: Use error instead of perror_with_name and
	out_of_memory.

Wed Jun 20 02:39:49 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)

	* date.c: Change -DSETTOD to -DSTIME_MISSING, -DSIZE_T to
	-DSIZE_T_IN_TYPES, and -DSTDC_HDRS to -DSTDC_HEADERS.
	Declare some more functions.  Replace fatal, memory_out, and
	nonfatal_perror with error.

Mon Jun 18 00:16:52 1990  David J. MacKenzie  (djm at apple-gunkies)

	* stty.c: Add some Unix compatibility modes.

Sat Jun 16 21:05:59 1990  David J. MacKenzie  (djm at apple-gunkies)

	* stty.c (display_changed, display_all): Print values of min
	and time.

Thu Jun 14 17:49:31 1990  David J. MacKenzie  (djm at apple-gunkies)

	* stty.c: Implement tab, backspace, etc. delay args.

Thu May 31 12:25:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)

	* nohup.sh: Don't ignore SIGTERM.
	If ./nohup.out is unwritable, try $HOME/nohup.out.

Thu May  3 22:33:32 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)

	* who.c: Use error instead of fatal and fatal_perror.
	(print_headings): Print headings in all caps, like SYSV does.
	(list_entries): New function for -q to make it like SYSV -q.
	(valid_entries): Function removed.

Mon Apr  2 01:27:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)

	* id.c (main): Don't strip off leading path from program name.
	Revise a couple of error messages.

	* whoami.c (main): Use geteuid, not getuid, for Unix compatibility.

Tue Mar 20 14:28:25 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)

	* tee.c (main): Pass list of files and its size as args to tee
	rather than as global vars.  Exit with return value of tee
	instead of always 0.
	(tee): Use unbuffered I/O instead of stdio, for POSIX.
	Return an error status.
	(xwrite): New function.

Tue Mar 13 00:38:13 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)

	* who.c (who_am_i): Print heading before checking to see
	whether there is an entry for the tty on stdin, for
	consistency with the who function.
	(main): Use argv[optind], not argv[1], as alternate file.

Fri Mar  9 15:49:04 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)

	* who.c: Rename UTMP to UTMP_FILE for compatibility with SysV
	utmp.h.  Include some additional header files.
	(main): Recognize some options from SysVr3 who. Call usage.
	Set new global var `program_name' from argv[0].
	(usage): New function.
	(who): If -q given, only print count of users logged on.
	(print_entry): New function to format an entry on the output;
	make format more like that of the Unix who programs.
	(print_heading): New function to print a line describing each
	output field.
	(who, who_am_i): Call print_entry and print_heading.
	(valid_entries): New function to return count of nonempty
	entries in utmp.
	(search_entries): Compare with utmp tty field instead of
	username field.  Don't assume null termination in utmp field.
	(who_am_i): Print the entry for the tty on stdin rather than
	the first entry found for the uid.  If hostname is not
	available, use a null one instead of "<unknown>".
	Don't hardcode max hostname length.
	(idle_string): New function to format idle time field.
	(fatal, fatal_perror): Use program_name instead of hardcoded "who"
	in error messages.

Tue Mar  6 00:59:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)

	* printenv.c (main): Allow multiple variables to be specified.
	(barf): Function removed.

Sat Jan 20 18:41:48 1990  Jim Kingdon  (kingdon at geech)

	* expr.c (nextarg): Do not pass *args to strcmp if NULL.

Mon Dec 18 09:57:20 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)

	* printenv.c (main): Simplify error messages.

Sat Dec 16 15:15:50 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)

	* expr.c: Indent to regularize spacing.
	(cmpv, arithf): Change '#define foo (args)' to '#define foo(args)'
	so they compile.
	(docolon): Remove unused vars.
	(multiply): Rename from times to avoid libc conflict.
	(error): Include program name in message.
	(xmalloc): Rename from Malloc.
	(re_compiled): Rename from re_comp to avoid libc conflict.

	* basename.c: Fix some weird indentation.
	(main): Print a clearer usage message.
	Use a simpler method for removing suffix, if given.
	(fatal): Function no longer used; removed.

	* sleep.c: (main): Rename `time' to `seconds'.  Print usage
	message if given no args.
	Exit with status 0 instead of falling off end.
	(error): Print to stderr, not stdout.

	* tee.c: (main): Use getopt_long instead of custom parser,
	and adjust usage message.
	Use list of filenames in argv rather than making a copy.
	(tee): New function created from the second half of main.
	Fix bug where it tried to fclose a loop index instead of a stream.
	(xmalloc): Ok to return 0 if 0 bytes requested.
	(xrealloc): Unused function removed.

	* whoami.c: Canonicalize usage message and fix error message.

	* who.c: Declare some functions.
	(fatal_perror): New function for printing errors after system
	calls.
	Global: Use it when appropriate.
	(xmalloc): Return char *, not int.
	(read_utmp): Ok if utmp file is empty.
	Include filename in error messages.
	(scan_entries): Adjust columns to line up better, particularly
	when there are users with 8 character long usernames logged in.

Sat Oct 28 13:20:43 1989  David J. MacKenzie  (djm at spiff)

	* uname.c: Added long options.
	global: changed the word `part' to the word `element'
	(more precise).
	(program_name, long_options): New variables.
	(main): Support long options.
	(usage): Add long options summary to message.

Local Variables:
mode: indented-text
left-margin: 8
version-control: never
End: