1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272
|
<HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Created on March, 3 2001 by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
Olaf Bachmann <obachman@mathematik.uni-kl.de>
and many others.
Maintained by: Olaf Bachmann <obachman@mathematik.uni-kl.de>
Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
-->
<HEAD>
<TITLE>esh, the easy shell.: </TITLE>
<META NAME="description" CONTENT="esh, the easy shell.: ">
<META NAME="keywords" CONTENT="esh, the easy shell.: ">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="texi2html 1.64">
</HEAD>
<BODY LANG="EN" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000">
<A NAME="SEC_Top"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>esh, the easy shell.</H1>
<CODE>esh</CODE> is a new, lightweight Unix shell designed for maximum simplicity and
generality.
</P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC1">1. Rationale</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Why write it?</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC2">2. Overview</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">What is it?</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC9">3. Details</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">In-depth information on programming the shell.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC15">4. Differences from Scheme</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">How this shell differs from Scheme.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC16">5. Differences from sh</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">How this shell differs from sh-based shells.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC17">Command Index</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">All the builtin commands.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC18">Concept Index</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Concepts referred to in this manual.</TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<HR SIZE=1>
<A NAME="SEC1"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<A NAME="Rationale"></A>
<A NAME="IDX1"></A>
<H1> 1. Rationale </H1>
<!--docid::SEC1::-->
<P>
<CODE>esh</CODE> was primarily written out of a need for a simple and lightweight shell
for Unix. As such, it deviates completely from all of the traditional
shells, opting instead for a Lisp-like syntax. This allows exceptionally
small size, both in terms of lines of code and memory consumption, while
retaining remarkable flexibility and programmability.
</P><P>
<A NAME="Overview"></A>
<A NAME="IDX2"></A>
<A NAME="IDX3"></A>
<A NAME="IDX4"></A>
<HR SIZE="6">
<A NAME="SEC2"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC1"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC3"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC1"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1> 2. Overview </H1>
<!--docid::SEC2::-->
<P>
An overview of the basic information about the shell.
</P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC3">2.1 Starting <CODE>esh</CODE></A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">How to launch it.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC4">2.2 Interaction</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Simple interaction with the shell.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC5">2.3 Simple Programming</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Writing simple programs.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC6">2.4 Non-interactive</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Running the shell non-interactively.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC7">2.5 Job Control</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">How to use job control.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC8">2.6 Basic Usage</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Some essential commands.</TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="Starting esh"></A>
<A NAME="IDX5"></A>
<A NAME="IDX6"></A>
<A NAME="IDX7"></A>
<A NAME="IDX8"></A>
<A NAME="IDX9"></A>
<HR SIZE="6">
<A NAME="SEC3"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC4"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 2.1 Starting <CODE>esh</CODE> </H2>
<!--docid::SEC3::-->
<P>
To start the shell, simply type <CODE>esh</CODE>. There are no command-line
parameters. However, since all the command-line arguments are available
to the shell programmer, it is a simple matter to write your own argument
processing routine and place it in your <CODE>.eshrc</CODE> file.
</P><P>
Both <CODE>/etc/eshrc</CODE> and the <CODE>.eshrc</CODE> in your home directory will
be run by the shell on startup, if they exist.
</P><P>
<A NAME="Interaction"></A>
<A NAME="IDX10"></A>
<A NAME="IDX11"></A>
<A NAME="IDX12"></A>
<A NAME="IDX13"></A>
<HR SIZE="6">
<A NAME="SEC4"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC3"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC5"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 2.2 Interaction </H2>
<!--docid::SEC4::-->
<P>
If the shell is running interactively, you will get a prompt, <CODE>$ </CODE> by
default. Since the shell uses the readline library, you can use line-editing
keystrokes, the history buffer, filename completion, and the rest of the
goodies provided by the readline library.
</P><P>
To run a single executable, simply type it in as you would in any other
shell. Example: <CODE>/usr/games/fortune -m Unix</CODE>.
</P><P>
To run a pipeline, type several commands separated by commas or vertical
lines. Example:
<CODE>cat /var/log/messages, grep pppd, grep "IP address", xmessage -file -</CODE>.
</P><P>
To run a pipeline with file redirection, place the redirection symbols and the
filenames after the pipeline. Example:
<CODE>sort, uniq < names.raw > names.sorted</CODE>. In this case, the contents of
<CODE>names.raw</CODE> are used as the standard input of <CODE>sort</CODE>, and the output
of the whole pipeline is saved to <CODE>names.sorted</CODE>. The order in which
the redirection symbols are given does not matter, but a valid filename
should always follow a redirection symbol.
</P><P>
Note one major pitfall: <CODE>cd</CODE>, <CODE>bg</CODE>, <CODE>fg</CODE>, etc., are all
builtin shell commands! For info on running shell commands, see the
next section. (see section <A HREF="esh.html#SEC5">2.3 Simple Programming</A>)
</P><P>
<A NAME="Simple Programming"></A>
<A NAME="IDX14"></A>
<A NAME="IDX15"></A>
<A NAME="IDX16"></A>
<HR SIZE="6">
<A NAME="SEC5"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC4"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC6"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 2.3 Simple Programming </H2>
<!--docid::SEC5::-->
<P>
All shell commands are specified using a parenthetical syntax
very similar to that of Lisp or Scheme. Example: Use <CODE>(cd /var)</CODE> to change
the current directory. In this case, <CODE>cd</CODE> is the name of the command,
and <CODE>/var</CODE> is the argument. Multiple arguments to the same
command are separated by white space. Example: <CODE>(set HOME /home/ivan)</CODE>.
Builtin commands never accept options in the
style of compiled programs. Also note that quotes around string values are
not required, though they are certainly allowed at any time if you wish
to escape special characters. (In fact, using quotes is the only way to
do this. Backslash escape sequences are not recognized.) Example:
<CODE>(cd "funny,directory name()")</CODE>. In this case, the whole string inside
the quotes is used as the argument verbatim. Single quotes and double
quotes are equivalent.
</P><P>
If a command returns anything, the returned data will be printed
by the shell. Example: <CODE>(get HOME)</CODE> => <CODE>/home/ivan</CODE>.
</P><P>
Note that you can certainly use the return values of one command as input
to another. Example: <CODE>(cd (get HOME))</CODE>
</P><P>
If you want to pass a list instead of a string as an argument to a command,
quote the list with a tilde. Example:
<CODE>(run-simple ~(ls --color=yes))</CODE>. Here, the <CODE>run</CODE> command is given
a list as an argument.
</P><P>
Note that a sublist of a quoted list is also quoted; that is,
<CODE>~(1.1 (2.1 2.2) 1.2)</CODE> is a list of three elements, the first and last
are strings and the middle element is a list.
</P><P>
See section <A HREF="esh.html#SEC8">2.6 Basic Usage</A>, for an explanation of what <CODE>cd</CODE>, <CODE>get</CODE>,
<CODE>set</CODE>, and <CODE>run</CODE> do.
</P><P>
<A NAME="Non-interactive"></A>
<A NAME="IDX17"></A>
<A NAME="IDX18"></A>
<HR SIZE="6">
<A NAME="SEC6"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC5"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC7"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 2.4 Non-interactive </H2>
<!--docid::SEC6::-->
<P>
If the shell is started non-interactively -- for example, when the standard
input to the shell is a file -- the shell will only accept commands.
To run executables and construct pipes, simply use the <CODE>run</CODE>
command.
(see section <A HREF="esh.html#SEC8">2.6 Basic Usage</A>)
</P><P>
<A NAME="Job Control"></A>
<A NAME="IDX19"></A>
<A NAME="IDX20"></A>
<A NAME="IDX21"></A>
<A NAME="IDX22"></A>
<HR SIZE="6">
<A NAME="SEC7"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC6"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC8"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 2.5 Job Control </H2>
<!--docid::SEC7::-->
<P>
If the shell is running interactively, you will have access to job control
primitives.
</P><P>
To stop a job in the foreground, simply type <KBD>C-z</KBD>, as in other shells.
</P><P>
To bring the last known job into foreground or background, issue the <CODE>fg</CODE>
or <CODE>bg</CODE> command, respectively, without arguments.
(see section <A HREF="esh.html#SEC5">2.3 Simple Programming</A>)
</P><P>
To get a listing of all the currently known jobs, issue the <CODE>jobs</CODE>
command, also without arguments.
</P><P>
If the <CODE>fg</CODE> or <CODE>bg</CODE> command is given a single numeric argument, it
will act on the job number specified by that argument. To find out the job
number for a command, simply issue the <CODE>jobs</CODE> command.
</P><P>
Note: the job number is <EM>not</EM> the PID!
</P><P>
<A NAME="Basic Usage"></A>
<A NAME="IDX23"></A>
<A NAME="IDX24"></A>
<A NAME="IDX25"></A>
<A NAME="IDX26"></A>
<A NAME="IDX27"></A>
<A NAME="IDX28"></A>
<A NAME="IDX29"></A>
<A NAME="IDX30"></A>
<A NAME="IDX31"></A>
<A NAME="IDX32"></A>
<A NAME="IDX33"></A>
<A NAME="IDX34"></A>
<A NAME="IDX35"></A>
<A NAME="IDX36"></A>
<A NAME="IDX37"></A>
<A NAME="IDX38"></A>
<A NAME="IDX39"></A>
<A NAME="IDX40"></A>
<A NAME="IDX41"></A>
<A NAME="IDX42"></A>
<A NAME="IDX43"></A>
<HR SIZE="6">
<A NAME="SEC8"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC7"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC10"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 2.6 Basic Usage </H2>
<!--docid::SEC8::-->
<P>
<UL>
<LI>
<CODE>(cd [string])</CODE> Change the current directory to the given
argument. If the directory name is a single dash, the previous directory
will be used. (i.e. the value of the environment variable <CODE>OLDPWD</CODE>)
If the command is called without any arguments, change to the home directory.
<P>
<LI>
<CODE>(jobs)</CODE> List the current jobs.
<P>
<LI>
<CODE>(fg [number])</CODE> If the optional numeric argument is given, bring
the job number given by the argument into the foreground. If this argument
is omitted, bring the first job into the foreground.
<P>
<LI>
<CODE>(bg [number])</CODE> Same as <CODE>fg</CODE>, but puts a job into the background.
<P>
<LI>
<CODE>(run <bool> <file> <file> <list>...)</CODE> Run a pipeline.
The first argument should be <CODE>false</CODE> if you want the command to be
brought into the foreground, or <CODE>true</CODE> if otherwise.
The next two arguments are the input and output redirection files,
respectively. You can use <CODE>(standard)</CODE> for standard input/output.
The rest of the arguments are the commands you want to run,
given as lists.
If the command was run in the background, then the return value
is the PID of the last executable in the pipeline. Otherwise, the return
value is the exit status of the pipeline.
<P>
Examples:
<CODE>(run (false) (standard) (standard) ~(/usr/games/fortune -m Unix))</CODE>
is equivalent to
<CODE>/usr/games/fortune -m Unix</CODE>.
<CODE>(run (false) (file-open file "names.raw") (file-open file "names.sorted") ~(sort) ~(uniq))</CODE> is equivalent to
<CODE>sort, uniq < names.raw > names.sorted</CODE>.
</P><P>
<LI>
<CODE>(run-simple <list>...)</CODE> Equivalent to
<CODE>(run (false) (standard) (standard) ...)</CODE>.
This command returns the exit status of the pipeline.
<P>
<LI>
<CODE>(get <string>)</CODE> Return the environment variable named by the given
argument.
<P>
<LI>
<CODE>(set <string> <string>)</CODE> Set the environment variable named by the first
string to be the second string.
<P>
<LI>
<CODE>(env)</CODE> List all environment variables.
<P>
<LI>
<CODE>(print ...)</CODE> Print the given arguments on the standard output in
a human-readable form.
<P>
<LI>
<CODE>(+ <number>...)</CODE> Add all the arguments.
<P>
<LI>
<CODE>(- <number>...)</CODE> Subtract the arguments following the first argument
from the first argument.
<P>
<LI>
<CODE>(* <number>...)</CODE> Multiply all the arguments.
<P>
<LI>
<CODE>(/ <number>...)</CODE> Divide the first argument by the rest of the arguments.
<P>
<LI>
<CODE>(< <number> <number>)</CODE> Return <CODE>true</CODE> if the first number is
less than the second; otherwise, return <CODE>false</CODE>.
<P>
<LI>
<CODE>(> <number> <number>)</CODE> Return <CODE>true</CODE> if the first number is
less than the second; otherwise, return <CODE>false</CODE>.
<P>
<LI>
<CODE>(if <any> <any> <any>)</CODE> If the \"eval\" of the
first argument is <CODE>false</CODE>, execute <CODE>eval</CODE> on the second argument.
Otherwise, execute <CODE>eval</CODE> on the third argument. Note that the
arguments must be quoted right! (see section <A HREF="esh.html#SEC12">3.3 Quoting Trickery</A> for
more info on that.)
<P>
<LI>
<CODE>(list ...)</CODE> Compose a list made of the given arguments and return it.
<P>
<LI>
<CODE>(eval ...)</CODE> If an argument is a string or a hash table, simply return it.
Otherwise, execute the given list as if it was a command.
For example, typing in
<CODE>(eval ~(print Hello World!))</CODE> is equivalent to
<CODE>(print Hello World!)</CODE>. However, you must make sure that the list given
to <CODE>eval</CODE> is quoted properly in order to delay evaluation
until the right moment. (see section <A HREF="esh.html#SEC12">3.3 Quoting Trickery</A> for more info.)
<P>
<LI>
<CODE>(= <string> <string>)</CODE> Compare the two strings and return an empty
list if they are not equal. Otherwise, simply return the first string.
<P>
</UL>
<P>
<A NAME="Details"></A>
<A NAME="IDX44"></A>
<A NAME="IDX45"></A>
<A NAME="IDX46"></A>
<HR SIZE="6">
<A NAME="SEC9"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC8"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC10"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC2"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC15"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1> 3. Details </H1>
<!--docid::SEC9::-->
<P>
A programmer's manual and a tutorial.
</P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC10">3.1 Syntax</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Syntax of the shell.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC11">3.2 Semantics</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Writing commands, control structures, data storage.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Controlling <CODE>eval</CODE> and using data as code.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC13">3.4 Command List</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">More commands.</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="esh.html#SEC14">3.5 Tutorial</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Learn by example.</TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="Syntax"></A>
<A NAME="IDX47"></A>
<HR SIZE="6">
<A NAME="SEC10"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC11"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC8"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC15"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 3.1 Syntax </H2>
<!--docid::SEC10::-->
<P>
Here is a description of the syntax of <CODE>esh</CODE>. Note, however, that
this grammar is only a descriptive tool, since the actual parser in the
shell is written by hand.
</P><P>
Also note that using the interactive-command syntax is not allowed when
the shell is not started interactively.
</P><P>
<TABLE><tr><td> </td><td class=example><pre>openparen-symbol = '('
closeparen-symbol = ')'
delay-symbol = '~' | '$'
pipe-symbol = ',' | '|'
redirection-symbol = '<' | '>'
script = /* Nothing */ |
list script
list = openparen-symbol list-elements closeparen-symbol
list-elements = /* Nothing */ |
string list-elements |
delay-symbol list list-elements |
list list-elements
interactive-command = list |
interactive-pipeline
interactive-pipeline = /* Nothing */ |
interactive-pipe redirection redirection
interactive-pipe = /* Nothing */ |
single-command pipe-symbol interactive-pipe
single-command = /* Nothing */ |
string single-command
redirection = /* Nothing */ |
redirection-symbol string
</pre></td></tr></table></P><P>
<A NAME="Semantics"></A>
<A NAME="IDX48"></A>
<A NAME="IDX49"></A>
<A NAME="IDX50"></A>
<A NAME="IDX51"></A>
<A NAME="IDX52"></A>
<A NAME="IDX53"></A>
<A NAME="IDX54"></A>
<HR SIZE="6">
<A NAME="SEC11"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC10"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC12"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC15"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 3.2 Semantics </H2>
<!--docid::SEC11::-->
<P>
One major deviation of <CODE>esh</CODE> from other programming languages is
that commands are not functions. Any command can return any number of
values, without explicit unpacking syntax. (e.g. <CODE>Python</CODE>)
</P><P>
For example, <CODE>(rest ~(foo bar baz))</CODE> => <CODE>bar baz</CODE>.
These returned elements are not a list! Therefore, this code
will produce an error: <CODE>(rest (rest ~(foo bar baz)))</CODE>. Instead, you
should write: <CODE>(rest (list (rest ~(foo bar baz))))</CODE>.
</P><P>
The first, most important concept is the <CODE>define</CODE> command. This command
allows you to define new commands, which are no different from builtin
commands as far as the programmer is concerned.
</P><P>
The syntax of <CODE>define</CODE> is simple: <CODE>(define <string> ...)</CODE>.
The first argument is simply the name of the command you are defining, and
the rest of the arguments will simply be passed to <CODE>eval</CODE> whenever
your new command is called.
</P><P>
It's important to realize that this code snippet
<CODE>(define foo ~(print bar) bar) (foo)</CODE> is identical to
this one: <CODE>(eval ~(print bar) bar)</CODE>. Therefore, anything that
applies to <CODE>eval</CODE> also applies to commands defined by <CODE>define</CODE>.
(see section <A HREF="esh.html#SEC12">3.3 Quoting Trickery</A> for more on that.)
</P><P>
If you are familiar with Scheme or Lisp, you'll notice the lack of
argument passing information in the syntax of <CODE>define</CODE>. The reason for
that is that the argument passing convention is radically different in
<CODE>esh</CODE> from other Lisp-like languages.
</P><P>
Every command in <CODE>esh</CODE> has a stack all to itself for scratch space
and local variables. When a user-defined command is run, all the arguments
are simply placed on the local-variable stack, the first argument at the
top.
</P><P>
To access the local-variable stack, several commands can be used.
<CODE>(push <any>)</CODE> will push a value onto the stack, <CODE>(pop)</CODE> will
remove the top element of the stack and return it, <CODE>(top)</CODE> will return
a copy of the top element, <CODE>(stack)</CODE> will return a copy of the whole
stack, and finally <CODE>(rot)</CODE> will switch the top and the next-to-top
elements of the stack and return a copy of the element that just became
the top one.
</P><P>
The top-level of the interpreter also has a stack; that is, typing the
stack manipulation commands directly into the interpreter will produce the
expected results.
</P><P>
Note that commands called recursively do not inherit the stack of the
calling command.
</P><P>
Also note that <CODE>(stack)</CODE> does not return a list, it returns an
arbitrary number of elements. If you find typing <CODE>(list (stack))</CODE>
frequently, you can instead use the <CODE>(l-stack)</CODE> command, since they are
identical.
</P><P>
The shell does not support looping constructs in the traditional sense --
like in Scheme, looping is accomplished by using recursion. Here is
a concrete example:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(define print-squish
~(if ~(not-null? (top))
~(begin
(print (squish (pop)))
(print-squish (stack)))
()))
</pre></td></tr></table></P><P>
The command <CODE>begin</CODE> simply returns the given arguments; its purpose
is to allow the use of several commands where one is asked for.
(see section <A HREF="esh.html#SEC13">3.4 Command List</A> for the syntax of <CODE>if</CODE>)
</P><P>
Since <CODE>esh</CODE> 0.2, there is an explicit <CODE>true</CODE> and <CODE>false</CODE>
value; these values are different from all other possible values. Commands
that operate on predicates (<CODE>if</CODE>, <CODE>and</CODE>, <CODE>or</CODE>, <CODE>=</CODE>, etc.)
use these values extensively. You can use them in your own scripts with
the <CODE>true</CODE> and <CODE>false</CODE> commands. Note that <CODE>if</CODE>, <CODE>and</CODE>,
and <CODE>or</CODE> do not explicitly check for <CODE>true</CODE>, so to these commands
any value that isn't <CODE>false</CODE> is "true", so to say.
</P><P>
<A NAME="Quoting Trickery"></A>
<A NAME="IDX55"></A>
<A NAME="IDX56"></A>
<A NAME="IDX57"></A>
<A NAME="IDX58"></A>
<HR SIZE="6">
<A NAME="SEC12"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC11"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC13"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC15"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 3.3 Quoting Trickery </H2>
<!--docid::SEC12::-->
<P>
(Note: Since <CODE>esh</CODE> 0.6, the backslash quote has been removed.
Use the tilde quote instead.)
</P><P>
Note that the meaning of the quote syntax is much different in <CODE>esh</CODE>
than in Lisp -- in Lisp, the single quote is a syntactic trick to
allow inputting lists and symbols as literals. In <CODE>esh</CODE>, the tilde
quote has a very clear semantic meaning -- whenever a list is marked with
a tilde, it is marked as such throughout it's life. Commands such as
<CODE>eval</CODE> can then use this information to see which lists were supposed
to be evaluated, and which ones were meant to be left alone.
</P><P>
In other words, any list marked with a tilde has a numeric flag set on it,
which is preserved on the list until the list is deleted.
</P><P>
Also, nested tildes increase the "strength" of the tilde, so to say.
<CODE>eval</CODE> will not evaluate lists which have a "strength" greater than
itself, and calling <CODE>eval</CODE> recursively will increase it's strength.
</P><P>
This may sound confusing, but it has a simple intuitive meaning:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(eval ~(foo ~(bar baz)))
</pre></td></tr></table></P><P>
Here, as you would expect, <CODE>eval</CODE> will only evaluate <CODE>foo</CODE>, and
pass <CODE>(bar baz)</CODE> as a list to <CODE>foo</CODE>.
</P><P>
Note that unlike in Lisp, <CODE>esh</CODE> has no "special forms"! A command
that works on lists is indistinguishable from a command that works
on code. That's why there is no <CODE>lambda</CODE> command, and also why
arguments to <CODE>if</CODE> and firends need to be quoted with a tilde.
</P><P>
<A NAME="Command List"></A>
<A NAME="IDX59"></A>
<A NAME="IDX60"></A>
<A NAME="IDX61"></A>
<A NAME="IDX62"></A>
<A NAME="IDX63"></A>
<A NAME="IDX64"></A>
<A NAME="IDX65"></A>
<A NAME="IDX66"></A>
<A NAME="IDX67"></A>
<A NAME="IDX68"></A>
<A NAME="IDX69"></A>
<A NAME="IDX70"></A>
<A NAME="IDX71"></A>
<A NAME="IDX72"></A>
<A NAME="IDX73"></A>
<A NAME="IDX74"></A>
<A NAME="IDX75"></A>
<A NAME="IDX76"></A>
<A NAME="IDX77"></A>
<A NAME="IDX78"></A>
<A NAME="IDX79"></A>
<A NAME="IDX80"></A>
<A NAME="IDX81"></A>
<A NAME="IDX82"></A>
<A NAME="IDX83"></A>
<A NAME="IDX84"></A>
<A NAME="IDX85"></A>
<A NAME="IDX86"></A>
<A NAME="IDX87"></A>
<A NAME="IDX88"></A>
<A NAME="IDX89"></A>
<A NAME="IDX90"></A>
<A NAME="IDX91"></A>
<A NAME="IDX92"></A>
<A NAME="IDX93"></A>
<A NAME="IDX94"></A>
<A NAME="IDX95"></A>
<A NAME="IDX96"></A>
<A NAME="IDX97"></A>
<A NAME="IDX98"></A>
<A NAME="IDX99"></A>
<A NAME="IDX100"></A>
<A NAME="IDX101"></A>
<A NAME="IDX102"></A>
<A NAME="IDX103"></A>
<A NAME="IDX104"></A>
<A NAME="IDX105"></A>
<A NAME="IDX106"></A>
<A NAME="IDX107"></A>
<A NAME="IDX108"></A>
<A NAME="IDX109"></A>
<A NAME="IDX110"></A>
<A NAME="IDX111"></A>
<A NAME="IDX112"></A>
<A NAME="IDX113"></A>
<A NAME="IDX114"></A>
<A NAME="IDX115"></A>
<A NAME="IDX116"></A>
<A NAME="IDX117"></A>
<A NAME="IDX118"></A>
<A NAME="IDX119"></A>
<A NAME="IDX120"></A>
<A NAME="IDX121"></A>
<A NAME="IDX122"></A>
<A NAME="IDX123"></A>
<A NAME="IDX124"></A>
<A NAME="IDX125"></A>
<A NAME="IDX126"></A>
<HR SIZE="6">
<A NAME="SEC13"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC12"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC14"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC15"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 3.4 Command List </H2>
<!--docid::SEC13::-->
<P>
<UL>
<LI>
<CODE>(alias <string> <string>...)</CODE>
Create an alias. The first argument is the name of the alias, and the
rest of the arguments is the expansion. For example, <CODE>(alias rm rm -i)</CODE>
will create an alias called <CODE>rm</CODE>, so that any time <CODE>rm</CODE> is run,
<CODE>rm -i</CODE> gets executed in actuality.
<P>
<LI>
<CODE>(alias <string> <list>...)</CODE>
Mimic an executable with a command. Whenever an executable named by
the first string is run, the lists following get evaluated, and
their output is thrown away. This process will only happen during the
parsing stage, though. That is, this type of alias will only be enabled
when typing commands interactively into te shell.
Example: <CODE>(alias cd ~(cd (stack)))</CODE> to mimic the
traditional syntax of <CODE>cd</CODE>.
<P>
<LI>
<CODE>(alias-hash)</CODE>
Return the alias hash table. Modifying this table also modifies the
actual aliases.
<P>
<LI>
<CODE>(alive? <PID>)</CODE>
Return <CODE>true</CODE> if the given process is alive, and <CODE>false</CODE> otherwise.
<P>
<LI>
<CODE>(and ...)</CODE> Return <CODE>false</CODE> if any of the arguments evaluate to
<CODE>false</CODE>. Warning: the inputs need to be quoted with a tilde, since this
command implements a short-circuited <CODE>"and"</CODE>!
For example, <CODE>(and ~(under-attack) ~(launch-nukes))</CODE> is safe to use.
If the <CODE>"eval"</CODE> of <CODE>~(under-attack)</CODE> evaluates to <CODE>false</CODE>
<CODE>~(launch-nukes)</CODE> will never be evaluated.
<P>
<LI>
<CODE>(begin ...)</CODE>
Simply copy the inputs to the outputs. This command is useful when you want
to use several commands as if they were a single command. Example:
<P>
<TABLE><tr><td> </td><td class=example><pre>(if ~(check-me)
~(begin (print-message)
(set-environment-magic))
())
</pre></td></tr></table></P><P>
<LI>
<CODE>(begin-last ...)</CODE> Evaluate the given arguments sequentially, and
return the value of last argument.
<P>
<TABLE><tr><td> </td><td class=example><pre>(if ~(not-null? (top))
~(begin (push foo)
(print (stack))
(pop))
())
</pre></td></tr></table></P><P>
<LI>
<CODE>(builtin <string> ...)</CODE> Execute the builtin command named by the
first argument, even if this name has already been <CODE>define</CODE>d.
For example, here's how to write a custom replacement for <CODE>cd</CODE>:
<P>
<TABLE><tr><td> </td><td class=example><pre>(define cd
~(push (squish (get HOME) "/.cdlog"))
~(file-write (file-open file (top))
(squish (file-read (file-open file (pop)))
(stack) (nl)))
~(builtin cd (stack)))
</pre></td></tr></table></P><P>
<LI>
<CODE>(car <list>)</CODE> Simply return the first element of the list.
<P>
<LI>
<CODE>(car-l ...)</CODE> Return the first element.
<P>
<LI>
<CODE>(cdr <list>)</CODE> Return the elements of the list after the first one.
<P>
<LI>
<CODE>(chars <string>)</CODE> Return the charcters in the given string.
<TABLE><tr><td> </td><td class=example><pre>(chars "foo bar") => 'f' 'o' 'o' ' ' 'b' 'a' 'r'
</pre></td></tr></table><P>
<LI>
<CODE>(chop! <string>)</CODE> Delete the last character in the given string,
and return the given string.
Note: this function modifies the string in-place!
<P>
<LI>
<CODE>(chop-nl! <string>)</CODE> Like <CODE>chop!</CODE>, except that it only deletes
the last character if it is a newline.
<P>
<LI>
<CODE>(clone <string> <number>)</CODE> Return the first argument X number of times,
where X is the numeric value of the second argument.
<P>
<LI>
<CODE>(copy)</CODE> Equivalent to <CODE>begin</CODE>.
<P>
<LI>
<CODE>(define <string> ...)</CODE> Define a new command, named by the
first argument. The rest of the arguments will be passed to <CODE>eval</CODE>
when the newly defined command is called. Example:
<P>
<TABLE><tr><td> </td><td class=example><pre>(define print-nl
~(print (stack) (nl)))
</pre></td></tr></table></P><P>
<LI>
<CODE>(defined? <string>)</CODE> Return <CODE>false</CODE> if the given string has not
been defined as a command.
<P>
<LI>
<CODE>(exec <list> ..)</CODE> Equivalent to <CODE>eval</CODE>, except that the stack will
be set to the first argument for the duration of evaluation.
<P>
<LI>
<CODE>(exit [number])</CODE> Exit with the given exit status, or zero if the
command is called with no arguments.
<P>
<LI>
<CODE>(false ...)</CODE> Return <CODE>false</CODE>.
<P>
<LI>
<CODE>(file-open <string> <string>)</CODE> Open a file. The first argument specifies
the type of the file, and the second the name of the file you want to open.
Allowed values for the first argument:
<P>
<UL>
<LI><CODE>"file"</CODE> Open a regular file for reading/writing.
<LI><CODE>"truncate"</CODE> Open a regular file for reading/writing, but truncate
it first.
<LI><CODE>"append"</CODE> Open a regular file for reading/appending.
<LI><CODE>"string"</CODE> Simulate a file with a string variable. In this case,
the name is used as the initial contents of the buffer.
(Note: "string" files are implemented as pipes internally.)
</UL>
<P>
This command return the file, or an empty list on error.
</P><P>
<LI>
<CODE>(file-read <file>)</CODE> Read the entire file given by the argument
into a single string, and return the string. <EM>Warning:</EM> when reading
the output of a pipeline, you may have to call this command several times.
<P>
<LI>
<CODE>(file-type <string>)</CODE> Return a string describing what type of file
is named by the given string. If such a file does not exist, return an empty
list. Otherwise, one of these strings is returned:
<P>
<UL>
<LI><CODE>"link"</CODE> File is a symbolic link.
<LI><CODE>"regular"</CODE> File is a regular file.
<LI><CODE>"directory"</CODE> File is a directory.
<LI><CODE>"character"</CODE> File is a character device.
<LI><CODE>"block"</CODE> File is a block device.
<LI><CODE>"pipe"</CODE> File is a FIFO pipe.
<LI><CODE>"socket"</CODE> File is a socket.
</UL>
<P>
<LI>
<CODE>(file-write <file> <string>)</CODE> Write the second argument into the
first one.
<P>
<LI>
<CODE>(filter <string> <list>)</CODE> Apply the second argument to every character
of the first argument. This command does not change the original string.
<P>
<TABLE><tr><td> </td><td class=example><pre>(filter "string with spaces"
~(if ~(= (top) ' ')
'_'
~(top)))
</pre></td></tr></table></P><P>
returns "string_with_spaces".
</P><P>
<LI>
<CODE>(first <list>)</CODE> Equivalent to <CODE>car</CODE>.
<P>
<LI>
<CODE>(first-l ...)</CODE> Equivalent to <CODE>car-l</CODE>.
<P>
<LI>
<CODE>(gobble <file> <list>...)</CODE> Equivalent to <CODE>run</CODE>, except that the
output of the pipeline will be returned, as a string.
<P>
<LI>
<CODE>(hash-get <hash> <string>)</CODE> Return the element in the given hash table
corresponding to the given key.
<P>
<LI>
<CODE>(hash-keys <hash>)</CODE> Return all the keys in the given hash table.
<P>
<LI>
<CODE>(hash-make)</CODE> Return a new, empty hash table.
<P>
<LI>
<CODE>(hash-put <hash> <string> ...)</CODE> Associate the arguments after the
second one with the given key in the given hash table.
<P>
<LI>
<CODE>(help)</CODE> Show version number and all builtin commands.
<P>
<LI>
<CODE>(interactive?)</CODE> Return <CODE>false</CODE> if the shell has <EM>not</EM> been
started interactively.
<P>
<LI>
<CODE>(l-cdr <list>)</CODE> Equivalent to <CODE>(list (cdr ...))</CODE>.
<P>
<LI>
<CODE>(l-rest <list>)</CODE> Equivalent to <CODE>l-cdr</CODE>.
<P>
<LI>
<CODE>(l-stack)</CODE> Equivalent to <CODE>(list (stack))</CODE>.
<P>
<LI>
<CODE>(newline)</CODE> Return a newline character.
<P>
<LI>
<CODE>(nl)</CODE> Equivalent to <CODE>newline</CODE>.
<P>
<LI>
<CODE>(not <bool>)</CODE> Return <CODE>false</CODE> if the argument is <CODE>true</CODE>.
<P>
<LI>
<CODE>(not-null? <any>)</CODE> Return <CODE>false</CODE> if the argument is an empty list.
<P>
<LI>
<CODE>(null ...)</CODE> Return an empty list.
<P>
<LI>
<CODE>(null? <any>)</CODE> Return <CODE>true</CODE> if the argument is an empty list.
<P>
<LI>
<CODE>(match <string> <string>)</CODE> Return <CODE>true</CODE> if the second argument
matches the first. The first argument is a regular expression.
<P>
<LI>
<CODE>(or ...)</CODE> Return <CODE>false</CODE> if all the argument evaluate to
<CODE>false</CODE>. As with the command <CODE>and</CODE>, this command is also
short-circuited. See the description of <CODE>and</CODE> for an explanation of why
arguments must be quoted with a tilde.
<P>
<LI>
<CODE>(parse <string>)</CODE> Parse the given string as if it was typed into the
shell.
<P>
<LI>
<CODE>(pop)</CODE> Excise the top element from the stack, and return it.
<P>
<LI>
<CODE>(prompt ...)</CODE> Run the given arguments through <CODE>(squish (eval ...))</CODE>
to produce the prompt. This command need only be run once.
<P>
<LI>
<CODE>(push <any>)</CODE> Push the argument onto the stack.
<P>
<LI>
<CODE>(read <string>)</CODE> Read a line of input from the user, using the given
string as a prompt. Warning: this command only works if the shell is running
interactively.
<P>
<LI>
<CODE>(repeat <string> ...)</CODE> Repeat the arguments after the first argument
<CODE>n</CODE> number of times, where <CODE>n</CODE> is the numeric value of the first
argument.
<P>
<LI>
<CODE>(rest <list>)</CODE> Equivalent to <CODE>cdr</CODE>.
<P>
<LI>
<CODE>(reverse ...)</CODE> Return the given arguments in reverse order.
<P>
<LI>
<CODE>(rot)</CODE> Switch the top and next-to-top elements of the stack, and return
the element that just became the top one.
<P>
<LI>
<CODE>(script <string>)</CODE> Execute the given filename as a shell script.
<P>
<LI>
<CODE>(split <string>...)</CODE> Separate the given string into words. If there are
more than one arguments given, then use the arguments after the first one as
field separators. Otherwise, assume that fields are separated by whitespace.
Note that splitting is more complex than you'd think at first glance --
<CODE>(split ":.:.foo:.:bar.:baz." ":" ".")</CODE> => <CODE>foo bar baz</CODE>.
In other words, extra field separators are ignored.
<P>
<LI>
<CODE>(squish ...)</CODE> Concatenate any string values into a single string. List
structures will be ignored. For example:
<CODE>(squish ~(foo (bar (baz))))</CODE> => <CODE>foobarbaz</CODE>.
<P>
<LI>
<CODE>(stack)</CODE> Return all the stack elements, top one first.
<P>
<LI>
<CODE>(standard)</CODE> Return the standard input/output.
<P>
<LI>
<CODE>(stderr)</CODE> Return the standard input/error.
<P>
<LI>
<CODE>(stderr-handler <file>)</CODE> Define a standard error handler for
all new subprocesses. This means that from now on, all executables run
from the shell will send their standard error to the given file.
<P>
<LI>
<CODE>(substring? <string> <string>)</CODE> Return <CODE>true</CODE> if the first argument
is a substring of the second.
<P>
<LI>
<CODE>(top)</CODE> Return a copy of the top element of the stack.
<P>
<LI>
<CODE>(true ...)</CODE> Return <CODE>true</CODE>.
<P>
<LI>
<CODE>(typecheck <string> ...)</CODE> Make sure that the given arguments match the
given type specification string. (see section <A HREF="esh.html#SEC14">3.5 Tutorial</A> for a description of this
type specification string.)
<P>
<LI>
<CODE>(unlist <list>)</CODE> Return the elements of the given list.
<P>
<LI>
<CODE>(version)</CODE> Return the version of the shell, as three numbers.
<P>
<LI>
<CODE>(void ...)</CODE> Return nothing at all. Note: This is different from
<CODE>null</CODE>! For example:
<P>
<TABLE><tr><td> </td><td class=example><pre>(if (null (magic-sequence))
~(my-predicate)
true
false)
</pre></td></tr></table></P><P>
is an error, since in this case <CODE>if</CODE> is given four arguments.
(<CODE>null</CODE> returns an empty list.)
</P><P>
On the other hand,
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(if (void (magic-sequence))
~(my-predicate)
true
false)
</pre></td></tr></table></P><P>
is perfectly fine since <CODE>void</CODE> returns nothing at all whatsoever!
</P><P>
<LI>
<CODE>(while <list> <list> ...)</CODE> <CODE>eval</CODE> the second argument as long
as the <CODE>eval</CODE> of the first argument is not <CODE>false</CODE>. The rest of
the arguments are used as the stack for the duration of this command's
execution. <EM>Warning:</EM> this command is an efficiency hack. It saves the
waste of creating a huge return value which would be inherent in a recursive
command. Use <CODE>while</CODE> only if you don't care about the return value of
the given commands.
<P>
Example:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(define while-rec
~(if ~(condition)
~(begin (action)
(while-rec))
()))
</pre></td></tr></table></P><P>
will return a value equivalent to <CODE>(action) (action) (action) ...</CODE>.
This value could be a large memory and time waste. Therefore, when you are
looping over large lists and you don't care about return values, use
<CODE>while</CODE>.
</P><P>
</UL>
<P>
<A NAME="Tutorial"></A>
<A NAME="IDX127"></A>
<A NAME="IDX128"></A>
<A NAME="IDX129"></A>
<A NAME="IDX130"></A>
<A NAME="IDX131"></A>
<A NAME="IDX132"></A>
<A NAME="IDX133"></A>
<A NAME="IDX134"></A>
<A NAME="IDX135"></A>
<HR SIZE="6">
<A NAME="SEC14"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC13"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC15"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC15"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 3.5 Tutorial </H2>
<!--docid::SEC14::-->
<P>
For starters, let us write a simple command to iterate through a list:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(define for-each
~(if ~(not-null? (rot))
~(begin ((rot) (rot))
(for-each (cdr (list (stack)))))
()))
</pre></td></tr></table></P><P>
Using this command is simple:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(define starrify
~(squish '*' (top) '*'))
(for-each starrify foo bar baz)
</pre></td></tr></table></P><P>
results in <CODE>*foo* *bar* *baz*</CODE>.
</P><P>
Several notes to keep in mind: notice the tricky use of <CODE>rot</CODE> to
shuffle stack elements. If you don't remember, <CODE>rot</CODE> switches the top
and the next-to-top elements of the stack, and returns a copy of the element
that just became the top one.
</P><P>
Think of it as such: the first call to <CODE>rot</CODE> brings the second argument
to the front and checks that the stack is not empty, at the same time.
</P><P>
The second call to <CODE>rot</CODE> returns the first argument, and the third
call to <CODE>rot</CODE> returns the second element and undoes the previous call
of <CODE>rot</CODE> at the same time. At this point, the second argument is still
on top of the stack.
</P><P>
Finally, when <CODE>for-each</CODE> is recursively called, it is given only
below the top stack element as arguments. Effectively, the second element
was excised from the stack.
</P><P>
Also note that <CODE>((rot) (rot))</CODE> is calling a command, even though the
name of the command is not explicit.
</P><P>
Now for another example. Suppose that you want to remind yourself which
directory serves which purpose, and you'd like a descriptive string to
be listed along with a directory name in the prompt.
(i.e. <CODE>[/home/ivan/src/xcf => Backup of GIMP artwork]$ </CODE>)
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(prompt ~(push (get PWD))
~(push (hash-get (dir-names) (top)))
"["
~(rot)
~(if ~(not-null? (rot))
~(squish " => " (top))
"")
"]$ "
~(null (pop))
~(null (pop)))
</pre></td></tr></table></P><P>
The meaning of <CODE>prompt</CODE> is simple -- whatever arguments are given to
it are passed through <CODE>eval</CODE> and <CODE>squish</CODE> to become the string
specifying the prompt. Again, as far as quoting is concerned, <CODE>prompt</CODE>
is identical to <CODE>eval</CODE>.
</P><P>
Also, the command <CODE>null</CODE> simply returns an empty list.
</P><P>
To finish the job, you should insert the following code into your
<CODE>.eshrc</CODE>:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(define dir-names (hash-make))
(hash-put (dir-names) "/home/ivan/src/xcf" "Backup of GIMP artwork")
</pre></td></tr></table></P><P>
This is a simple script that illustrates simple file I/O:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(define prepend
~(push (file-read (file-open file (pop))))
~(push (squish (pop)
(file-read (file-open file (top)))))
~(file-write (file-open truncate (rot)) (rot)))
</pre></td></tr></table></P><P>
A script such as this was used to append a header to every source code file
in the <CODE>esh</CODE> distribution. Note the <CODE>typecheck</CODE> command; it is
very useful for insuring the consistency of arguments to commands.
</P><P>
The only tricky part about using <CODE>typecheck</CODE> is the syntax of the
first argument. Here is an explanation:
</P><P>
<UL>
<LI><CODE>s</CODE> Make sure that the next argument is a single string.
<LI><CODE>l</CODE> Make sure that the next argument is a single list.
<LI><CODE>h</CODE> Make sure that the next argument is a single hash table.
<LI><CODE>b</CODE> Make sure that the next argument is a single boolean.
<LI><CODE>f</CODE> Make sure that the next argument is a single file.
<LI><CODE>p</CODE> Make sure that the next argument is a PID.
<LI><CODE>S</CODE> Match any number of strings.
<LI><CODE>L</CODE> Match any number of lists.
<LI><CODE>H</CODE> Match any number of hash tables.
<LI><CODE>B</CODE> Match any number of booleans.
<LI><CODE>F</CODE> Match any number of files.
<LI><CODE>P</CODE> Match any number of PID's.
<LI><CODE>?</CODE> Match any one element.
<LI><CODE>*</CODE> Match any number of any elements.
<LI><CODE>(</CODE> Match a list only if the sublist passes typechecking on the
string after the parentheses.
<LI><CODE>)</CODE> Match end-of-list.
</UL>
<P>
For example, <CODE>"H(ss)s"</CODE> will match any list of arguments that begin
with an arbitrary number of hash tables, followed by a list of two strings,
and ends with a single string.
</P><P>
<A NAME="Differences from Scheme"></A>
<A NAME="IDX136"></A>
<A NAME="IDX137"></A>
<A NAME="IDX138"></A>
<A NAME="IDX139"></A>
<HR SIZE="6">
<A NAME="SEC15"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC14"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC16"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC9"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC16"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1> 4. Differences from Scheme </H1>
<!--docid::SEC15::-->
<P>
Note that in <CODE>esh</CODE> there is no numeric or "symbol" type -- all scalars are
either strings, booleans, files, or process ID's. Most importantly,
there is no "procedure" type -- hence, no <CODE>lambda</CODE> command. From the point
of view of the interpreter, a command and a list are indistinguishable.
</P><P>
Don't be mislead by the naming of <CODE>define</CODE> -- it is actually equivalent to
a Lisp-like macro definition.
</P><P>
Also, <CODE>car</CODE> and friends are more complicated because commands in
<CODE>esh</CODE>
can return any number of arguments. This is why <CODE>(car (split "foo bar"))</CODE>
doesn't work -- <CODE>car</CODE> expects a list, while <CODE>split</CODE> returns
an arbitrary number of elements. In a case like this, it is more convenient
to write <CODE>(car-l (split "foo bar"))</CODE> instead, which is equivalent
to <CODE>(car (list (split "foo bar")))</CODE>.
</P><P>
<A NAME="Differences from sh"></A>
<A NAME="IDX140"></A>
<A NAME="IDX141"></A>
<A NAME="IDX142"></A>
<A NAME="IDX143"></A>
<A NAME="IDX144"></A>
<A NAME="IDX145"></A>
<HR SIZE="6">
<A NAME="SEC16"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC15"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC15"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1> 5. Differences from sh </H1>
<!--docid::SEC16::-->
<P>
The most obvious difference is the syntax -- other shells normally don't
make much of a distinction between commands from a disk executable and
the shell interpreter's builtin commands. Not so in <CODE>esh</CODE>.
While other shell normally operate by complicated string substitution
and matching rules, <CODE>esh</CODE> mainly uses command definitions and
recursion. In that sense, it is more similar to a "real" programming
language. <CODE>esh</CODE> also supports more complicated data structures --
lists and hash tables, for example. However, string operations are
lacking in comparison to other shells.
</P><P>
<CODE>esh</CODE> is also more verbose and formal, though this could be beneficial
when you're trying to compose large libraries of useful routines.
(It's possible to write shell "modes", much as in <CODE>emacs</CODE>, when using
<CODE>esh</CODE>.)
</P><P>
<CODE>esh</CODE> has a more generalized support for files. Instead of limiting
file I/O to redirection only, the same commands can be used either on pipes
or on files directly. (e.g. in the future, it may be possible to use a
network socket as the output of a pipeline.)
</P><P>
Also, traditional shells have "exported" and "non-exported" environment
variables, whereas in <CODE>esh</CODE> all variables are exported. That is,
there's no <CODE>setenv</CODE> command, there's just <CODE>set</CODE>.
</P><P>
<A NAME="Command Index"></A>
<HR SIZE="6">
<A NAME="SEC17"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC16"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC18"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC16"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC18"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1> Command Index </H1>
<!--docid::SEC17::-->
<P>
<table><tr><th valign=top>Jump to: </th><td><A HREF="esh.html#fn_*" style="text-decoration:none"><b>*</b></A>
<A HREF="esh.html#fn_+" style="text-decoration:none"><b>+</b></A>
<A HREF="esh.html#fn_-" style="text-decoration:none"><b>-</b></A>
<A HREF="esh.html#fn_/" style="text-decoration:none"><b>/</b></A>
<A HREF="esh.html#fn_=" style="text-decoration:none"><b>=</b></A>
<BR>
<A HREF="esh.html#fn_A" style="text-decoration:none"><b>A</b></A>
<A HREF="esh.html#fn_B" style="text-decoration:none"><b>B</b></A>
<A HREF="esh.html#fn_C" style="text-decoration:none"><b>C</b></A>
<A HREF="esh.html#fn_D" style="text-decoration:none"><b>D</b></A>
<A HREF="esh.html#fn_E" style="text-decoration:none"><b>E</b></A>
<A HREF="esh.html#fn_F" style="text-decoration:none"><b>F</b></A>
<A HREF="esh.html#fn_G" style="text-decoration:none"><b>G</b></A>
<A HREF="esh.html#fn_H" style="text-decoration:none"><b>H</b></A>
<A HREF="esh.html#fn_I" style="text-decoration:none"><b>I</b></A>
<A HREF="esh.html#fn_J" style="text-decoration:none"><b>J</b></A>
<A HREF="esh.html#fn_L" style="text-decoration:none"><b>L</b></A>
<A HREF="esh.html#fn_M" style="text-decoration:none"><b>M</b></A>
<A HREF="esh.html#fn_N" style="text-decoration:none"><b>N</b></A>
<A HREF="esh.html#fn_O" style="text-decoration:none"><b>O</b></A>
<A HREF="esh.html#fn_P" style="text-decoration:none"><b>P</b></A>
<A HREF="esh.html#fn_R" style="text-decoration:none"><b>R</b></A>
<A HREF="esh.html#fn_S" style="text-decoration:none"><b>S</b></A>
<A HREF="esh.html#fn_T" style="text-decoration:none"><b>T</b></A>
<A HREF="esh.html#fn_U" style="text-decoration:none"><b>U</b></A>
<A HREF="esh.html#fn_V" style="text-decoration:none"><b>V</b></A>
<A HREF="esh.html#fn_W" style="text-decoration:none"><b>W</b></A>
</td></tr></table><br><P></P>
<TABLE border=0>
<TR><TD></TD><TH ALIGN=LEFT>Index Entry</TH><TH ALIGN=LEFT> Section</TH></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_*"></A>*</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX38"><CODE>*</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_+"></A>+</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX36"><CODE>+</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_-"></A>-</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX37"><CODE>-</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_/"></A>/</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX39"><CODE>/</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_="></A>=</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX43"><CODE>=</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_A"></A>A</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX61"><CODE>alias</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX62"><CODE>alias-hash</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX63"><CODE>alive?</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX64"><CODE>and</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_B"></A>B</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX65"><CODE>begin</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX66"><CODE>begin-last</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX29"><CODE>bg</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_C"></A>C</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX67"><CODE>car</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX68"><CODE>car-l</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX27"><CODE>cd</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX69"><CODE>cdr</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX70"><CODE>chars</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX71"><CODE>chop!</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX72"><CODE>chop-nl!</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX73"><CODE>clone</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX74"><CODE>copy</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_D"></A>D</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX75"><CODE>define</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX76"><CODE>defined?</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_E"></A>E</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX34"><CODE>env</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX42"><CODE>eval</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX77"><CODE>exec</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX78"><CODE>exit</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_F"></A>F</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX79"><CODE>false</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX28"><CODE>fg</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX80"><CODE>file-open</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX81"><CODE>file-read</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX134"><CODE>file-read</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC13">3.4 Command List</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX82"><CODE>file-type</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX83"><CODE>file-write</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX135"><CODE>file-write</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC13">3.4 Command List</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX84"><CODE>filter</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX85"><CODE>first</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX86"><CODE>first-l</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX133"><CODE>for-each</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC13">3.4 Command List</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_G"></A>G</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX32"><CODE>get</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX87"><CODE>gobble</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_H"></A>H</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX88"><CODE>hash-get</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX89"><CODE>hash-keys</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX90"><CODE>hash-make</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX91"><CODE>hash-put</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX92"><CODE>help</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_I"></A>I</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX40"><CODE>if</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX93"><CODE>interactive?</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_J"></A>J</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX26"><CODE>jobs</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_L"></A>L</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX94"><CODE>l-stack</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX41"><CODE>list</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_M"></A>M</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX101"><CODE>match</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_N"></A>N</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX95"><CODE>newline</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX98"><CODE>nl</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX96"><CODE>not</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX97"><CODE>not-null?</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX99"><CODE>null</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX100"><CODE>null?</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_O"></A>O</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX102"><CODE>or</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_P"></A>P</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX103"><CODE>parse</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX104"><CODE>pop</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX35"><CODE>print</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX105"><CODE>prompt</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX132"><CODE>prompt</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC13">3.4 Command List</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX106"><CODE>push</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_R"></A>R</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX107"><CODE>read</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX108"><CODE>repeat</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX109"><CODE>rest</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX110"><CODE>reverse</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX111"><CODE>rot</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX30"><CODE>run</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX31"><CODE>run-simple</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_S"></A>S</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX112"><CODE>script</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX33"><CODE>set</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX113"><CODE>split</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX114"><CODE>squish</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX115"><CODE>stack</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX116"><CODE>standard</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX117"><CODE>stderr</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX118"><CODE>stderr-handler</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX119"><CODE>substring?</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_T"></A>T</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX120"><CODE>top</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX121"><CODE>true</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX122"><CODE>typecheck</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX131"><CODE>typecheck</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC13">3.4 Command List</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_U"></A>U</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX123"><CODE>unlist</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_V"></A>V</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX124"><CODE>version</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX125"><CODE>void</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="fn_W"></A>W</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX126"><CODE>while</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
</TABLE><P></P><table><tr><th valign=top>Jump to: </th><td><A HREF="esh.html#fn_*" style="text-decoration:none"><b>*</b></A>
<A HREF="esh.html#fn_+" style="text-decoration:none"><b>+</b></A>
<A HREF="esh.html#fn_-" style="text-decoration:none"><b>-</b></A>
<A HREF="esh.html#fn_/" style="text-decoration:none"><b>/</b></A>
<A HREF="esh.html#fn_=" style="text-decoration:none"><b>=</b></A>
<BR>
<A HREF="esh.html#fn_A" style="text-decoration:none"><b>A</b></A>
<A HREF="esh.html#fn_B" style="text-decoration:none"><b>B</b></A>
<A HREF="esh.html#fn_C" style="text-decoration:none"><b>C</b></A>
<A HREF="esh.html#fn_D" style="text-decoration:none"><b>D</b></A>
<A HREF="esh.html#fn_E" style="text-decoration:none"><b>E</b></A>
<A HREF="esh.html#fn_F" style="text-decoration:none"><b>F</b></A>
<A HREF="esh.html#fn_G" style="text-decoration:none"><b>G</b></A>
<A HREF="esh.html#fn_H" style="text-decoration:none"><b>H</b></A>
<A HREF="esh.html#fn_I" style="text-decoration:none"><b>I</b></A>
<A HREF="esh.html#fn_J" style="text-decoration:none"><b>J</b></A>
<A HREF="esh.html#fn_L" style="text-decoration:none"><b>L</b></A>
<A HREF="esh.html#fn_M" style="text-decoration:none"><b>M</b></A>
<A HREF="esh.html#fn_N" style="text-decoration:none"><b>N</b></A>
<A HREF="esh.html#fn_O" style="text-decoration:none"><b>O</b></A>
<A HREF="esh.html#fn_P" style="text-decoration:none"><b>P</b></A>
<A HREF="esh.html#fn_R" style="text-decoration:none"><b>R</b></A>
<A HREF="esh.html#fn_S" style="text-decoration:none"><b>S</b></A>
<A HREF="esh.html#fn_T" style="text-decoration:none"><b>T</b></A>
<A HREF="esh.html#fn_U" style="text-decoration:none"><b>U</b></A>
<A HREF="esh.html#fn_V" style="text-decoration:none"><b>V</b></A>
<A HREF="esh.html#fn_W" style="text-decoration:none"><b>W</b></A>
</td></tr></table><br></P><P>
<A NAME="Concept Index"></A>
<HR SIZE="6">
<A NAME="SEC18"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ > ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1> Concept Index </H1>
<!--docid::SEC18::-->
<P>
<table><tr><th valign=top>Jump to: </th><td><A HREF="esh.html#cp_." style="text-decoration:none"><b>.</b></A>
<BR>
<A HREF="esh.html#cp_A" style="text-decoration:none"><b>A</b></A>
<A HREF="esh.html#cp_B" style="text-decoration:none"><b>B</b></A>
<A HREF="esh.html#cp_C" style="text-decoration:none"><b>C</b></A>
<A HREF="esh.html#cp_D" style="text-decoration:none"><b>D</b></A>
<A HREF="esh.html#cp_E" style="text-decoration:none"><b>E</b></A>
<A HREF="esh.html#cp_F" style="text-decoration:none"><b>F</b></A>
<A HREF="esh.html#cp_G" style="text-decoration:none"><b>G</b></A>
<A HREF="esh.html#cp_I" style="text-decoration:none"><b>I</b></A>
<A HREF="esh.html#cp_J" style="text-decoration:none"><b>J</b></A>
<A HREF="esh.html#cp_L" style="text-decoration:none"><b>L</b></A>
<A HREF="esh.html#cp_N" style="text-decoration:none"><b>N</b></A>
<A HREF="esh.html#cp_O" style="text-decoration:none"><b>O</b></A>
<A HREF="esh.html#cp_P" style="text-decoration:none"><b>P</b></A>
<A HREF="esh.html#cp_Q" style="text-decoration:none"><b>Q</b></A>
<A HREF="esh.html#cp_R" style="text-decoration:none"><b>R</b></A>
<A HREF="esh.html#cp_S" style="text-decoration:none"><b>S</b></A>
<A HREF="esh.html#cp_T" style="text-decoration:none"><b>T</b></A>
<A HREF="esh.html#cp_V" style="text-decoration:none"><b>V</b></A>
</td></tr></table><br><P></P>
<TABLE border=0>
<TR><TD></TD><TH ALIGN=LEFT>Index Entry</TH><TH ALIGN=LEFT> Section</TH></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_."></A>.</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX8">.eshrc</A></TD><TD valign=top><A HREF="esh.html#SEC2">2. Overview</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_A"></A>A</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX54">Arguments, to commands</A></TD><TD valign=top><A HREF="esh.html#SEC10">3.1 Syntax</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_B"></A>B</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX21">Background</A></TD><TD valign=top><A HREF="esh.html#SEC6">2.4 Non-interactive</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX142">bash</A></TD><TD valign=top><A HREF="esh.html#SEC15">4. Differences from Scheme</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX24">Basic commands</A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX16">Basics of shell programming</A></TD><TD valign=top><A HREF="esh.html#SEC4">2.2 Interaction</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX25">Builtin command list, basic</A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX60">Builtin command list, detailed</A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_C"></A>C</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX57">Code-as-data</A></TD><TD valign=top><A HREF="esh.html#SEC11">3.2 Semantics</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX6">Command line parameters</A></TD><TD valign=top><A HREF="esh.html#SEC2">2. Overview</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX23">Command list</A></TD><TD valign=top><A HREF="esh.html#SEC7">2.5 Job Control</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX59">Command list</A></TD><TD valign=top><A HREF="esh.html#SEC12">3.3 Quoting Trickery</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX48">Commands</A></TD><TD valign=top><A HREF="esh.html#SEC10">3.1 Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX50">Control structures</A></TD><TD valign=top><A HREF="esh.html#SEC10">3.1 Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX143">csh</A></TD><TD valign=top><A HREF="esh.html#SEC15">4. Differences from Scheme</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_D"></A>D</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX44">Details</A></TD><TD valign=top><A HREF="esh.html#SEC8">2.6 Basic Usage</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX139">Differences</A></TD><TD valign=top><A HREF="esh.html#SEC14">3.5 Tutorial</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX141">Differences</A></TD><TD valign=top><A HREF="esh.html#SEC15">4. Differences from Scheme</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX136">Differences from Scheme</A></TD><TD valign=top><A HREF="esh.html#SEC14">3.5 Tutorial</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX140">Differences from sh</A></TD><TD valign=top><A HREF="esh.html#SEC15">4. Differences from Scheme</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_E"></A>E</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX9">eshrc</A></TD><TD valign=top><A HREF="esh.html#SEC2">2. Overview</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX56"><CODE>eval</CODE>, quoting for</A></TD><TD valign=top><A HREF="esh.html#SEC11">3.2 Semantics</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX128">Examples</A></TD><TD valign=top><A HREF="esh.html#SEC13">3.4 Command List</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX12">Executing files</A></TD><TD valign=top><A HREF="esh.html#SEC3">2.1 Starting <CODE>esh</CODE></A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_F"></A>F</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX18">Files, as shell scripts</A></TD><TD valign=top><A HREF="esh.html#SEC5">2.3 Simple Programming</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX20">Foreground</A></TD><TD valign=top><A HREF="esh.html#SEC6">2.4 Non-interactive</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_G"></A>G</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX4">Getting started</A></TD><TD valign=top><A HREF="esh.html#SEC1">1. Rationale</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_I"></A>I</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX10">Interaction</A></TD><TD valign=top><A HREF="esh.html#SEC3">2.1 Starting <CODE>esh</CODE></A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX3">Introduction</A></TD><TD valign=top><A HREF="esh.html#SEC1">1. Rationale</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_J"></A>J</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX19">Job control</A></TD><TD valign=top><A HREF="esh.html#SEC6">2.4 Non-interactive</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_L"></A>L</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX7">Launching <CODE>esh</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC2">2. Overview</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX138">Lisp</A></TD><TD valign=top><A HREF="esh.html#SEC14">3.5 Tutorial</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX51">Loops</A></TD><TD valign=top><A HREF="esh.html#SEC10">3.1 Syntax</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_N"></A>N</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX17">Non-interactive</A></TD><TD valign=top><A HREF="esh.html#SEC5">2.3 Simple Programming</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_O"></A>O</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX2">Overview</A></TD><TD valign=top><A HREF="esh.html#SEC1">1. Rationale</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_P"></A>P</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX13">Pipes and redirection</A></TD><TD valign=top><A HREF="esh.html#SEC3">2.1 Starting <CODE>esh</CODE></A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX45">Programmer's Manual</A></TD><TD valign=top><A HREF="esh.html#SEC8">2.6 Basic Usage</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_Q"></A>Q</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX55">Quoting</A></TD><TD valign=top><A HREF="esh.html#SEC11">3.2 Semantics</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_R"></A>R</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX1">Rationale</A></TD><TD valign=top><A></A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX49">Recursion</A></TD><TD valign=top><A HREF="esh.html#SEC10">3.1 Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX11">Running commands</A></TD><TD valign=top><A HREF="esh.html#SEC3">2.1 Starting <CODE>esh</CODE></A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_S"></A>S</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX129">Sample code</A></TD><TD valign=top><A HREF="esh.html#SEC13">3.4 Command List</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX137">Scheme</A></TD><TD valign=top><A HREF="esh.html#SEC14">3.5 Tutorial</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX144">sh</A></TD><TD valign=top><A HREF="esh.html#SEC15">4. Differences from Scheme</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX14">Simple programming</A></TD><TD valign=top><A HREF="esh.html#SEC4">2.2 Interaction</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX53">Stack, local variable</A></TD><TD valign=top><A HREF="esh.html#SEC10">3.1 Syntax</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX5">Starting <CODE>esh</CODE></A></TD><TD valign=top><A HREF="esh.html#SEC2">2. Overview</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX22">Stopping jobs</A></TD><TD valign=top><A HREF="esh.html#SEC6">2.4 Non-interactive</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX47">Syntax</A></TD><TD valign=top><A HREF="esh.html#SEC9">3. Details</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX15">Syntax, basic</A></TD><TD valign=top><A HREF="esh.html#SEC4">2.2 Interaction</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_T"></A>T</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX145">tcsh</A></TD><TD valign=top><A HREF="esh.html#SEC15">4. Differences from Scheme</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX58">Tilde, as a quote character</A></TD><TD valign=top><A HREF="esh.html#SEC11">3.2 Semantics</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX46">Tutorial</A></TD><TD valign=top><A HREF="esh.html#SEC8">2.6 Basic Usage</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX127">Tutorial</A></TD><TD valign=top><A HREF="esh.html#SEC13">3.4 Command List</A></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX130">Typechecking</A></TD><TD valign=top><A HREF="esh.html#SEC13">3.4 Command List</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
<TR><TH><A NAME="cp_V"></A>V</TH><TD></TD><TD></TD></TR>
<TR><TD></TD><TD valign=top><A HREF="esh.html#IDX52">Variables</A></TD><TD valign=top><A HREF="esh.html#SEC10">3.1 Syntax</A></TD></TR>
<TR><TD COLSPAN=3> <HR></TD></TR>
</TABLE><P></P><table><tr><th valign=top>Jump to: </th><td><A HREF="esh.html#cp_." style="text-decoration:none"><b>.</b></A>
<BR>
<A HREF="esh.html#cp_A" style="text-decoration:none"><b>A</b></A>
<A HREF="esh.html#cp_B" style="text-decoration:none"><b>B</b></A>
<A HREF="esh.html#cp_C" style="text-decoration:none"><b>C</b></A>
<A HREF="esh.html#cp_D" style="text-decoration:none"><b>D</b></A>
<A HREF="esh.html#cp_E" style="text-decoration:none"><b>E</b></A>
<A HREF="esh.html#cp_F" style="text-decoration:none"><b>F</b></A>
<A HREF="esh.html#cp_G" style="text-decoration:none"><b>G</b></A>
<A HREF="esh.html#cp_I" style="text-decoration:none"><b>I</b></A>
<A HREF="esh.html#cp_J" style="text-decoration:none"><b>J</b></A>
<A HREF="esh.html#cp_L" style="text-decoration:none"><b>L</b></A>
<A HREF="esh.html#cp_N" style="text-decoration:none"><b>N</b></A>
<A HREF="esh.html#cp_O" style="text-decoration:none"><b>O</b></A>
<A HREF="esh.html#cp_P" style="text-decoration:none"><b>P</b></A>
<A HREF="esh.html#cp_Q" style="text-decoration:none"><b>Q</b></A>
<A HREF="esh.html#cp_R" style="text-decoration:none"><b>R</b></A>
<A HREF="esh.html#cp_S" style="text-decoration:none"><b>S</b></A>
<A HREF="esh.html#cp_T" style="text-decoration:none"><b>T</b></A>
<A HREF="esh.html#cp_V" style="text-decoration:none"><b>V</b></A>
</td></tr></table><br></P><P>
<HR SIZE="6">
<A NAME="SEC_Contents"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>Table of Contents</H1>
<UL>
<A NAME="TOC1" HREF="esh.html#SEC1">1. Rationale</A>
<BR>
<A NAME="TOC2" HREF="esh.html#SEC2">2. Overview</A>
<BR>
<UL>
<A NAME="TOC3" HREF="esh.html#SEC3">2.1 Starting <CODE>esh</CODE></A>
<BR>
<A NAME="TOC4" HREF="esh.html#SEC4">2.2 Interaction</A>
<BR>
<A NAME="TOC5" HREF="esh.html#SEC5">2.3 Simple Programming</A>
<BR>
<A NAME="TOC6" HREF="esh.html#SEC6">2.4 Non-interactive</A>
<BR>
<A NAME="TOC7" HREF="esh.html#SEC7">2.5 Job Control</A>
<BR>
<A NAME="TOC8" HREF="esh.html#SEC8">2.6 Basic Usage</A>
<BR>
</UL>
<A NAME="TOC9" HREF="esh.html#SEC9">3. Details</A>
<BR>
<UL>
<A NAME="TOC10" HREF="esh.html#SEC10">3.1 Syntax</A>
<BR>
<A NAME="TOC11" HREF="esh.html#SEC11">3.2 Semantics</A>
<BR>
<A NAME="TOC12" HREF="esh.html#SEC12">3.3 Quoting Trickery</A>
<BR>
<A NAME="TOC13" HREF="esh.html#SEC13">3.4 Command List</A>
<BR>
<A NAME="TOC14" HREF="esh.html#SEC14">3.5 Tutorial</A>
<BR>
</UL>
<A NAME="TOC15" HREF="esh.html#SEC15">4. Differences from Scheme</A>
<BR>
<A NAME="TOC16" HREF="esh.html#SEC16">5. Differences from sh</A>
<BR>
<A NAME="TOC17" HREF="esh.html#SEC17">Command Index</A>
<BR>
<A NAME="TOC18" HREF="esh.html#SEC18">Concept Index</A>
<BR>
</UL>
<HR SIZE=1>
<A NAME="SEC_OVERVIEW"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>Short Table of Contents</H1>
<BLOCKQUOTE>
<A NAME="TOC1" HREF="esh.html#SEC1">1. Rationale</A>
<BR>
<A NAME="TOC2" HREF="esh.html#SEC2">2. Overview</A>
<BR>
<A NAME="TOC9" HREF="esh.html#SEC9">3. Details</A>
<BR>
<A NAME="TOC15" HREF="esh.html#SEC15">4. Differences from Scheme</A>
<BR>
<A NAME="TOC16" HREF="esh.html#SEC16">5. Differences from sh</A>
<BR>
<A NAME="TOC17" HREF="esh.html#SEC17">Command Index</A>
<BR>
<A NAME="TOC18" HREF="esh.html#SEC18">Concept Index</A>
<BR>
</BLOCKQUOTE>
<HR SIZE=1>
<A NAME="SEC_About"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC17">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="esh.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>About this document</H1>
This document was generated by <I>Edward Betts</I> on <I>March, 3 2001</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
<P></P>
The buttons in the navigation panels have the following meaning:
<P></P>
<table border = "1">
<TR>
<TH> Button </TH>
<TH> Name </TH>
<TH> Go to </TH>
<TH> From 1.2.3 go to</TH>
</TR>
<TR>
<TD ALIGN="CENTER">
[ < ] </TD>
<TD ALIGN="CENTER">
Back
</TD>
<TD>
previous section in reading order
</TD>
<TD>
1.2.2
</TD>
</TR>
<TR>
<TD ALIGN="CENTER">
[ > ] </TD>
<TD ALIGN="CENTER">
Forward
</TD>
<TD>
next section in reading order
</TD>
<TD>
1.2.4
</TD>
</TR>
<TR>
<TD ALIGN="CENTER">
[ << ] </TD>
<TD ALIGN="CENTER">
FastBack
</TD>
<TD>
previous or up-and-previous section
</TD>
<TD>
1.1
</TD>
</TR>
<TR>
<TD ALIGN="CENTER">
[ Up ] </TD>
<TD ALIGN="CENTER">
Up
</TD>
<TD>
up section
</TD>
<TD>
1.2
</TD>
</TR>
<TR>
<TD ALIGN="CENTER">
[ >> ] </TD>
<TD ALIGN="CENTER">
FastForward
</TD>
<TD>
next or up-and-next section
</TD>
<TD>
1.3
</TD>
</TR>
<TR>
<TD ALIGN="CENTER">
[Top] </TD>
<TD ALIGN="CENTER">
Top
</TD>
<TD>
cover (top) of document
</TD>
<TD>
</TD>
</TR>
<TR>
<TD ALIGN="CENTER">
[Contents] </TD>
<TD ALIGN="CENTER">
Contents
</TD>
<TD>
table of contents
</TD>
<TD>
</TD>
</TR>
<TR>
<TD ALIGN="CENTER">
[Index] </TD>
<TD ALIGN="CENTER">
Index
</TD>
<TD>
concept index
</TD>
<TD>
</TD>
</TR>
<TR>
<TD ALIGN="CENTER">
[ ? ] </TD>
<TD ALIGN="CENTER">
About
</TD>
<TD>
this page
</TD>
<TD>
</TD>
</TR>
</TABLE>
<P></P>
where the <STRONG> Example </STRONG> assumes that the current position
is at <STRONG> Subsubsection One-Two-Three </STRONG> of a document of
the following structure:
<UL>
<LI> 1. Section One </LI>
<UL>
<LI>1.1 Subsection One-One</LI>
<UL>
<LI> ... </LI>
</UL>
<LI>1.2 Subsection One-Two</LI>
<UL>
<LI>1.2.1 Subsubsection One-Two-One
</LI><LI>1.2.2 Subsubsection One-Two-Two
</LI><LI>1.2.3 Subsubsection One-Two-Three <STRONG>
<== Current Position </STRONG>
</LI><LI>1.2.4 Subsubsection One-Two-Four
</LI></UL>
<LI>1.3 Subsection One-Three</LI>
<UL>
<LI> ... </LI>
</UL>
<LI>1.4 Subsection One-Four</LI>
</UL>
</UL>
<HR SIZE=1>
<BR>
<FONT SIZE="-1">
This document was generated
by <I>Edward Betts</I> on <I>March, 3 2001</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
</BODY>
</HTML>
|