aboutsummaryrefslogtreecommitdiffstats
path: root/builtins/builtins.c
blob: 1d6ec7475633b2cb230b0ea8f2aea67078b8e169 (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
/* builtins.c -- the built in shell commands. */

/* This file is manufactured by ./mkbuiltins, and should not be
   edited by hand.  See the source to mkbuiltins for details. */

/* Copyright (C) 1987-2009 Free Software Foundation, Inc.

   This file is part of GNU Bash, the Bourne Again SHell.

   Bash is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   Bash is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with Bash.  If not, see <http://www.gnu.org/licenses/>.
*/

/* The list of shell builtins.  Each element is name, function, flags,
   long-doc, short-doc.  The long-doc field contains a pointer to an array
   of help lines.  The function takes a WORD_LIST *; the first word in the
   list is the first arg to the command.  The list has already had word
   expansion performed.

   Functions which need to look at only the simple commands (e.g.
   the enable_builtin ()), should ignore entries where
   (array[i].function == (sh_builtin_func_t *)NULL).  Such entries are for
   the list of shell reserved control structures, like `if' and `while'.
   The end of the list is denoted with a NULL name field. */

#include "../builtins.h"
#include "builtext.h"
#include "bashintl.h"

struct builtin static_shell_builtins[] = {
#if defined (ALIAS)
  { "alias", alias_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | ASSIGNMENT_BUILTIN | POSIX_BUILTIN, alias_doc,
     N_("alias [-p] [name[=value] ... ]"), (char *)NULL },
#endif /* ALIAS */
#if defined (ALIAS)
  { "unalias", unalias_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, unalias_doc,
     N_("unalias [-a] name [name ...]"), (char *)NULL },
#endif /* ALIAS */
#if defined (READLINE)
  { "bind", bind_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, bind_doc,
     N_("bind [-lpvsPVS] [-m keymap] [-f filename] [-q name] [-u name] [-r keyseq] [-x keyseq:shell-command] [keyseq:readline-function or readline-command]"), (char *)NULL },
#endif /* READLINE */
  { "break", break_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, break_doc,
     N_("break [n]"), (char *)NULL },
  { "continue", continue_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, continue_doc,
     N_("continue [n]"), (char *)NULL },
  { "builtin", builtin_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, builtin_doc,
     N_("builtin [shell-builtin [arg ...]]"), (char *)NULL },
#if defined (DEBUGGER)
  { "caller", caller_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, caller_doc,
     N_("caller [expr]"), (char *)NULL },
#endif /* DEBUGGER */
  { "cd", cd_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, cd_doc,
     N_("cd [-L|-P] [dir]"), (char *)NULL },
  { "pwd", pwd_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, pwd_doc,
     N_("pwd [-LP]"), (char *)NULL },
  { ":", colon_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, colon_doc,
     N_(":"), (char *)NULL },
  { "true", colon_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, true_doc,
     N_("true"), (char *)NULL },
  { "false", false_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, false_doc,
     N_("false"), (char *)NULL },
  { "command", command_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, command_doc,
     N_("command [-pVv] command [arg ...]"), (char *)NULL },
#if defined (PROGRAMMABLE_COMPLETION)
  { "complete", complete_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, complete_doc,
     N_("complete [-abcdefgjksuv] [-pr] [-DE] [-o option] [-A action] [-G globpat] [-W wordlist]  [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [name ...]"), (char *)NULL },
#endif /* PROGRAMMABLE_COMPLETION */
#if defined (PROGRAMMABLE_COMPLETION)
  { "compgen", compgen_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, compgen_doc,
     N_("compgen [-abcdefgjksuv] [-o option]  [-A action] [-G globpat] [-W wordlist]  [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [word]"), (char *)NULL },
#endif /* PROGRAMMABLE_COMPLETION */
#if defined (PROGRAMMABLE_COMPLETION)
  { "compopt", compopt_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, compopt_doc,
     N_("compopt [-o|+o option] [-DE] [name ...]"), (char *)NULL },
#endif /* PROGRAMMABLE_COMPLETION */
  { "declare", declare_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | ASSIGNMENT_BUILTIN, declare_doc,
     N_("declare [-aAfFilrtux] [-p] [name[=value] ...]"), (char *)NULL },
  { "typeset", declare_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | ASSIGNMENT_BUILTIN, typeset_doc,
     N_("typeset [-aAfFilrtux] [-p] name[=value] ..."), (char *)NULL },
  { "local", local_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | ASSIGNMENT_BUILTIN, local_doc,
     N_("local [option] name[=value] ..."), (char *)NULL },
#if defined (V9_ECHO)
  { "echo", echo_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, echo_doc,
     N_("echo [-neE] [arg ...]"), (char *)NULL },
#endif /* V9_ECHO */
#if !defined (V9_ECHO)
  { "echo", echo_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, echo_doc,
     N_("echo [-n] [arg ...]"), (char *)NULL },
#endif /* !V9_ECHO */
  { "enable", enable_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, enable_doc,
     N_("enable [-a] [-dnps] [-f filename] [name ...]"), (char *)NULL },
  { "eval", eval_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, eval_doc,
     N_("eval [arg ...]"), (char *)NULL },
  { "exec", exec_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, exec_doc,
     N_("exec [-cl] [-a name] [command [arguments ...]] [redirection ...]"), (char *)NULL },
  { "exit", exit_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, exit_doc,
     N_("exit [n]"), (char *)NULL },
  { "logout", logout_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, logout_doc,
     N_("logout [n]"), (char *)NULL },
#if defined (HISTORY)
  { "fc", fc_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, fc_doc,
     N_("fc [-e ename] [-lnr] [first] [last] or fc -s [pat=rep] [command]"), (char *)NULL },
#endif /* HISTORY */
#if defined (JOB_CONTROL)
  { "fg", fg_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, fg_doc,
     N_("fg [job_spec]"), (char *)NULL },
#endif /* JOB_CONTROL */
#if defined (JOB_CONTROL)
  { "bg", bg_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, bg_doc,
     N_("bg [job_spec ...]"), (char *)NULL },
#endif /* JOB_CONTROL */
  { "getopts", getopts_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, getopts_doc,
     N_("getopts optstring name [arg]"), (char *)NULL },
  { "hash", hash_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, hash_doc,
     N_("hash [-lr] [-p pathname] [-dt] [name ...]"), (char *)NULL },
#if defined (HELP_BUILTIN)
  { "help", help_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, help_doc,
     N_("help [-dms] [pattern ...]"), (char *)NULL },
#endif /* HELP_BUILTIN */
#if defined (HISTORY)
  { "history", history_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, history_doc,
     N_("history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...]"), (char *)NULL },
#endif /* HISTORY */
#if defined (apollo)
  { "inlib", inlib_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, inlib_doc,
     N_("inlib pathname [pathname...]"), (char *)NULL },
#endif /* apollo */
#if defined (JOB_CONTROL)
  { "jobs", jobs_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, jobs_doc,
     N_("jobs [-lnprs] [jobspec ...] or jobs -x command [args]"), (char *)NULL },
#endif /* JOB_CONTROL */
#if defined (JOB_CONTROL)
  { "disown", disown_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, disown_doc,
     N_("disown [-h] [-ar] [jobspec ...]"), (char *)NULL },
#endif /* JOB_CONTROL */
  { "kill", kill_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, kill_doc,
     N_("kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]"), (char *)NULL },
  { "let", let_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, let_doc,
     N_("let arg [arg ...]"), (char *)NULL },
  { "mapfile", mapfile_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, mapfile_doc,
     N_("mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]"), (char *)NULL },
  { "readarray", mapfile_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, readarray_doc,
     N_("readarray [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]"), (char *)NULL },
  { "printf", printf_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, printf_doc,
     N_("printf [-v var] format [arguments]"), (char *)NULL },
#if defined (PUSHD_AND_POPD)
  { "pushd", pushd_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, pushd_doc,
     N_("pushd [-n] [+N | -N | dir]"), (char *)NULL },
#endif /* PUSHD_AND_POPD */
#if defined (PUSHD_AND_POPD)
  { "popd", popd_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, popd_doc,
     N_("popd [-n] [+N | -N]"), (char *)NULL },
#endif /* PUSHD_AND_POPD */
#if defined (PUSHD_AND_POPD)
  { "dirs", dirs_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, dirs_doc,
     N_("dirs [-clpv] [+N] [-N]"), (char *)NULL },
#endif /* PUSHD_AND_POPD */
  { "read", read_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, read_doc,
     N_("read [-ers] [-a array] [-d delim] [-i text] [-n nchars] [-N nchars] [-p prompt] [-t timeout] [-u fd] [name ...]"), (char *)NULL },
  { "for", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, for_doc,
     N_("for NAME [in WORDS ... ] ; do COMMANDS; done"), (char *)NULL },
  { "for ((", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, arith_for_doc,
     N_("for (( exp1; exp2; exp3 )); do COMMANDS; done"), (char *)NULL },
  { "select", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, select_doc,
     N_("select NAME [in WORDS ... ;] do COMMANDS; done"), (char *)NULL },
  { "time", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, time_doc,
     N_("time [-p] pipeline"), (char *)NULL },
  { "case", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, case_doc,
     N_("case WORD in [PATTERN [| PATTERN]...) COMMANDS ;;]... esac"), (char *)NULL },
  { "if", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, if_doc,
     N_("if COMMANDS; then COMMANDS; [ elif COMMANDS; then COMMANDS; ]... [ else COMMANDS; ] fi"), (char *)NULL },
  { "while", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, while_doc,
     N_("while COMMANDS; do COMMANDS; done"), (char *)NULL },
  { "until", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, until_doc,
     N_("until COMMANDS; do COMMANDS; done"), (char *)NULL },
  { "coproc", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, coproc_doc,
     N_("coproc [NAME] command [redirections]"), (char *)NULL },
  { "function", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, function_doc,
     N_("function name { COMMANDS ; } or name () { COMMANDS ; }"), (char *)NULL },
  { "{ ... }", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, grouping_braces_doc,
     N_("{ COMMANDS ; }"), (char *)NULL },
  { "%", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, fg_percent_doc,
     N_("job_spec [&]"), (char *)NULL },
  { "(( ... ))", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, arith_doc,
     N_("(( expression ))"), (char *)NULL },
  { "[[ ... ]]", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, conditional_doc,
     N_("[[ expression ]]"), (char *)NULL },
  { "variables", (sh_builtin_func_t *)0x0, BUILTIN_ENABLED | STATIC_BUILTIN, variable_help_doc,
     N_("variables - Names and meanings of some shell variables"), (char *)NULL },
  { "return", return_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, return_doc,
     N_("return [n]"), (char *)NULL },
  { "export", export_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN | ASSIGNMENT_BUILTIN, export_doc,
     N_("export [-fn] [name[=value] ...] or export -p"), (char *)NULL },
  { "readonly", readonly_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN | ASSIGNMENT_BUILTIN, readonly_doc,
     N_("readonly [-af] [name[=value] ...] or readonly -p"), (char *)NULL },
  { "set", set_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, set_doc,
     N_("set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...]"), (char *)NULL },
  { "unset", unset_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, unset_doc,
     N_("unset [-f] [-v] [name ...]"), (char *)NULL },
  { "shift", shift_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, shift_doc,
     N_("shift [n]"), (char *)NULL },
  { "shopt", shopt_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, shopt_doc,
     N_("shopt [-pqsu] [-o] [optname ...]"), (char *)NULL },
  { "source", source_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, source_doc,
     N_("source filename [arguments]"), (char *)NULL },
  { ".", source_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, dot_doc,
     N_(". filename [arguments]"), (char *)NULL },
#if defined (JOB_CONTROL)
  { "suspend", suspend_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, suspend_doc,
     N_("suspend [-f]"), (char *)NULL },
#endif /* JOB_CONTROL */
  { "test", test_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, test_doc,
     N_("test [expr]"), (char *)NULL },
  { "[", test_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, test_bracket_doc,
     N_("[ arg... ]"), (char *)NULL },
  { "times", times_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, times_doc,
     N_("times"), (char *)NULL },
  { "trap", trap_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | SPECIAL_BUILTIN, trap_doc,
     N_("trap [-lp] [[arg] signal_spec ...]"), (char *)NULL },
  { "type", type_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, type_doc,
     N_("type [-afptP] name [name ...]"), (char *)NULL },
#if !defined (_MINIX)
  { "ulimit", ulimit_builtin, BUILTIN_ENABLED | STATIC_BUILTIN, ulimit_doc,
     N_("ulimit [-SHacdefilmnpqrstuvx] [limit]"), (char *)NULL },
#endif /* !_MINIX */
  { "umask", umask_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, umask_doc,
     N_("umask [-p] [-S] [mode]"), (char *)NULL },
#if defined (JOB_CONTROL)
  { "wait", wait_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, wait_doc,
     N_("wait [id]"), (char *)NULL },
#endif /* JOB_CONTROL */
#if !defined (JOB_CONTROL)
  { "wait", wait_builtin, BUILTIN_ENABLED | STATIC_BUILTIN | POSIX_BUILTIN, wait_doc,
     N_("wait [pid]"), (char *)NULL },
#endif /* !JOB_CONTROL */
  { (char *)0x0, (sh_builtin_func_t *)0x0, 0, (char **)0x0, (char *)0x0 }
};

struct builtin *shell_builtins = static_shell_builtins;
struct builtin *current_builtin;

int num_shell_builtins =
	sizeof (static_shell_builtins) / sizeof (struct builtin) - 1;
#if defined (ALIAS)
char * const alias_doc[] = {
#if defined (HELP_BUILTIN)
N_("Define or display aliases.\n\
    \n\
    Without arguments, `alias' prints the list of aliases in the reusable\n\
    form `alias NAME=VALUE' on standard output.\n\
    \n\
    Otherwise, an alias is defined for each NAME whose VALUE is given.\n\
    A trailing space in VALUE causes the next word to be checked for\n\
    alias substitution when the alias is expanded.\n\
    \n\
    Options:\n\
      -p	Print all defined aliases in a reusable format\n\
    \n\
    Exit Status:\n\
    alias returns true unless a NAME is supplied for which no alias has been\n\
    defined."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* ALIAS */
#if defined (ALIAS)
char * const unalias_doc[] = {
#if defined (HELP_BUILTIN)
N_("Remove each NAME from the list of defined aliases.\n\
    \n\
    Options:\n\
      -a	remove all alias definitions.\n\
    \n\
    Return success unless a NAME is not an existing alias."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* ALIAS */
#if defined (READLINE)
char * const bind_doc[] = {
#if defined (HELP_BUILTIN)
N_("Set Readline key bindings and variables.\n\
    \n\
    Bind a key sequence to a Readline function or a macro, or set a\n\
    Readline variable.  The non-option argument syntax is equivalent to\n\
    that found in ~/.inputrc, but must be passed as a single argument:\n\
    e.g., bind '\"\\C-x\\C-r\": re-read-init-file'.\n\
    \n\
    Options:\n\
      -m  keymap         Use KEYMAP as the keymap for the duration of this\n\
                         command.  Acceptable keymap names are emacs,\n\
                         emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move,\n\
                         vi-command, and vi-insert.\n\
      -l                 List names of functions.\n\
      -P                 List function names and bindings.\n\
      -p                 List functions and bindings in a form that can be\n\
                         reused as input.\n\
      -S                 List key sequences that invoke macros and their values\n\
      -s                 List key sequences that invoke macros and their values\n\
                         in a form that can be reused as input.\n\
      -V                 List variable names and values\n\
      -v                 List variable names and values in a form that can\n\
                         be reused as input.\n\
      -q  function-name  Query about which keys invoke the named function.\n\
      -u  function-name  Unbind all keys which are bound to the named function.\n\
      -r  keyseq         Remove the binding for KEYSEQ.\n\
      -f  filename       Read key bindings from FILENAME.\n\
      -x  keyseq:shell-command	Cause SHELL-COMMAND to be executed when\n\
    				KEYSEQ is entered.\n\
    \n\
    Exit Status:\n\
    bind returns 0 unless an unrecognized option is given or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* READLINE */
char * const break_doc[] = {
#if defined (HELP_BUILTIN)
N_("Exit for, while, or until loops.\n\
    \n\
    Exit a FOR, WHILE or UNTIL loop.  If N is specified, break N enclosing\n\
    loops.\n\
    \n\
    Exit Status:\n\
    The exit status is 0 unless N is not greater than or equal to 1."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const continue_doc[] = {
#if defined (HELP_BUILTIN)
N_("Resume for, while, or until loops.\n\
    \n\
    Resumes the next iteration of the enclosing FOR, WHILE or UNTIL loop.\n\
    If N is specified, resumes the Nth enclosing loop.\n\
    \n\
    Exit Status:\n\
    The exit status is 0 unless N is not greater than or equal to 1."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const builtin_doc[] = {
#if defined (HELP_BUILTIN)
N_("Execute shell builtins.\n\
    \n\
    Execute SHELL-BUILTIN with arguments ARGs without performing command\n\
    lookup.  This is useful when you wish to reimplement a shell builtin\n\
    as a shell function, but need to execute the builtin within the function.\n\
    \n\
    Exit Status:\n\
    Returns the exit status of SHELL-BUILTIN, or false if SHELL-BUILTIN is\n\
    not a shell builtin.."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#if defined (DEBUGGER)
char * const caller_doc[] = {
#if defined (HELP_BUILTIN)
N_("Return the context of the current subroutine call.\n\
    \n\
    Without EXPR, returns \"$line $filename\".  With EXPR, returns\n\
    \"$line $subroutine $filename\"; this extra information can be used to\n\
    provide a stack trace.\n\
    \n\
    The value of EXPR indicates how many call frames to go back before the\n\
    current one; the top frame is frame 0.\n\
    \n\
    Exit Status:\n\
    Returns 0 unless the shell is not executing a shell function or EXPR\n\
    is invalid."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* DEBUGGER */
char * const cd_doc[] = {
#if defined (HELP_BUILTIN)
N_("Change the shell working directory.\n\
    \n\
    Change the current directory to DIR.  The default DIR is the value of the\n\
    HOME shell variable.\n\
    \n\
    The variable CDPATH defines the search path for the directory containing\n\
    DIR.  Alternative directory names in CDPATH are separated by a colon (:).\n\
    A null directory name is the same as the current directory.  If DIR begins\n\
    with a slash (/), then CDPATH is not used.\n\
    \n\
    If the directory is not found, and the shell option `cdable_vars' is set,\n\
    the word is assumed to be  a variable name.  If that variable has a value,\n\
    its value is used for DIR.\n\
    \n\
    Options:\n\
        -L	force symbolic links to be followed\n\
        -P	use the physical directory structure without following symbolic\n\
    	links\n\
    \n\
    The default is to follow symbolic links, as if `-L' were specified.\n\
    \n\
    Exit Status:\n\
    Returns 0 if the directory is changed; non-zero otherwise."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const pwd_doc[] = {
#if defined (HELP_BUILTIN)
N_("Print the name of the current working directory.\n\
    \n\
    Options:\n\
      -L	print the value of $PWD if it names the current working\n\
    	directory\n\
      -P	print the physical directory, without any symbolic links\n\
    \n\
    By default, `pwd' behaves as if `-L' were specified.\n\
    \n\
    Exit Status:\n\
    Returns 0 unless an invalid option is given or the current directory\n\
    cannot be read."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const colon_doc[] = {
#if defined (HELP_BUILTIN)
N_("Null command.\n\
    \n\
    No effect; the command does nothing.\n\
    \n\
    Exit Status:\n\
    Always succeeds."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const true_doc[] = {
#if defined (HELP_BUILTIN)
N_("Return a successful result.\n\
    \n\
    Exit Status:\n\
    Always succeeds."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const false_doc[] = {
#if defined (HELP_BUILTIN)
N_("Return an unsuccessful result.\n\
    \n\
    Exit Status:\n\
    Always fails."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const command_doc[] = {
#if defined (HELP_BUILTIN)
N_("Execute a simple command or display information about commands.\n\
    \n\
    Runs COMMAND with ARGS suppressing  shell function lookup, or display\n\
    information about the specified COMMANDs.  Can be used to invoke commands\n\
    on disk when a function with the same name exists.\n\
    \n\
    Options:\n\
      -p	use a default value for PATH that is guaranteed to find all of\n\
    	the standard utilities\n\
      -v	print a description of COMMAND similar to the `type' builtin\n\
      -V	print a more verbose description of each COMMAND\n\
    \n\
    Exit Status:\n\
    Returns exit status of COMMAND, or failure if COMMAND is not found."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#if defined (PROGRAMMABLE_COMPLETION)
char * const complete_doc[] = {
#if defined (HELP_BUILTIN)
N_("Specify how arguments are to be completed by Readline.\n\
    \n\
    For each NAME, specify how arguments are to be completed.  If no options\n\
    are supplied, existing completion specifications are printed in a way that\n\
    allows them to be reused as input.\n\
    \n\
    Options:\n\
      -p	print existing completion specifications in a reusable format\n\
      -r	remove a completion specification for each NAME, or, if no\n\
    	NAMEs are supplied, all completion specifications\n\
      -D	apply the completions and actions as the default for commands\n\
    	without any specific completion defined\n\
      -E	apply the completions and actions to \"empty\" commands --\n\
    	completion attempted on a blank line\n\
    \n\
    When completion is attempted, the actions are applied in the order the\n\
    uppercase-letter options are listed above.  The -D option takes\n\
    precedence over -E.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is supplied or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* PROGRAMMABLE_COMPLETION */
#if defined (PROGRAMMABLE_COMPLETION)
char * const compgen_doc[] = {
#if defined (HELP_BUILTIN)
N_("Display possible completions depending on the options.\n\
    \n\
    Intended to be used from within a shell function generating possible\n\
    completions.  If the optional WORD argument is supplied, matches against\n\
    WORD are generated.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is supplied or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* PROGRAMMABLE_COMPLETION */
#if defined (PROGRAMMABLE_COMPLETION)
char * const compopt_doc[] = {
#if defined (HELP_BUILTIN)
N_("Modify or display completion options.\n\
    \n\
    Modify the completion options for each NAME, or, if no NAMEs are supplied,\n\
    the completion currently begin executed.  If no OPTIONs are givenm, print\n\
    the completion options for each NAME or the current completion specification.\n\
    \n\
    Options:\n\
    	-o option	Set completion option OPTION for each NAME\n\
    	-D		Change options for the \"default\" command completion\n\
    	-E		Change options for the \"empty\" command completion\n\
    \n\
    Using `+o' instead of `-o' turns off the specified option.\n\
    \n\
    Arguments:\n\
    \n\
    Each NAME refers to a command for which a completion specification must\n\
    have previously been defined using the `complete' builtin.  If no NAMEs\n\
    are supplied, compopt must be called by a function currently generating\n\
    completions, and the options for that currently-executing completion\n\
    generator are modified.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is supplied or NAME does not\n\
    have a completion specification defined."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* PROGRAMMABLE_COMPLETION */
char * const declare_doc[] = {
#if defined (HELP_BUILTIN)
N_("Set variable values and attributes.\n\
    \n\
    Declare variables and give them attributes.  If no NAMEs are given,\n\
    display the attributes and values of all variables.\n\
    \n\
    Options:\n\
      -f	restrict action or display to function names and definitions\n\
      -F	restrict display to function names only (plus line number and\n\
    	source file when debugging)\n\
      -p	display the attributes and value of each NAME\n\
    \n\
    Options which set attributes:\n\
      -a	to make NAMEs indexed arrays (if supported)\n\
      -A	to make NAMEs associative arrays (if supported)\n\
      -i	to make NAMEs have the `integer' attribute\n\
      -l	to convert NAMEs to lower case on assignment\n\
      -r	to make NAMEs readonly\n\
      -t	to make NAMEs have the `trace' attribute\n\
      -u	to convert NAMEs to upper case on assignment\n\
      -x	to make NAMEs export\n\
    \n\
    Using `+' instead of `-' turns off the given attribute.\n\
    \n\
    Variables with the integer attribute have arithmetic evaluation (see\n\
    the `let' command) performed when the variable is assigned a value.\n\
    \n\
    When used in a function, `declare' makes NAMEs local, as with the `local'\n\
    command.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is supplied or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const typeset_doc[] = {
#if defined (HELP_BUILTIN)
N_("Set variable values and attributes.\n\
    \n\
    Obsolete.  See `help declare'."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const local_doc[] = {
#if defined (HELP_BUILTIN)
N_("Define local variables.\n\
    \n\
    Create a local variable called NAME, and give it VALUE.  OPTION can\n\
    be any option accepted by `declare'.\n\
    \n\
    Local variables can only be used within a function; they are visible\n\
    only to the function where they are defined and its children.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is supplied, an error occurs,\n\
    or the shell is not executing a function."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#if defined (V9_ECHO)
char * const echo_doc[] = {
#if defined (HELP_BUILTIN)
N_("Write arguments to the standard output.\n\
    \n\
    Display the ARGs on the standard output followed by a newline.\n\
    \n\
    Options:\n\
      -n	do not append a newline\n\
      -e	enable interpretation of the following backslash escapes\n\
      -E	explicitly suppress interpretation of backslash escapes\n\
    \n\
    `echo' interprets the following backslash-escaped characters:\n\
      \\a	alert (bell)\n\
      \\b	backspace\n\
      \\c	suppress further output\n\
      \\e	escape character\n\
      \\f	form feed\n\
      \\n	new line\n\
      \\r	carriage return\n\
      \\t	horizontal tab\n\
      \\v	vertical tab\n\
      \\\\	backslash\n\
      \\0nnn	the character whose ASCII code is NNN (octal).  NNN can be\n\
    	0 to 3 octal digits\n\
      \\xHH	the eight-bit character whose value is HH (hexadecimal).  HH\n\
    	can be one or two hex digits\n\
    \n\
    Exit Status:\n\
    Returns success unless a write error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* V9_ECHO */
#if !defined (V9_ECHO)
char * const echo_doc[] = {
#if defined (HELP_BUILTIN)
N_("Write arguments to the standard output.\n\
    \n\
    Display the ARGs on the standard output followed by a newline.\n\
    \n\
    Options:\n\
      -n	do not append a newline\n\
    \n\
    Exit Status:\n\
    Returns success unless a write error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* !V9_ECHO */
char * const enable_doc[] = {
#if defined (HELP_BUILTIN)
N_("Enable and disable shell builtins.\n\
    \n\
    Enables and disables builtin shell commands.  Disabling allows you to\n\
    execute a disk command which has the same name as a shell builtin\n\
    without using a full pathname.\n\
    \n\
    Options:\n\
      -a	print a list of builtins showing whether or not each is enabled\n\
      -n	disable each NAME or display a list of disabled builtins\n\
      -p	print the list of builtins in a reusable format\n\
      -s	print only the names of Posix `special' builtins\n\
    \n\
    Options controlling dynamic loading:\n\
      -f	Load builtin NAME from shared object FILENAME\n\
      -d	Remove a builtin loaded with -f\n\
    \n\
    Without options, each NAME is enabled.\n\
    \n\
    To use the `test' found in $PATH instead of the shell builtin\n\
    version, type `enable -n test'.\n\
    \n\
    Exit Status:\n\
    Returns success unless NAME is not a shell builtin or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const eval_doc[] = {
#if defined (HELP_BUILTIN)
N_("Execute arguments as a shell command.\n\
    \n\
    Combine ARGs into a single string, use the result as input to the shell,\n\
    and execute the resulting commands.\n\
    \n\
    Exit Status:\n\
    Returns exit status of command or success if command is null."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const exec_doc[] = {
#if defined (HELP_BUILTIN)
N_("Replace the shell with the given command.\n\
    \n\
    Execute COMMAND, replacing this shell with the specified program.\n\
    ARGUMENTS become the arguments to COMMAND.  If COMMAND is not specified,\n\
    any redirections take effect in the current shell.\n\
    \n\
    Options:\n\
      -a name	pass NAME as the zeroth argument to COMMAND\n\
      -c		execute COMMAND with an empty environment\n\
      -l		place a dash in the zeroth argument to COMMAND\n\
    \n\
    If the command cannot be executed, a non-interactive shell exits, unless\n\
    the shell option `execfail' is set.\n\
    \n\
    Exit Status:\n\
    Returns success unless COMMAND is not found or a redirection error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const exit_doc[] = {
#if defined (HELP_BUILTIN)
N_("Exit the shell.\n\
    \n\
    Exits the shell with a status of N.  If N is omitted, the exit status\n\
    is that of the last command executed."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const logout_doc[] = {
#if defined (HELP_BUILTIN)
N_("Exit a login shell.\n\
    \n\
    Exits a login shell with exit status N.  Returns an error if not executed\n\
    in a login shell."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#if defined (HISTORY)
char * const fc_doc[] = {
#if defined (HELP_BUILTIN)
N_("Display or execute commands from the history list.\n\
    \n\
    fc is used to list or edit and re-execute commands from the history list.\n\
    FIRST and LAST can be numbers specifying the range, or FIRST can be a\n\
    string, which means the most recent command beginning with that\n\
    string.\n\
    \n\
    Options:\n\
      -e ENAME	select which editor to use.  Default is FCEDIT, then EDITOR,\n\
    		then vi\n\
      -l 	list lines instead of editing\n\
      -n	omit line numbers when listing\n\
      -r	reverse the order of the lines (newest listed first)\n\
    \n\
    With the `fc -s [pat=rep ...] [command]' format, COMMAND is\n\
    re-executed after the substitution OLD=NEW is performed.\n\
    \n\
    A useful alias to use with this is r='fc -s', so that typing `r cc'\n\
    runs the last command beginning with `cc' and typing `r' re-executes\n\
    the last command.\n\
    \n\
    Exit Status:\n\
    Returns success or status of executed command; non-zero if an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* HISTORY */
#if defined (JOB_CONTROL)
char * const fg_doc[] = {
#if defined (HELP_BUILTIN)
N_("Move job to the foreground.\n\
    \n\
    Place the job identified by JOB_SPEC in the foreground, making it the\n\
    current job.  If JOB_SPEC is not present, the shell's notion of the\n\
    current job is used.\n\
    \n\
    Exit Status:\n\
    Status of command placed in foreground, or failure if an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* JOB_CONTROL */
#if defined (JOB_CONTROL)
char * const bg_doc[] = {
#if defined (HELP_BUILTIN)
N_("Move jobs to the background.\n\
    \n\
    Place the jobs identified by each JOB_SPEC in the background, as if they\n\
    had been started with `&'.  If JOB_SPEC is not present, the shell's notion\n\
    of the current job is used.\n\
    \n\
    Exit Status:\n\
    Returns success unless job control is not enabled or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* JOB_CONTROL */
char * const getopts_doc[] = {
#if defined (HELP_BUILTIN)
N_("Parse option arguments.\n\
    \n\
    Getopts is used by shell procedures to parse positional parameters\n\
    as options.\n\
    \n\
    OPTSTRING contains the option letters to be recognized; if a letter\n\
    is followed by a colon, the option is expected to have an argument,\n\
    which should be separated from it by white space.\n\
    \n\
    Each time it is invoked, getopts will place the next option in the\n\
    shell variable $name, initializing name if it does not exist, and\n\
    the index of the next argument to be processed into the shell\n\
    variable OPTIND.  OPTIND is initialized to 1 each time the shell or\n\
    a shell script is invoked.  When an option requires an argument,\n\
    getopts places that argument into the shell variable OPTARG.\n\
    \n\
    getopts reports errors in one of two ways.  If the first character\n\
    of OPTSTRING is a colon, getopts uses silent error reporting.  In\n\
    this mode, no error messages are printed.  If an invalid option is\n\
    seen, getopts places the option character found into OPTARG.  If a\n\
    required argument is not found, getopts places a ':' into NAME and\n\
    sets OPTARG to the option character found.  If getopts is not in\n\
    silent mode, and an invalid option is seen, getopts places '?' into\n\
    NAME and unsets OPTARG.  If a required argument is not found, a '?'\n\
    is placed in NAME, OPTARG is unset, and a diagnostic message is\n\
    printed.\n\
    \n\
    If the shell variable OPTERR has the value 0, getopts disables the\n\
    printing of error messages, even if the first character of\n\
    OPTSTRING is not a colon.  OPTERR has the value 1 by default.\n\
    \n\
    Getopts normally parses the positional parameters ($0 - $9), but if\n\
    more arguments are given, they are parsed instead.\n\
    \n\
    Exit Status:\n\
    Returns success if an option is found; fails if the end of options is\n\
    encountered or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const hash_doc[] = {
#if defined (HELP_BUILTIN)
N_("Remember or display program locations.\n\
    \n\
    Determine and remember the full pathname of each command NAME.  If\n\
    no arguments are given, information about remembered commands is displayed.\n\
    \n\
    Options:\n\
      -d		forget the remembered location of each NAME\n\
      -l		display in a format that may be reused as input\n\
      -p pathname	use PATHNAME is the full pathname of NAME\n\
      -r		forget all remembered locations\n\
      -t		print the remembered location of each NAME, preceding\n\
    		each location with the corresponding NAME if multiple\n\
    		NAMEs are given\n\
    Arguments:\n\
      NAME		Each NAME is searched for in $PATH and added to the list\n\
    		of remembered commands.\n\
    \n\
    Exit Status:\n\
    Returns success unless NAME is not found or an invalid option is given."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#if defined (HELP_BUILTIN)
char * const help_doc[] = {
#if defined (HELP_BUILTIN)
N_("Display information about builtin commands.\n\
    \n\
    Displays brief summaries of builtin commands.  If PATTERN is\n\
    specified, gives detailed help on all commands matching PATTERN,\n\
    otherwise the list of help topics is printed.\n\
    \n\
    Options:\n\
      -d	output short description for each topic\n\
      -m	display usage in pseudo-manpage format\n\
      -s	output only a short usage synopsis for each topic matching\n\
    	PATTERN\n\
    \n\
    Arguments:\n\
      PATTERN	Pattern specifiying a help topic\n\
    \n\
    Exit Status:\n\
    Returns success unless PATTERN is not found or an invalid option is given."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* HELP_BUILTIN */
#if defined (HISTORY)
char * const history_doc[] = {
#if defined (HELP_BUILTIN)
N_("Display or manipulate the history list.\n\
    \n\
    Display the history list with line numbers, prefixing each modified\n\
    entry with a `*'.  An argument of N lists only the last N entries.\n\
    \n\
    Options:\n\
      -c	clear the history list by deleting all of the entries\n\
      -d offset	delete the history entry at offset OFFSET.\n\
    \n\
      -a	append history lines from this session to the history file\n\
      -n	read all history lines not already read from the history file\n\
      -r	read the history file and append the contents to the history\n\
    	list\n\
      -w	write the current history to the history file\n\
    	and append them to the history list\n\
    \n\
      -p	perform history expansion on each ARG and display the result\n\
    	without storing it in the history list\n\
      -s	append the ARGs to the history list as a single entry\n\
    \n\
    If FILENAME is given, it is used as the history file.  Otherwise,\n\
    if $HISTFILE has a value, that is used, else ~/.bash_history.\n\
    \n\
    If the $HISTTIMEFORMAT variable is set and not null, its value is used\n\
    as a format string for strftime(3) to print the time stamp associated\n\
    with each displayed history entry.  No time stamps are printed otherwise.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is given or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* HISTORY */
#if defined (apollo)
char * const inlib_doc[] = {
#if defined (HELP_BUILTIN)
N_("Install user-supplied library.\n\
    \n\
    Install a user-supplied library specified by pathname in the current\n\
    shell process. The library is used to resolve external references\n\
    in programs and libraries loaded after its installation.  Note\n\
    that the library is not loaded into the address space unless it is\n\
    needed to resolve an external reference.  The list of inlibed\n\
    libraries is passed to all children of the current shell.\n\
    \n\
    Exit Status:\n\
    Returns success unless PATHNAME is not found or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* apollo */
#if defined (JOB_CONTROL)
char * const jobs_doc[] = {
#if defined (HELP_BUILTIN)
N_("Display status of jobs.\n\
    \n\
    Lists the active jobs.  JOBSPEC restricts output to that job.\n\
    Without options, the status of all active jobs is displayed.\n\
    \n\
    Options:\n\
      -l	lists process IDs in addition to the normal information\n\
      -n	list only processes that have changed status since the last\n\
    	notification\n\
      -p	lists process IDs only\n\
      -r	restrict output to running jobs\n\
      -s	restrict output to stopped jobs\n\
    \n\
    If -x is supplied, COMMAND is run after all job specifications that\n\
    appear in ARGS have been replaced with the process ID of that job's\n\
    process group leader.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is given or an error occurs.\n\
    If -x is used, returns the exit status of COMMAND."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* JOB_CONTROL */
#if defined (JOB_CONTROL)
char * const disown_doc[] = {
#if defined (HELP_BUILTIN)
N_("Remove jobs from current shell.\n\
    \n\
    Removes each JOBSPEC argument from the table of active jobs.  Without\n\
    any JOBSPECs, the shell uses its notion of the current job.\n\
    \n\
    Options:\n\
      -a	remove all jobs if JOBSPEC is not supplied\n\
      -h	mark each JOBSPEC so that SIGHUP is not sent to the job if the\n\
    	shell receives a SIGHUP\n\
      -r	remove only running jobs\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option or JOBSPEC is given."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* JOB_CONTROL */
char * const kill_doc[] = {
#if defined (HELP_BUILTIN)
N_("Send a signal to a job.\n\
    \n\
    Send the processes identified by PID or JOBSPEC the signal named by\n\
    SIGSPEC or SIGNUM.  If neither SIGSPEC nor SIGNUM is present, then\n\
    SIGTERM is assumed.\n\
    \n\
    Options:\n\
      -s sig	SIG is a signal name\n\
      -n sig	SIG is a signal number\n\
      -l	list the signal names; if arguments follow `-l' they are\n\
    	assumed to be signal numbers for which names should be listed\n\
    \n\
    Kill is a shell builtin for two reasons: it allows job IDs to be used\n\
    instead of process IDs, and allows processes to be killed if the limit\n\
    on processes that you can create is reached.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is given or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const let_doc[] = {
#if defined (HELP_BUILTIN)
N_("Evaluate arithmetic expressions.\n\
    \n\
    Evaluate each ARG as an arithmetic expression.  Evaluation is done in\n\
    fixed-width integers with no check for overflow, though division by 0\n\
    is trapped and flagged as an error.  The following list of operators is\n\
    grouped into levels of equal-precedence operators.  The levels are listed\n\
    in order of decreasing precedence.\n\
    \n\
    	id++, id--	variable post-increment, post-decrement\n\
    	++id, --id	variable pre-increment, pre-decrement\n\
    	-, +		unary minus, plus\n\
    	!, ~		logical and bitwise negation\n\
    	**		exponentiation\n\
    	*, /, %		multiplication, division, remainder\n\
    	+, -		addition, subtraction\n\
    	<<, >>		left and right bitwise shifts\n\
    	<=, >=, <, >	comparison\n\
    	==, !=		equality, inequality\n\
    	&		bitwise AND\n\
    	^		bitwise XOR\n\
    	|		bitwise OR\n\
    	&&		logical AND\n\
    	||		logical OR\n\
    	expr ? expr : expr\n\
    			conditional operator\n\
    	=, *=, /=, %=,\n\
    	+=, -=, <<=, >>=,\n\
    	&=, ^=, |=	assignment\n\
    \n\
    Shell variables are allowed as operands.  The name of the variable\n\
    is replaced by its value (coerced to a fixed-width integer) within\n\
    an expression.  The variable need not have its integer attribute\n\
    turned on to be used in an expression.\n\
    \n\
    Operators are evaluated in order of precedence.  Sub-expressions in\n\
    parentheses are evaluated first and may override the precedence\n\
    rules above.\n\
    \n\
    Exit Status:\n\
    If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise.."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const mapfile_doc[] = {
#if defined (HELP_BUILTIN)
N_("Read lines from the standard input into an indexed array variable.\n\
    \n\
    Read lines from the standard input into the indexed array variable ARRAY, or\n\
    from file descriptor FD if the -u option is supplied.  The variable MAPFILE\n\
    is the default ARRAY.\n\
    \n\
    Options:\n\
      -n count	Copy at most COUNT lines.  If COUNT is 0, all lines are copied.\n\
      -O origin	Begin assigning to ARRAY at index ORIGIN.  The default index is 0.\n\
      -s count 	Discard the first COUNT lines read.\n\
      -t		Remove a trailing newline from each line read.\n\
      -u fd		Read lines from file descriptor FD instead of the standard input.\n\
      -C callback	Evaluate CALLBACK each time QUANTUM lines are read.\n\
      -c quantum	Specify the number of lines read between each call to CALLBACK.\n\
    \n\
    Arguments:\n\
      ARRAY		Array variable name to use for file data.\n\
    \n\
    If -C is supplied without -c, the default quantum is 5000.  When\n\
    CALLBACK is evaluated, it is supplied the index of the next array\n\
    element to be assigned as an additional argument.\n\
    \n\
    If not supplied with an explicit origin, mapfile will clear ARRAY before\n\
    assigning to it.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is given or ARRAY is readonly or\n\
    not an indexed array."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const readarray_doc[] = {
#if defined (HELP_BUILTIN)
N_("Read lines from a file into an array variable.\n\
    \n\
    A synonym for `mapfile'."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const printf_doc[] = {
#if defined (HELP_BUILTIN)
N_("Formats and prints ARGUMENTS under control of the FORMAT.\n\
    \n\
    Options:\n\
      -v var	assign the output to shell variable VAR rather than\n\
    		display it on the standard output\n\
    \n\
    FORMAT is a character string which contains three types of objects: plain\n\
    characters, which are simply copied to standard output; character escape\n\
    sequences, which are converted and copied to the standard output; and\n\
    format specifications, each of which causes printing of the next successive\n\
    argument.\n\
    \n\
    In addition to the standard format specifications described in printf(1)\n\
    and printf(3), printf interprets:\n\
    \n\
      %b	expand backslash escape sequences in the corresponding argument\n\
      %q	quote the argument in a way that can be reused as shell input\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is given or a write or assignment\n\
    error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#if defined (PUSHD_AND_POPD)
char * const pushd_doc[] = {
#if defined (HELP_BUILTIN)
N_("Add directories to stack.\n\
    \n\
    Adds a directory to the top of the directory stack, or rotates\n\
    the stack, making the new top of the stack the current working\n\
    directory.  With no arguments, exchanges the top two directories.\n\
    \n\
    Options:\n\
      -n	Suppresses the normal change of directory when adding\n\
    	directories to the stack, so only the stack is manipulated.\n\
    \n\
    Arguments:\n\
      +N	Rotates the stack so that the Nth directory (counting\n\
    	from the left of the list shown by `dirs', starting with\n\
    	zero) is at the top.\n\
    \n\
      -N	Rotates the stack so that the Nth directory (counting\n\
    	from the right of the list shown by `dirs', starting with\n\
    	zero) is at the top.\n\
    \n\
      dir	Adds DIR to the directory stack at the top, making it the\n\
    	new current working directory.\n\
    \n\
    The `dirs' builtin displays the directory stack.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid argument is supplied or the directory\n\
    change fails."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* PUSHD_AND_POPD */
#if defined (PUSHD_AND_POPD)
char * const popd_doc[] = {
#if defined (HELP_BUILTIN)
N_("Remove directories from stack.\n\
    \n\
    Removes entries from the directory stack.  With no arguments, removes\n\
    the top directory from the stack, and changes to the new top directory.\n\
    \n\
    Options:\n\
      -n	Suppresses the normal change of directory when removing\n\
    	directories from the stack, so only the stack is manipulated.\n\
    \n\
    Arguments:\n\
      +N	Removes the Nth entry counting from the left of the list\n\
    	shown by `dirs', starting with zero.  For example: `popd +0'\n\
    	removes the first directory, `popd +1' the second.\n\
    \n\
      -N	Removes the Nth entry counting from the right of the list\n\
    	shown by `dirs', starting with zero.  For example: `popd -0'\n\
    	removes the last directory, `popd -1' the next to last.\n\
    \n\
    The `dirs' builtin displays the directory stack.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid argument is supplied or the directory\n\
    change fails."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* PUSHD_AND_POPD */
#if defined (PUSHD_AND_POPD)
char * const dirs_doc[] = {
#if defined (HELP_BUILTIN)
N_("Display directory stack.\n\
    \n\
    Display the list of currently remembered directories.  Directories\n\
    find their way onto the list with the `pushd' command; you can get\n\
    back up through the list with the `popd' command.\n\
    \n\
    Options:\n\
      -c	clear the directory stack by deleting all of the elements\n\
      -l	do not print tilde-prefixed versions of directories relative\n\
    	to your home directory\n\
      -p	print the directory stack with one entry per line\n\
      -v	print the directory stack with one entry per line prefixed\n\
    	with its position in the stack\n\
    \n\
    Arguments:\n\
      +N	Displays the Nth entry counting from the left of the list shown by\n\
    	dirs when invoked without options, starting with zero.\n\
    \n\
      -N	Displays the Nth entry counting from the right of the list shown by\n\
    	dirs when invoked without options, starting with zero.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is supplied or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* PUSHD_AND_POPD */
char * const read_doc[] = {
#if defined (HELP_BUILTIN)
N_("Read a line from the standard input and split it into fields.\n\
    \n\
    Reads a single line from the standard input, or from file descriptor FD\n\
    if the -u option is supplied.  The line is split into fields as with word\n\
    splitting, and the first word is assigned to the first NAME, the second\n\
    word to the second NAME, and so on, with any leftover words assigned to\n\
    the last NAME.  Only the characters found in $IFS are recognized as word\n\
    delimiters.\n\
    \n\
    If no NAMEs are supplied, the line read is stored in the REPLY variable.\n\
    \n\
    Options:\n\
      -a array	assign the words read to sequential indices of the array\n\
    		variable ARRAY, starting at zero\n\
      -d delim	continue until the first character of DELIM is read, rather\n\
    		than newline\n\
      -e		use Readline to obtain the line in an interactive shell\n\
      -i text	Use TEXT as the initial text for Readline\n\
      -n nchars	return after reading NCHARS characters rather than waiting\n\
    		for a newline, but honor a delimiter if fewer than NCHARS\n\
    		characters are read before the delimiter\n\
      -N nchars	return only after reading exactly NCHARS characters, unless\n\
    		EOF is encountered or read times out, ignoring any delimiter\n\
      -p prompt	output the string PROMPT without a trailing newline before\n\
    		attempting to read\n\
      -r		do not allow backslashes to escape any characters\n\
      -s		do not echo input coming from a terminal\n\
      -t timeout	time out and return failure if a complete line of input is\n\
    		not read withint TIMEOUT seconds.  The value of the TMOUT\n\
    		variable is the default timeout.  TIMEOUT may be a\n\
    		fractional number.  If TIMEOUT is 0, read returns success only\n\
    		if input is available on the specified file descriptor.  The\n\
    		exit status is greater than 128 if the timeout is exceeded\n\
      -u fd		read from file descriptor FD instead of the standard input\n\
    \n\
    Exit Status:\n\
    The return code is zero, unless end-of-file is encountered, read times out,\n\
    or an invalid file descriptor is supplied as the argument to -u."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const for_doc[] = {
#if defined (HELP_BUILTIN)
N_("Execute commands for each member in a list.\n\
    \n\
    The `for' loop executes a sequence of commands for each member in a\n\
    list of items.  If `in WORDS ...;' is not present, then `in \"$@\"' is\n\
    assumed.  For each element in WORDS, NAME is set to that element, and\n\
    the COMMANDS are executed.\n\
    \n\
    Exit Status:\n\
    Returns the status of the last command executed."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const arith_for_doc[] = {
#if defined (HELP_BUILTIN)
N_("Arithmetic for loop.\n\
    \n\
    Equivalent to\n\
    	(( EXP1 ))\n\
    	while (( EXP2 )); do\n\
    		COMMANDS\n\
    		(( EXP3 ))\n\
    	done\n\
    EXP1, EXP2, and EXP3 are arithmetic expressions.  If any expression is\n\
    omitted, it behaves as if it evaluates to 1.\n\
    \n\
    Exit Status:\n\
    Returns the status of the last command executed."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const select_doc[] = {
#if defined (HELP_BUILTIN)
N_("Select words from a list and execute commands.\n\
    \n\
    The WORDS are expanded, generating a list of words.  The\n\
    set of expanded words is printed on the standard error, each\n\
    preceded by a number.  If `in WORDS' is not present, `in \"$@\"'\n\
    is assumed.  The PS3 prompt is then displayed and a line read\n\
    from the standard input.  If the line consists of the number\n\
    corresponding to one of the displayed words, then NAME is set\n\
    to that word.  If the line is empty, WORDS and the prompt are\n\
    redisplayed.  If EOF is read, the command completes.  Any other\n\
    value read causes NAME to be set to null.  The line read is saved\n\
    in the variable REPLY.  COMMANDS are executed after each selection\n\
    until a break command is executed.\n\
    \n\
    Exit Status:\n\
    Returns the status of the last command executed."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const time_doc[] = {
#if defined (HELP_BUILTIN)
N_("Report time consumed by pipeline's execution.\n\
    \n\
    Execute PIPELINE and print a summary of the real time, user CPU time,\n\
    and system CPU time spent executing PIPELINE when it terminates.\n\
    \n\
    Options:\n\
      -p	print the timing summary in the portable Posix format\n\
    \n\
    The value of the TIMEFORMAT variable is used as the output format.\n\
    \n\
    Exit Status:\n\
    The return status is the return status of PIPELINE."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const case_doc[] = {
#if defined (HELP_BUILTIN)
N_("Execute commands based on pattern matching.\n\
    \n\
    Selectively execute COMMANDS based upon WORD matching PATTERN.  The\n\
    `|' is used to separate multiple patterns.\n\
    \n\
    Exit Status:\n\
    Returns the status of the last command executed."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const if_doc[] = {
#if defined (HELP_BUILTIN)
N_("Execute commands based on conditional.\n\
    \n\
    The `if COMMANDS' list is executed.  If its exit status is zero, then the\n\
    `then COMMANDS' list is executed.  Otherwise, each `elif COMMANDS' list is\n\
    executed in turn, and if its exit status is zero, the corresponding\n\
    `then COMMANDS' list is executed and the if command completes.  Otherwise,\n\
    the `else COMMANDS' list is executed, if present.  The exit status of the\n\
    entire construct is the exit status of the last command executed, or zero\n\
    if no condition tested true.\n\
    \n\
    Exit Status:\n\
    Returns the status of the last command executed."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const while_doc[] = {
#if defined (HELP_BUILTIN)
N_("Execute commands as long as a test succeeds.\n\
    \n\
    Expand and execute COMMANDS as long as the final command in the\n\
    `while' COMMANDS has an exit status of zero.\n\
    \n\
    Exit Status:\n\
    Returns the status of the last command executed."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const until_doc[] = {
#if defined (HELP_BUILTIN)
N_("Execute commands as long as a test does not succeed.\n\
    \n\
    Expand and execute COMMANDS as long as the final command in the\n\
    `until' COMMANDS has an exit status which is not zero.\n\
    \n\
    Exit Status:\n\
    Returns the status of the last command executed."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const coproc_doc[] = {
#if defined (HELP_BUILTIN)
N_("Create a coprocess named NAME.\n\
    \n\
    Execute COMMAND asynchronously, with the standard output and standard\n\
    input of the command connected via a pipe to file descriptors assigned\n\
    to indices 0 and 1 of an array variable NAME in the executing shell.\n\
    The default NAME is \"COPROC\".\n\
    \n\
    Exit Status:\n\
    Returns the exit status of COMMAND."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const function_doc[] = {
#if defined (HELP_BUILTIN)
N_("Define shell function.\n\
    \n\
    Create a shell function named NAME.  When invoked as a simple command,\n\
    NAME runs COMMANDs in the calling shell's context.  When NAME is invoked,\n\
    the arguments are passed to the function as $1...$n, and the function's\n\
    name is in $FUNCNAME.\n\
    \n\
    Exit Status:\n\
    Returns success unless NAME is readonly."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const grouping_braces_doc[] = {
#if defined (HELP_BUILTIN)
N_("Group commands as a unit.\n\
    \n\
    Run a set of commands in a group.  This is one way to redirect an\n\
    entire set of commands.\n\
    \n\
    Exit Status:\n\
    Returns the status of the last command executed."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const fg_percent_doc[] = {
#if defined (HELP_BUILTIN)
N_("Resume job in foreground.\n\
    \n\
    Equivalent to the JOB_SPEC argument to the `fg' command.  Resume a\n\
    stopped or background job.  JOB_SPEC can specify either a job name\n\
    or a job number.  Following JOB_SPEC with a `&' places the job in\n\
    the background, as if the job specification had been supplied as an\n\
    argument to `bg'.\n\
    \n\
    Exit Status:\n\
    Returns the status of the resumed job."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const arith_doc[] = {
#if defined (HELP_BUILTIN)
N_("Evaluate arithmetic expression.\n\
    \n\
    The EXPRESSION is evaluated according to the rules for arithmetic\n\
    evaluation.  Equivalent to \"let EXPRESSION\".\n\
    \n\
    Exit Status:\n\
    Returns 1 if EXPRESSION evaluates to 0; returns 0 otherwise."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const conditional_doc[] = {
#if defined (HELP_BUILTIN)
N_("Execute conditional command.\n\
    \n\
    Returns a status of 0 or 1 depending on the evaluation of the conditional\n\
    expression EXPRESSION.  Expressions are composed of the same primaries used\n\
    by the `test' builtin, and may be combined using the following operators:\n\
    \n\
      ( EXPRESSION )	Returns the value of EXPRESSION\n\
      ! EXPRESSION		True if EXPRESSION is false; else false\n\
      EXPR1 && EXPR2	True if both EXPR1 and EXPR2 are true; else false\n\
      EXPR1 || EXPR2	True if either EXPR1 or EXPR2 is true; else false\n\
    \n\
    When the `==' and `!=' operators are used, the string to the right of\n\
    the operator is used as a pattern and pattern matching is performed.\n\
    When the `=~' operator is used, the string to the right of the operator\n\
    is matched as a regular expression.\n\
    \n\
    The && and || operators do not evaluate EXPR2 if EXPR1 is sufficient to\n\
    determine the expression's value.\n\
    \n\
    Exit Status:\n\
    0 or 1 depending on value of EXPRESSION."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const variable_help_doc[] = {
#if defined (HELP_BUILTIN)
N_("Common shell variable names and usage.\n\
    \n\
    BASH_VERSION	Version information for this Bash.\n\
    CDPATH	A colon-separated list of directories to search\n\
    		for directories given as arguments to `cd'.\n\
    GLOBIGNORE	A colon-separated list of patterns describing filenames to\n\
    		be ignored by pathname expansion.\n\
    HISTFILE	The name of the file where your command history is stored.\n\
    HISTFILESIZE	The maximum number of lines this file can contain.\n\
    HISTSIZE	The maximum number of history lines that a running\n\
    		shell can access.\n\
    HOME	The complete pathname to your login directory.\n\
    HOSTNAME	The name of the current host.\n\
    HOSTTYPE	The type of CPU this version of Bash is running under.\n\
    IGNOREEOF	Controls the action of the shell on receipt of an EOF\n\
    		character as the sole input.  If set, then the value\n\
    		of it is the number of EOF characters that can be seen\n\
    		in a row on an empty line before the shell will exit\n\
    		(default 10).  When unset, EOF signifies the end of input.\n\
    MACHTYPE	A string describing the current system Bash is running on.\n\
    MAILCHECK	How often, in seconds, Bash checks for new mail.\n\
    MAILPATH	A colon-separated list of filenames which Bash checks\n\
    		for new mail.\n\
    OSTYPE	The version of Unix this version of Bash is running on.\n\
    PATH	A colon-separated list of directories to search when\n\
    		looking for commands.\n\
    PROMPT_COMMAND	A command to be executed before the printing of each\n\
    		primary prompt.\n\
    PS1		The primary prompt string.\n\
    PS2		The secondary prompt string.\n\
    PWD		The full pathname of the current directory.\n\
    SHELLOPTS	A colon-separated list of enabled shell options.\n\
    TERM	The name of the current terminal type.\n\
    TIMEFORMAT	The output format for timing statistics displayed by the\n\
    		`time' reserved word.\n\
    auto_resume	Non-null means a command word appearing on a line by\n\
    		itself is first looked for in the list of currently\n\
    		stopped jobs.  If found there, that job is foregrounded.\n\
    		A value of `exact' means that the command word must\n\
    		exactly match a command in the list of stopped jobs.  A\n\
    		value of `substring' means that the command word must\n\
    		match a substring of the job.  Any other value means that\n\
    		the command must be a prefix of a stopped job.\n\
    histchars	Characters controlling history expansion and quick\n\
    		substitution.  The first character is the history\n\
    		substitution character, usually `!'.  The second is\n\
    		the `quick substitution' character, usually `^'.  The\n\
    		third is the `history comment' character, usually `#'.\n\
    HISTIGNORE	A colon-separated list of patterns used to decide which\n\
    		commands should be saved on the history list.\n\
"),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const return_doc[] = {
#if defined (HELP_BUILTIN)
N_("Return from a shell function.\n\
    \n\
    Causes a function or sourced script to exit with the return value\n\
    specified by N.  If N is omitted, the return status is that of the\n\
    last command executed within the function or script.\n\
    \n\
    Exit Status:\n\
    Returns N, or failure if the shell is not executing a function or script."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const export_doc[] = {
#if defined (HELP_BUILTIN)
N_("Set export attribute for shell variables.\n\
    \n\
    Marks each NAME for automatic export to the environment of subsequently\n\
    executed commands.  If VALUE is supplied, assign VALUE before exporting.\n\
    \n\
    Options:\n\
      -f	refer to shell functions\n\
      -n	remove the export property from each NAME\n\
      -p	display a list of all exported variables and functions\n\
    \n\
    An argument of `--' disables further option processing.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is given or NAME is invalid."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const readonly_doc[] = {
#if defined (HELP_BUILTIN)
N_("Mark shell variables as unchangeable.\n\
    \n\
    Mark each NAME as read-only; the values of these NAMEs may not be\n\
    changed by subsequent assignment.  If VALUE is supplied, assign VALUE\n\
    before marking as read-only.\n\
    \n\
    Options:\n\
      -a	refer to indexed array variables\n\
      -A	refer to associative array variables\n\
      -f	refer to shell functions\n\
      -p	display a list of all readonly variables and functions\n\
    \n\
    An argument of `--' disables further option processing.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is given or NAME is invalid."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const set_doc[] = {
#if defined (HELP_BUILTIN)
N_("Set or unset values of shell options and positional parameters.\n\
    \n\
    Change the value of shell attributes and positional parameters, or\n\
    display the names and values of shell variables.\n\
    \n\
    Options:\n\
      -a  Mark variables which are modified or created for export.\n\
      -b  Notify of job termination immediately.\n\
      -e  Exit immediately if a command exits with a non-zero status.\n\
      -f  Disable file name generation (globbing).\n\
      -h  Remember the location of commands as they are looked up.\n\
      -k  All assignment arguments are placed in the environment for a\n\
          command, not just those that precede the command name.\n\
      -m  Job control is enabled.\n\
      -n  Read commands but do not execute them.\n\
      -o option-name\n\
          Set the variable corresponding to option-name:\n\
              allexport    same as -a\n\
              braceexpand  same as -B\n\
              emacs        use an emacs-style line editing interface\n\
              errexit      same as -e\n\
              errtrace     same as -E\n\
              functrace    same as -T\n\
              hashall      same as -h\n\
              histexpand   same as -H\n\
              history      enable command history\n\
              ignoreeof    the shell will not exit upon reading EOF\n\
              interactive-comments\n\
                           allow comments to appear in interactive commands\n\
              keyword      same as -k\n\
              monitor      same as -m\n\
              noclobber    same as -C\n\
              noexec       same as -n\n\
              noglob       same as -f\n\
              nolog        currently accepted but ignored\n\
              notify       same as -b\n\
              nounset      same as -u\n\
              onecmd       same as -t\n\
              physical     same as -P\n\
              pipefail     the return value of a pipeline is the status of\n\
                           the last command to exit with a non-zero status,\n\
                           or zero if no command exited with a non-zero status\n\
              posix        change the behavior of bash where the default\n\
                           operation differs from the Posix standard to\n\
                           match the standard\n\
              privileged   same as -p\n\
              verbose      same as -v\n\
              vi           use a vi-style line editing interface\n\
              xtrace       same as -x\n\
      -p  Turned on whenever the real and effective user ids do not match.\n\
          Disables processing of the $ENV file and importing of shell\n\
          functions.  Turning this option off causes the effective uid and\n\
          gid to be set to the real uid and gid.\n\
      -t  Exit after reading and executing one command.\n\
      -u  Treat unset variables as an error when substituting.\n\
      -v  Print shell input lines as they are read.\n\
      -x  Print commands and their arguments as they are executed.\n\
      -B  the shell will perform brace expansion\n\
      -C  If set, disallow existing regular files to be overwritten\n\
          by redirection of output.\n\
      -E  If set, the ERR trap is inherited by shell functions.\n\
      -H  Enable ! style history substitution.  This flag is on\n\
          by default when the shell is interactive.\n\
      -P  If set, do not follow symbolic links when executing commands\n\
          such as cd which change the current directory.\n\
      -T  If set, the DEBUG trap is inherited by shell functions.\n\
      -   Assign any remaining arguments to the positional parameters.\n\
          The -x and -v options are turned off.\n\
    \n\
    Using + rather than - causes these flags to be turned off.  The\n\
    flags can also be used upon invocation of the shell.  The current\n\
    set of flags may be found in $-.  The remaining n ARGs are positional\n\
    parameters and are assigned, in order, to $1, $2, .. $n.  If no\n\
    ARGs are given, all shell variables are printed.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is given."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const unset_doc[] = {
#if defined (HELP_BUILTIN)
N_("Unset values and attributes of shell variables and functions.\n\
    \n\
    For each NAME, remove the corresponding variable or function.\n\
    \n\
    Options:\n\
      -f	treat each NAME as a shell function\n\
      -v	treat each NAME as a shell variable\n\
    \n\
    Without options, unset first tries to unset a variable, and if that fails,\n\
    tries to unset a function.\n\
    \n\
    Some variables cannot be unset; also see `readonly'.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is given or a NAME is read-only."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const shift_doc[] = {
#if defined (HELP_BUILTIN)
N_("Shift positional parameters.\n\
    \n\
    Rename the positional parameters $N+1,$N+2 ... to $1,$2 ...  If N is\n\
    not given, it is assumed to be 1.\n\
    \n\
    Exit Status:\n\
    Returns success unless N is negative or greater than $#."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const shopt_doc[] = {
#if defined (HELP_BUILTIN)
N_("Set and unset shell options.\n\
    \n\
    Change the setting of each shell option OPTNAME.  Without any option\n\
    arguments, list all shell options with an indication of whether or not each\n\
    is set.\n\
    \n\
    Options:\n\
      -o	restrict OPTNAMEs to those defined for use with `set -o'\n\
      -p	print each shell option with an indication of its status\n\
      -q	suppress output\n\
      -s	enable (set) each OPTNAME\n\
      -u	disable (unset) each OPTNAME\n\
    \n\
    Exit Status:\n\
    Returns success if OPTNAME is enabled; fails if an invalid option is\n\
    given or OPTNAME is disabled."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const source_doc[] = {
#if defined (HELP_BUILTIN)
N_("Execute commands from a file in the current shell.\n\
    \n\
    Read and execute commands from FILENAME in the current shell.  The\n\
    entries in $PATH are used to find the directory containing FILENAME.\n\
    If any ARGUMENTS are supplied, they become the positional parameters\n\
    when FILENAME is executed.\n\
    \n\
    Exit Status:\n\
    Returns the status of the last command executed in FILENAME; fails if\n\
    FILENAME cannot be read."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const dot_doc[] = {
#if defined (HELP_BUILTIN)
N_("Execute commands from a file in the current shell.\n\
    \n\
    Read and execute commands from FILENAME in the current shell.  The\n\
    entries in $PATH are used to find the directory containing FILENAME.\n\
    If any ARGUMENTS are supplied, they become the positional parameters\n\
    when FILENAME is executed.\n\
    \n\
    Exit Status:\n\
    Returns the status of the last command executed in FILENAME; fails if\n\
    FILENAME cannot be read."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#if defined (JOB_CONTROL)
char * const suspend_doc[] = {
#if defined (HELP_BUILTIN)
N_("Suspend shell execution.\n\
    \n\
    Suspend the execution of this shell until it receives a SIGCONT signal.\n\
    Unless forced, login shells cannot be suspended.\n\
    \n\
    Options:\n\
      -f	force the suspend, even if the shell is a login shell\n\
    \n\
    Exit Status:\n\
    Returns success unless job control is not enabled or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* JOB_CONTROL */
char * const test_doc[] = {
#if defined (HELP_BUILTIN)
N_("Evaluate conditional expression.\n\
    \n\
    Exits with a status of 0 (true) or 1 (false) depending on\n\
    the evaluation of EXPR.  Expressions may be unary or binary.  Unary\n\
    expressions are often used to examine the status of a file.  There\n\
    are string operators as well, and numeric comparison operators.\n\
    \n\
    File operators:\n\
    \n\
      -a FILE        True if file exists.\n\
      -b FILE        True if file is block special.\n\
      -c FILE        True if file is character special.\n\
      -d FILE        True if file is a directory.\n\
      -e FILE        True if file exists.\n\
      -f FILE        True if file exists and is a regular file.\n\
      -g FILE        True if file is set-group-id.\n\
      -h FILE        True if file is a symbolic link.\n\
      -L FILE        True if file is a symbolic link.\n\
      -k FILE        True if file has its `sticky' bit set.\n\
      -p FILE        True if file is a named pipe.\n\
      -r FILE        True if file is readable by you.\n\
      -s FILE        True if file exists and is not empty.\n\
      -S FILE        True if file is a socket.\n\
      -t FD          True if FD is opened on a terminal.\n\
      -u FILE        True if the file is set-user-id.\n\
      -w FILE        True if the file is writable by you.\n\
      -x FILE        True if the file is executable by you.\n\
      -O FILE        True if the file is effectively owned by you.\n\
      -G FILE        True if the file is effectively owned by your group.\n\
      -N FILE        True if the file has been modified since it was last read.\n\
    \n\
      FILE1 -nt FILE2  True if file1 is newer than file2 (according to\n\
                       modification date).\n\
    \n\
      FILE1 -ot FILE2  True if file1 is older than file2.\n\
    \n\
      FILE1 -ef FILE2  True if file1 is a hard link to file2.\n\
    \n\
    String operators:\n\
    \n\
      -z STRING      True if string is empty.\n\
    \n\
      -n STRING\n\
         STRING      True if string is not empty.\n\
    \n\
      STRING1 = STRING2\n\
                     True if the strings are equal.\n\
      STRING1 != STRING2\n\
                     True if the strings are not equal.\n\
      STRING1 < STRING2\n\
                     True if STRING1 sorts before STRING2 lexicographically.\n\
      STRING1 > STRING2\n\
                     True if STRING1 sorts after STRING2 lexicographically.\n\
    \n\
    Other operators:\n\
    \n\
      -o OPTION      True if the shell option OPTION is enabled.\n\
      ! EXPR         True if expr is false.\n\
      EXPR1 -a EXPR2 True if both expr1 AND expr2 are true.\n\
      EXPR1 -o EXPR2 True if either expr1 OR expr2 is true.\n\
    \n\
      arg1 OP arg2   Arithmetic tests.  OP is one of -eq, -ne,\n\
                     -lt, -le, -gt, or -ge.\n\
    \n\
    Arithmetic binary operators return true if ARG1 is equal, not-equal,\n\
    less-than, less-than-or-equal, greater-than, or greater-than-or-equal\n\
    than ARG2.\n\
    \n\
    Exit Status:\n\
    Returns success if EXPR evaluates to true; fails if EXPR evaluates to\n\
    false or an invalid argument is given."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const test_bracket_doc[] = {
#if defined (HELP_BUILTIN)
N_("Evaluate conditional expression.\n\
    \n\
    This is a synonym for the \"test\" builtin, but the last argument must\n\
    be a literal `]', to match the opening `['."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const times_doc[] = {
#if defined (HELP_BUILTIN)
N_("Display process times.\n\
    \n\
    Prints the accumulated user and system times for the shell and all of its\n\
    child processes.\n\
    \n\
    Exit Status:\n\
    Always succeeds."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const trap_doc[] = {
#if defined (HELP_BUILTIN)
N_("Trap signals and other events.\n\
    \n\
    Defines and activates handlers to be run when the shell receives signals\n\
    or other conditions.\n\
    \n\
    ARG is a command to be read and executed when the shell receives the\n\
    signal(s) SIGNAL_SPEC.  If ARG is absent (and a single SIGNAL_SPEC\n\
    is supplied) or `-', each specified signal is reset to its original\n\
    value.  If ARG is the null string each SIGNAL_SPEC is ignored by the\n\
    shell and by the commands it invokes.\n\
    \n\
    If a SIGNAL_SPEC is EXIT (0) ARG is executed on exit from the shell.  If\n\
    a SIGNAL_SPEC is DEBUG, ARG is executed before every simple command.\n\
    \n\
    If no arguments are supplied, trap prints the list of commands associated\n\
    with each signal.\n\
    \n\
    Options:\n\
      -l	print a list of signal names and their corresponding numbers\n\
      -p	display the trap commands associated with each SIGNAL_SPEC\n\
    \n\
    Each SIGNAL_SPEC is either a signal name in <signal.h> or a signal number.\n\
    Signal names are case insensitive and the SIG prefix is optional.  A\n\
    signal may be sent to the shell with \"kill -signal $$\".\n\
    \n\
    Exit Status:\n\
    Returns success unless a SIGSPEC is invalid or an invalid option is given."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
char * const type_doc[] = {
#if defined (HELP_BUILTIN)
N_("Display information about command type.\n\
    \n\
    For each NAME, indicate how it would be interpreted if used as a\n\
    command name.\n\
    \n\
    Options:\n\
      -a	display all locations containing an executable named NAME;\n\
    	includes aliases, builtins, and functions, if and only if\n\
    	the `-p' option is not also used\n\
      -f	suppress shell function lookup\n\
      -P	force a PATH search for each NAME, even if it is an alias,\n\
    	builtin, or function, and returns the name of the disk file\n\
    	that would be executed\n\
      -p	returns either the name of the disk file that would be executed,\n\
    	or nothing if `type -t NAME' would not return `file'.\n\
      -t	output a single word which is one of `alias', `keyword',\n\
    	`function', `builtin', `file' or `', if NAME is an alias, shell\n\
    	reserved word, shell function, shell builtin, disk file, or not\n\
    	found, respectively\n\
    \n\
    Arguments:\n\
      NAME	Command name to be interpreted.\n\
    \n\
    Exit Status:\n\
    Returns success if all of the NAMEs are found; fails if any are not found."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#if !defined (_MINIX)
char * const ulimit_doc[] = {
#if defined (HELP_BUILTIN)
N_("Modify shell resource limits.\n\
    \n\
    Provides control over the resources available to the shell and processes\n\
    it creates, on systems that allow such control.\n\
    \n\
    Options:\n\
      -S	use the `soft' resource limit\n\
      -H	use the `hard' resource limit\n\
      -a	all current limits are reported\n\
      -b	the socket buffer size\n\
      -c	the maximum size of core files created\n\
      -d	the maximum size of a process's data segment\n\
      -e	the maximum scheduling priority (`nice')\n\
      -f	the maximum size of files written by the shell and its children\n\
      -i	the maximum number of pending signals\n\
      -l	the maximum size a process may lock into memory\n\
      -m	the maximum resident set size\n\
      -n	the maximum number of open file descriptors\n\
      -p	the pipe buffer size\n\
      -q	the maximum number of bytes in POSIX message queues\n\
      -r	the maximum real-time scheduling priority\n\
      -s	the maximum stack size\n\
      -t	the maximum amount of cpu time in seconds\n\
      -u	the maximum number of user processes\n\
      -v	the size of virtual memory\n\
      -x	the maximum number of file locks\n\
    \n\
    If LIMIT is given, it is the new value of the specified resource; the\n\
    special LIMIT values `soft', `hard', and `unlimited' stand for the\n\
    current soft limit, the current hard limit, and no limit, respectively.\n\
    Otherwise, the current value of the specified resource is printed.  If\n\
    no option is given, then -f is assumed.\n\
    \n\
    Values are in 1024-byte increments, except for -t, which is in seconds,\n\
    -p, which is in increments of 512 bytes, and -u, which is an unscaled\n\
    number of processes.\n\
    \n\
    Exit Status:\n\
    Returns success unless an invalid option is supplied or an error occurs."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* !_MINIX */
char * const umask_doc[] = {
#if defined (HELP_BUILTIN)
N_("Display or set file mode mask.\n\
    \n\
    Sets the user file-creation mask to MODE.  If MODE is omitted, prints\n\
    the current value of the mask.\n\
    \n\
    If MODE begins with a digit, it is interpreted as an octal number;\n\
    otherwise it is a symbolic mode string like that accepted by chmod(1).\n\
    \n\
    Options:\n\
      -p	if MODE is omitted, output in a form that may be reused as input\n\
      -S	makes the output symbolic; otherwise an octal number is output\n\
    \n\
    Exit Status:\n\
    Returns success unless MODE is invalid or an invalid option is given."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#if defined (JOB_CONTROL)
char * const wait_doc[] = {
#if defined (HELP_BUILTIN)
N_("Wait for job completion and return exit status.\n\
    \n\
    Waits for the process identified by ID, which may be a process ID or a\n\
    job specification, and reports its termination status.  If ID is not\n\
    given, waits for all currently active child processes, and the return\n\
    status is zero.  If ID is a a job specification, waits for all processes\n\
    in the job's pipeline.\n\
    \n\
    Exit Status:\n\
    Returns the status of ID; fails if ID is invalid or an invalid option is\n\
    given."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* JOB_CONTROL */
#if !defined (JOB_CONTROL)
char * const wait_doc[] = {
#if defined (HELP_BUILTIN)
N_("Wait for process completion and return exit status.\n\
    \n\
    Waits for the specified process and reports its termination status.  If\n\
    PID is not given, all currently active child processes are waited for,\n\
    and the return code is zero.  PID must be a process ID.\n\
    \n\
    Exit Status:\n\
    Returns the status of ID; fails if ID is invalid or an invalid option is\n\
    given."),
#endif /* HELP_BUILTIN */
  (char *)NULL
};
#endif /* !JOB_CONTROL */