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 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054
|
.\"
.\" Copyright (C) 1995-2019 Takashi SHIRAI
.\" <shirai@unixusers.net>
.\"
.\" @(#)fd.1 3.01j 07/27/19
.\" fd - File & Directory maintenance tool
.TH FD 1 "July 27, 2019"
.de sh
.br
.PP
\fB\\$1\fR
.PP
..
.SH NAME
fd \- file & directory maintenance tool
.SH SYNOPSIS
.B fd
[
.B \-abCefhiklmNnPrSsTtuvx
] [
.BI \- NAME = value
] [
.I directory
[
.I directory2 .\|.\|.
]]
.br
.B fdsh
[
.B \-abCcefhiklmNnPrSsTtuvx
] [
.I args
]
.SH DESCRIPTION
.B Fd
is a file & directory maintenance tool
considered for the text terminals on general UNIX.
It aims for a clone of the same named utility
which is made for the PC/AT compatible machine and PC-9800 series.
In fact, it is upper compatible functionally.
.B Fd
shows the browser screen listing files when you have invoked it.
You can input some key which is bound each command,
to execute various operations.
(In the following description,
.B (UNIX)
means that the operation is implemented only on UNIX version
and not effective on MS-DOS version.
As well as it,
.B (DOS)
means that the operation is implemented only on MS-DOS version.)
.SS Options
The command line option is used for setting internal shell operations
and setting the internal variables described below.
You can use any variable name as the internal variable,
but
.B fd
can accept only those
which are described in the below section of
.BR "ENVIRONMENT VARIABLES" .
If you specify
.IR directory ,
the current directory is moved to the directory initially.
If you specify
.IR "directory2 .\|.\|." ,
the split window mode is invoked,
and the current directories of the supplemental windows are moved to the each directory.
The following options are available for the internal shell.
.TP
.BI \-c " string"
Commands described by
.I string
are executed and exit immediately.
It is effective only when it is invoked as
.BR fdsh .
.TP
.B \-i
If the
.B \-i
flag is present or if the standard input/output is a terminal,
the shell is the interactive shell.
.TP
.B \-s
If the
.B \-s
flag is present or if no
.I args
is specified,
commands for the shell are read from the standard input.
Any remaining argument specifies the positional parameter.
.TP
.B \-r
The shell is a restricted shell.
Specifically, the following operations are disallowed.
.RS 10
.PD 0
.PP
changing the current directory
.br
setting the value of
.BR $PATH ,
.B $SHELL
and
.B $ENV
.br
specifying command names include
.B /
.br
redirecting output
.RB ( >
and
.BR >> )
.ta 1.5i 3i
.nf
.ft B
IN_DIR OUT_DIR LOG_TOP
LOG_DIR ATTR_FILE COPY_FILE
MOVE_FILE DELETE_FILE DELETE_DIR
RENAME_FILE MAKE_DIR WRITE_DIR
TREE_DIR BACKUP_TAPE EDIT_FILE
UNPACK_FILE PACK_FILE LOG_TREE
COPY_TREE MOVE_TREE UNPACK_TREE
FIND_DIR ATTR_DIR
.ft R
.fi
.PD
.RE
.RS
When invoked as
.B rfd
or
.BR rfdsh ,
it becomes this restricted shell automatically.
.RE
.TP
.B \-l
The shell is a login shell.
.TP
.B \-N
Reading the initial configuration files is omitted.
.PP
In addition,
the options described below in the description of
.B set
the builtin command are available.
.SS Screen Layout
.B Fd
has the 3 major screen modes.
In the browser screen,
you can select from the file list and execute each command.
In the archive browser screen,
files in the archive file are listed separately by directory,
and you can browse as well as the browser screen.
In the tree screen,
you can move on the directory tree and select the directory path.
In all screen modes,
each
.B 3
lines on the top/bottom of the screen are used for the various information of
.B fd.
The top information lines sometimes become
.B 4
lines.
The screen layout is the following.
.IP line# 10
Description
.IP \fB1\fP
The title line.
The clock at the right end is updated every
.B 10
seconds.
.IP \fB2\fP
The information line.
It displays information in this order:
the current page (and the total pages),
the number of marks (ant the total marks),
the sorted type,
the pattern string for file search.
.IP \fB3\fP
The path line.
It displays the fullpath of the current directory.
In the archive browser screen,
it displays the fullpath of the archive file
and the current path in the archive.
.IP "\fB2\fP (optional)"
The file size information line.
It displays the total size of the marked files in the directory
(and the total size of all files),
the total capacity and the free size of the file system
including the current directory.
This line appears by
.B SIZEINFO
the internal variable setting.
When this line is displayed,
The information line and the path line are displayed 1 line under each.
.IP "\fBbottom \- 2\fP"
The stack line.
It displays files temporarily which you push in stack,
when arranging files.
.IP "\fBbottom \- 1\fP"
The function line.
It displays the operations of function keys.
.IP "\fBbottom\fP"
The status line.
It displays the status of the file on the cursor position.
It also displays warning messages when command is executed with some troubles.
.SS Internal Commands
You can use the following internal commands on
.BR fd .
While any user can change the key binding for these internal commands,
here shows the default key binding.
The identifier is used when it is executed from the command line of
.B EXECUTE_SH
command,
and when the user defines the key binding.
.br
.ta 2i 5i
.nf
Identifier Command Key
\fBCUR_UP\fP Move a cursor up \fBUp\fP
\fBCUR_DOWN\fP Move a cursor down \fBDown\fP
\fBCUR_RIGHT\fP Move a cursor right \fBRight\fP
\fBCUR_LEFT\fP Move a cursor left \fBLeft\fP
\fBROLL_UP\fP Turn ahead to the next page \fBPageDown\fP
\fBROLL_DOWN\fP Turn back to the prev. page \fBPageUp\fP
\fBCUR_TOP\fP Move a cursor top \fBBeg\fP(<)
\fBCUR_BOTTOM\fP Move a cursor bottom \fBEol\fP(>)
\fBFNAME_RIGHT\fP Shift right a filename \fB(\fP
\fBFNAME_LEFT\fP Shift left a filename \fB)\fP
\fBONE_COLUMN\fP Change layout into 1 column \fB1\fP
\fBTWO_COLUMNS\fP Change layout into 2 columns \fB2\fP
\fBTHREE_COLUMNS\fP Change layout into 3 columns \fB3\fP
\fBFIVE_COLUMNS\fP Change layout into 5 columns \fB5\fP
\fBMARK_FILE\fP Mark a file \fBTab\fP
\fBMARK_FILE2\fP Mark and move down \fBSpace\fP
\fBMARK_FILE3\fP Mark and move in a page \fB^Space\fP(^@)
\fBMARK_ALL\fP Mark all files \fBHome\fP(+)
\fBMARK_REVERSE\fP Mark all files reversely \fBEnd\fP(-)
\fBMARK_FIND\fP Mark the matched files \fB\(**\fP
\fBIN_DIR\fP Change to a sub directory \fBReturn\fP
\fBOUT_DIR\fP Change to a parent directory \fBBs\fP
\fBLOG_TOP\fP Change to a root directory \fB\e\fP
\fBREREAD_DIR\fP Reread the current directory \fB^L\fP
\fBPUSH_FILE\fP Push a file to the stack \fBDel\fP(])
\fBPOP_FILE\fP Pop a file from the stack \fBIns\fP([)
\fBLOG_DIR\fP Change to a logical directory \fBF1\fP(l)
\fBEXECUTE_FILE\fP Execute a file \fBF2\fP(x)
\fBCOPY_FILE\fP Copy a file \fBF3\fP(c)
\fBDELETE_FILE\fP Delete a file \fBF4\fP(d)
\fBRENAME_FILE\fP Rename a file \fBF5\fP(r)
\fBSORT_DIR\fP Sort the current directory \fBF6\fP(s)
\fBFIND_FILE\fP Find files \fBF7\fP(f)
\fBTREE_DIR\fP Display the tree screen \fBF8\fP(t)
\fBEDIT_FILE\fP Edit a file \fBF9\fP(e)
\fBUNPACK_FILE\fP Unpack a file \fBF10\fP(u)
\fBATTR_FILE\fP Change a file attribute \fBF11\fP(a)
\fBINFO_FILESYS\fP Display a file system info. \fBF12\fP(i)
\fBMOVE_FILE\fP Move a file \fBF13\fP(m)
\fBDELETE_DIR\fP Delete a directory \fBF14\fP(D)
\fBMAKE_DIR\fP Make a directory \fBF15\fP(k)
\fBEXECUTE_SH\fP Execute a child process \fBF16\fP(h)
\fBWRITE_DIR\fP Write a displayed directory \fBF17\fP(w)
\fBBACKUP_TAPE\fP Backup into a tape \fBF18\fP(b)
\fBVIEW_FILE\fP View a file \fBF19\fP(v)
\fBPACK_FILE\fP Pack a file \fBF20\fP(p)
\fBLOG_TREE\fP Change directory with tree \fBL\fP
\fBCOPY_TREE\fP Copy a file with tree \fBC\fP
\fBMOVE_TREE\fP Move a file with tree \fBM\fP
\fBUNPACK_TREE\fP Unpack a file with tree \fBU\fP
\fBFIND_DIR\fP Find a file recursively \fBF\fP
\fBATTR_DIR\fP Change attributes recursively \fBA\fP
\fBSYMLINK_MODE\fP Switch the symbolic link mode \fBS\fP
\fBFILETYPE_MODE\fP Switch the file type symbol \fBT\fP
\fBDOTFILE_MODE\fP Switch the dot file display \fBH\fP
\fBFILEFLG_MODE\fP Switch the file flag display \fBO\fP
\fBLAUNCH_FILE\fP Invoke the launcher \fBReturn\fP
\fBSEARCH_FORW\fP Search forward a file \fB^S\fP
\fBSEARCH_BACK\fP Search backward a file \fB^R\fP
\fBSPLIT_WINDOW\fP Split into the windows \fB/\fP
\fBNEXT_WINDOW\fP Change to the next window \fB^\fP
\fBWIDEN_WINDOW\fP Widen the current window \fBW\fP
\fBNARROW_WINDOW\fP Narrow the current window \fBN\fP
\fBKILL_WINDOW\fP Kill the current window \fBK\fP
\fBEDIT_CONFIG\fP Invoke the customizer \fBE\fP
\fBHELP_MESSAGE\fP Display a help screen \fB?\fP
\fBQUIT_SYSTEM\fP Quit from fd \fBEsc\fP(q)
\fBWARNING_BELL\fP Bell for warning
\fBNO_OPERATION\fP Do nothing
.fi
.PP
The last 2 internal commands are used
when you want change the default key binding to cancel.
.SS Internal Commands Description
The detail of each internal command is the following.
Internal commands with similar function are described together.
.RS 3
.IP "\fBMove cursor\fP" 5
Move a cursor.
.IP "\fBTurn page\fP"
Turn to the previous/next page,
when files are not completely held in a screen.
Also if you try to move out of the page with Cursor move,
the page will be turned.
.IP "\fBMove to the top/bottom\fP"
Move a cursor to the top/bottom of the file list.
When the list is not held in a screen,
the page is turned.
.IP "\fBShift filename\fP"
Shift the displayed string of filename on the cursor position,
when the filename is longer than the prepared column width.
It is displayed as shifted to right/left by 1 character.
The display of the status line is also shifted simultaneously.
.IP "\fBChange layout\fP"
Change the number of columns into each value.
There are usually
.B 2
columns per screen.
As the column width per file is changed according to the number of columns,
the displayed information is also changed.
.IP "\fBMark file\fP"
Mark the file on the cursor position.
You cannot mark any directory.
.RB [ Space ]
marks and moves down a cursor.
.RB [ ^Space ]
also marks and moves down a cursor,
but doesn't turn the page.
.RB [ Home ]
marks all the files,
.RB [ End ]
marks all the files reversely.
.RB [ \(** ]
additionally marks the file which matches the wildcard.
You must input the wildcard string whenever you push
.RB [ \(** ].
Marked files are used as the target of
.BR ATTR_FILE ,
.BR COPY_FILE ,
.BR DELETE_FILE ,
.BR MOVE_FILE ,
.B UNPACK_FILE
and the user defined command macros.
.IP "\fBChange directory\fP"
.RB [ Return ]
changes the current directory
to the directory on the cursor position.
If you want to change it to the parent directory,
you should move a cursor to the file of ".\|." and push
.RB [ Return ],
or simply push
.RB [ Bs ].
.RB [ \e ]
changes the current directory to the root directory.
.IP "\fBPush/pop file stack\fP"
.RB [ Del ]
pushes the file on the cursor position to the file stack,
and temporarily deletes the file from the file list screen.
You can push files to the file stack up to
.B 5
files.
.RB [ Ins ]
pops the file from the file stack
and insert it on the cursor position.
The last pushed file is popped first.
But this order is expediently displayed in
.BR fd ,
and it is reset by Directory move.
.IP "\fBRedraw screen\fP"
Redraw the file list screen
by rereading the information of the current directory.
It is useful when some other process add/delete files,
or when something break the screen display.
Moreover,
when you use the terminal which doesn't raise
.B SIGWINCH
signal at changing the screen size (like
.BR kterm (1)
on HP-UX etc.),
you must intentionally redraw after you change the screen size.
.IP "\fBChange logical directory\fP (Logdir)"
Change the current directory to the inputted pathname.
When you input the pathname which starts with '/',
it means not the relative move but the absolute move.
When you input the pathname "\fB.\fP",
the pathname of the current directory is adjusted into absolute expression.
Except this case,
the current directory always is shown as the virtual pathname,
by reason of a link and so on.
When you input the pathname "\fB?\fP",
you can move to the current directory when
.B fd
was invoked.
When you input the pathname "\fB\-\fP",
you can move to the last visited directory.
Moreover,
When you input the pathname "\fB@\fP" in floppy drive,
you can move to the directory on UNIX file system,
where you existed before moving to floppy drive.
.B (UNIX)
(Note:
This command is called as "Loddsk" in the original FD on MS-DOS,
which is short for "LOGical DiSK drive".
This "logical" means the drive name prefixed to pathnames,
and it is virtually named against "physical disk drive".
On UNIX,
since "logical disk drive" never means pathname nor directory,
this command name "Change logical directory" is not suitable.
But this name is expediently inherited from the original version.)
.IP "\fBExecute file\fP (eXec)"
Execute the file on the cursor position with some parameters,
as the child process.
The cursor position in command line exists
after the filename in case of the executable file,
and before the filename except it.
You should fill suitable parameters or command name in each case.
The up/down cursor keys can provide the command history
which you executed before.
On MS-DOS version,
the LFN form filename in the command line
which is quoted with the quotation mark \fB"\fP
is automatically replaced into 8+3 form filename before execution.
In this case,
when there is the filename described by the string quoted with \fB"\fP,
this string is always replaced into 8+3 form filename after deleting \fB"\fP,
otherwise it is never replaced including \fB"\fP.
.IP "\fBCopy file\fP (Copy)"
Copy the file on the cursor position to the specified directory.
When the cursor position indicates a directory,
its contents are copied recursively.
When some files are marked,
the target is not the file on the cursor position but the marked files.
When the same named file exists in the destination,
you can select the operation from the following:
"Update (by timestamp)",
"Rename (each copied file)",
"Overwrite",
"Not_copy_the_same_name",
"Forward".
If you select "Forward",
you should specify the directory as the destination to forward.
All files which have the same names are moved to the specified directory.
.IP "\fBDelete file\fP (Delete)"
Delete the file on the cursor position.
No directory can be deleted.
When some files are marked,
the target is not the file on the cursor position but the marked files.
When you don't have write permission on the file,
you are confirmed for security.
.IP "\fBRename file\fP (Rename)"
Rename the file on the cursor position.
You cannot rename to the same name as any existent file.
When you specify the pathname with some directory name,
it is also moved to the directory.
.IP "\fBSort file\fP (Sort)"
Sort files in the current directory.
You can select the sorted type from the following:
"fileName", "Extension", "Size", "Timestamp", "Length (of filename)",
and specify "Up (incremental order)" or "Down (decremental order)".
When the sorted type before sorting is the one except "No chg (not sort)",
the choice will include "No chg".
When you sort after sorting another sorted type,
the previous sorted result is based in sorting.
This sorting has a priority except specified type,
the directory is always precedes any file,
except for the case of "No chg".
In case of "Length",
files which have the same filename length are sorted in order of their names.
But this sorting is expediently displayed in
.BR fd ,
and it is reset by Directory move.
.IP "\fBFind file\fP (Find)"
Find the files matching the wildcard, and display only them.
The filename which starts with '.'
doesn't match the wildcard which starts with '\(**' nor '?'.
If you want to cancel the File find,
you should move the current directory,
or do
.B FIND_FILE
again and input a null line.
When the current directory has the files
which have the extension registered to associate with an archive browser,
the string which starts with '/' is used
to find not the filename but the filename in archive files,
and only the archive files which contain matched files are displayed.
This function is available in the archive browser.
After Find file,
you can not do
.BR WRITE_DIR .
.IP "\fBDisplay tree screen\fP (Tree)"
Display the directory tree based on the current directory.
You can select the directory in the tree screen,
to move the current directory.
.IP "\fBEdit file\fP (Editor)"
Edit the file on the cursor position.
The editor is used referring
.B EDITOR
the internal variable,
or referring
.B EDITOR
the environment variable when the internal variable is undefined.
.IP "\fBUnpack file\fP (Unpack)"
Unpack the archive file on the cursor position into the specified directory.
In builtin configuration,
you can unpack only the tar file and its compressed file
and the LHa compressed file.
You can describe configurations in the initial configuration file
to support archivers except these.
.IP "\fBChange attribute\fP (Attr)"
Change the file access mode,
the timestamp and the owner/group of the file on the cursor position.
When some files are marked,
the target is not the file on the cursor position but the marked files.
In case of the marked files,
you must select the mode, the timestamp or the owner/group,
before changing it all together.
When you input the mode,
cursor keys move a cursor to the position you want to change,
.RB [ Space ]
reverses the attribute on the position.
You should notice that
the attribute of the execution bit is not a binary toggle but a triple toggle,
which includes setuid bit, setgid bit and sticky bit respectively.
If the target is the marked files,
.RB [ m ](Mask)
will mask a bit on the cursor position with
.RB ' * ',
to keep the value of the original file attribute.
When you input the timestamp,
you move a cursor to the position you want to change,
and input a numeric value.
When you input the owner/group,
you move a cursor to the position for each name,
and input a name or a ID value with
.RB [ Space ].
You can use the completion for a user name and a group name to input each name.
Finally,
.RB [ Return ]
executes the change.
You can cancel with
.RB [ Esc ].
Be careful that the limit check of date is not perfect.
Moreover,
.RB [ a ](Attr),
.RB [ d ](Date),
.RB [ t ](Time),
.RB [ o ](Owner)
and
.RB [ g ](Group)
move a cursor
to the each beginning of input line.
On the OS which has the attribute of file flags,
you can change the file flags as well as the mode.
In this case,
.RB [ f ](Flag)
move a cursor
to the beginning of input line of file flags.
But the value of flags which you can change is based on your permission.
.IP "\fBFile system information\fP (Info)"
Display the information of the specified file system.
When the inputted pathname is not the special file
which indicates a file system,
the information of the file system including the pathname is displayed.
.IP "\fBMove file\fP (Move)"
Move the file on the cursor position to the specified directory.
When the cursor position indicates a directory,
the directory itself is moved.
When some files are marked,
the target is not the file on the cursor position but the marked files.
When the same named file exists in the destination,
you can select the operation as well as
.BR COPY_FILE .
When the destination belongs to the different file system,
copy and delete are just executed continuously.
.IP "\fBDelete directory\fP (rmDir)"
Delete the directory on the cursor position recursively.
When the directory in a symbolic link,
only the link is deleted and the linked directory has no effect.
.IP "\fBMake directory\fP (mKdir)"
Make the sub directory on the current directory.
When the inputted sub directory string includes '/',
which is the pathname delimiter,
it goes on making directory recursively
until the directory described by the string is finally created.
When you input the pathname which starts with '/',
the directory is made not on the current directory
but on the absolute path described.
.IP "\fBExecute child process\fP (sHell)"
Execute the inputted command string as the child process,
by handling the internal shell.
You can refer the command history and use automatic LFN replacement,
as well as
.BR EXECUTE_FILE .
When you push only
.RB [ Return ]
without any input,
the user shell which is described by
.B SHELL
the internal variable or the environment variable is invoked.
In this case,
you should input "\fBexit\fP" to return to
.BR fd .
When the value of
.B SHELL
is
.BR fdsh ,
the internal shell is executed as the interactive shell.
However,
when there is the same command name as a builtin command or a internal command,
the builtin command or the internal command are executed
instead of the external command.
You can refer the clause of `\fBBuiltin Commands\fP'
for the details of the builtin command.
.IP "\fBWrite directory\fP (Write)"
Write the displayed directory.
The gap between files on the directory entry is filled.
When it is executed after arranged by
.BR PUSH_FILE ,
.B POP_FILE
and
.BR SORT_DIR ,
the result is written.
When the displayed directory doesn't belong to
the hierarchy under your home directory,
you are confirmed for security
whether if any other user doesn't use the directory.
Since it is insecure,
you cannot write the NFS mounted directory and some special directories.
If you execute the internal command which arranges the file order,
and then try to execute the internal command which will break that order,
you will be confirmed whether if you write the directory or not,
just before the internal command is executed.
For this function,
you can write the directory
without intentionally executing this Directory write command.
But when the displayed directory is not under your home directory,
this confirmation is not done.
.IP "\fBBackup tape\fP (Backup)"
Backup the file on the cursor position into the specified storage device.
When the cursor position indicates a directory,
all of its contents is backuped.
When some files are marked,
the target is not the file on the cursor position but the marked files.
.BR Tar (1)
is used for backup.
When you specify the filename except special files indicates devices
as input of the device name,
the archive file is created with that filename.
.IP "\fBView file\fP (View)"
View the file on the cursor position.
The pager is used referring
.B PAGER
the internal variable,
or referring
.B PAGER
the environment variable when the internal variable is undefined.
.IP "\fBPack file\fP (Pack)"
Pack the file on the cursor position into the specified archive file.
When the cursor position indicates a directory,
all of its contents is packed into the archive file.
When some files are marked,
the target is not the file on the cursor position but the marked files.
According to the extension of the inputted archive file,
the associated archiver is automatically selected.
In builtin configuration,
you can pack only the tar file and its compressed file
and the LHa compressed file.
You can describe configurations in the initial configuration file
to support archivers except these.
When you use
.BR tar (1),
you may sometimes be unable to pack a lot of files at once,
because of the maximum parameter length which can be given at once.
In those case,
you can create the archive file with
.BR BACKUP_TAPE .
.IP "\fBOperations with tree\fP"
.RB [ L ],
.RB [ C ],
.RB [ M ]
and
.RB [ U ]
can make you select the pathname
from the directory tree instead of the string input.
They execute the internal command equivalent to
.BR LOG_DIR ,
.BR COPY_FILE ,
.B MOVE_FILE
and
.BR UNPACK_FILE ,
respectively.
.IP "\fBFind file recursively\fP"
Find the file matching the wildcard recursively under the current directory,
and move the directory where the found file exists.
When the cursor position indicates a directory,
it find the file under the directory on the cursor position
instead of the current directory.
You will be confirmed for each matching file whether if you move or not,
and you can select
.RB [ n ](No)
unless the target file is displayed.
.IP "\fBChange attributes recursively\fP"
Change attributes the directory on the cursor position revursively.
As well as changing attributes of the marked files,
you must select the mode, the timestamp or the owner/group,
before changing it all together with each file under the directory.
When you input the mode,
you should notice that
the attribute of the execution bit is not a triple toggle but a 5-states toggle,
which includes
.RB ' X '
and
.RB ' ! '.
.RB ' X '
means setting the bit
only if the object is a directory or some execution bits are set.
.RB ' ! '
also means unsetting the bit
only if the object is a directory or some execution bits are set.
.RB [ m ](Mask)
will mask a bit on the cursor position with
.RB ' * ',
to keep the value of the original file attribute.
.IP "\fBInvoke launcher\fP"
.RB [ Return ]
executes the operation according to
the extension of the file on the cursor position,
unless the cursor position indicates a directory.
In builtin configuration,
the archive browser is registered with the tar file and its compressed file
and the LHa compressed file.
You can describe configurations in the initial configuration file
to register launchers except these.
When the file on the cursor position has the unregistered extension,
it will behave as same as
.BR VIEW_FILE .
In the archive browser,
the registered launcher is available,
so that you can invoke the archive browser recursively.
.IP "\fBSwitch symbolic link mode\fP"
In case of the symbolic link file,
the file information displayed in the file column and the status line
shows not the status of its referential file but the status of the link itself.
It switches to show the status of the referential file.
.B (UNIX)
In the mode of showing the status of the referential file,
.RB ' S '(Symbolic
Link)
is displayed on the left end of the function line.
.IP "\fBSwitch file type symbol mode\fP"
Switch to display the symbol which means the file type
after the filename in the file list,
like as the display in
.B \-F
option of
.BR ls (1).
It is toggle to switch if display the symbol or not.
The each symbol means the following.
.RS 10
.ta 0.5i
.nf
\fB/\fP directory
\fB@\fP symbolic link
\fB\(**\fP executable file
\fB=\fP socket
\fB\(bv\fP FIFO
.fi
.RE
.RS 10
(MS-DOS version and the floppy drive)
.ta 0.5i
.nf
\fB/\fP directory
\fB\(**\fP executable file
\fB=\fP system file
\fB\(bv\fP label
.fi
.RE
.RS
In the mode of displaying the file type symbol,
.RB ' T '(Type)
is displayed on the left end of the function line.
.RE
.IP "\fBSwitch dot file display mode\fP"
Switch not to display the file whose filename starts with '.' in the file list.
It is toggle to switch if display the dot file or not.
In the mode of not displaying the dot file,
.RB ' H '(Hidden)
is displayed on the left end of the function line.
.IP "\fBSwitch file flag display mode\fP"
Switch to display the file flag, which exists in some OS,
instead of the file mode on each file.
It is toggle to switch if display the file flag or the file mode.
This is not available on any OS without the file flag.
The each symbol means the following respectively.
.B (UNIX)
.RS 10
.ta 0.5i
.nf
\fBA\fP Archived
\fBN\fP Nodump
\fBa\fP system Append-only
\fBc\fP system unChangeable (immutable)
\fBu\fP system Undeletable
\fBa\fP user Append-only
\fBc\fP user unChangeable (immutable)
\fBu\fP user Undeletable
.fi
.RE
.RS
In the mode of displaying the file flag,
.RB ' F '(Flags)
is displayed on the left end of the function line.
.RE
.IP "\fBSearch file\fP"
Search the current directory incrementally for the filename,
with moving a cursor.
When you execute this command, to switch to the search mode,
a prompt appears in the function line.
You can input the filename in this prompt,
and a cursor will move to the filename matching the string
which is already inputted at that present.
.RB [ Esc ]
switches to the normal mode.
.IP "\fBSplit window\fP"
Split the current window.
When you split a window in the normal non-split window mode,
it will be the split window mode in which the screen is split into 2 windows vertically.
In the split window mode,
you can operate works individually on each window.
When you split a window in the split window mode,
the current working window is split into 2 windows vertically.
You can make split windows up to
.BR 5 .
.IP "\fBChange window\fP"
Change effective window to the next in the split window mode.
When the current window is the last,
the first window will be effective.
In the non-split window mode, it is ineffective.
.IP "\fBWiden window\fP"
Widen the current window size in the split window mode,
to narrow the next window size.
When the current window is the last,
the first window size will be narrowed.
In the non-split window mode, it is ineffective.
.IP "\fBNarrow window\fP"
Narrow the current window size in the split window mode,
to widen the next window size.
When the current window is the last,
the first window size will be widened.
In the non-split window mode, it is ineffective.
.IP "\fBKill window\fP"
Kill the current window in the split window mode,
to join it to the previous window.
When the current window is the first,
it will be joined to the last window.
If the result number of windows is one,
it will be the non-split window mode.
In the non-split window mode, it is ineffective.
.IP "\fBInvoke customizer\fP"
Invoke the customizer which interactively changes the configurations
to be set up by the internal variable and the builtin command.
While the configurations which is set up here is reflected immediately,
you must intentionally save configurations in the customizer
if you want to reflect in the initial configuration file.
.IP "\fBDisplay help\fP"
Display the list of the current key bindings and their command descriptions.
When the list is not completely held in a screen,
it prompts for every screen.
In case of the circulated executable binary file,
this screen shows
the E-mail address of the circulation manager in the function line.
Please contact here when something will happen.
.IP "\fBQuit\fP (Quit)"
Quit from
.BR fd .
.RE
.SS Commands
In
.B EXECUTE_SH
and the initial configuration file,
you can use the internal commands described above
and the builtin commands described below,
as well as the external commands.
With these commands,
a pipeline can consist of one or more commands separated by
.B \(bv
or
.BR \(bv\|& .
.B \(bv
connects the standard output of the previous command
to the standard input of the next command.
.B \(bv\|&
connects both the standard output and the standard error output
of the previous command
to the standard input of the next command.
The exit status of a pipeline is the exit status of the last command.
You can start a pipeline with
.BR ! ,
then the exit status of a pipeline will be
the logical NOT of the exit status of the last command.
Moreover,
a command list can consist of one or more pipelines separated by
.BR ; ,
.BR & ,
.BR &\|\(bv ,
.BR && ,
.BR \(bv\|\(bv .
This command list can end with
.BR ; ,
.B &
or
.BR &\|\(bv .
These separators mean the following.
.RS 3
.PD 0
.IP "\fB;\fP" 5
Execute commands sequentially.
.IP "\fB&\fP"
Execute commands synchronously,
not waiting for the preceding pipeline to finish.
.B (UNIX)
.IP "\fB&\|\(bv\fP"
Same as
.BR & ,
except to immediately
.B disown
the job.
.B (UNIX)
.IP "\fB&\|&\fP"
Execute the following pipeline
only if the preceding pipeline returns a
.B 0
exit status.
.IP "\fB\(bv\|\(bv\fP"
Execute the following pipeline
only if the preceding pipeline returns a
.RB non\- 0
exit status.
.PD
.RE
In these command lists,
a newline means as same as
.BR ; .
The input/output of each command in the command list
can be redirected with the following redirectees.
These redirectees can be placed on any position in the command string.
.RS 3
.PD 0
.IP "\fIn\fR\fB<\fP\fIfile\fR" 10
Redirect the input indicated by the file descriptor
.I n
into the input from
.IR file .
If
.I n
is omitted,
it is regarded as the standard input is specified.
.IP "\fIn\fR\fB>\fP\fIfile\fR"
Redirect the output indicated by the file descriptor
.I n
into the output to
.IR file .
If
.I n
is omitted,
it is regarded as the standard output is specified.
If
.I file
doesn't exist it is created,
otherwise it is truncated to 0 length before output.
.IP "\fIn\fR\fB>\|\(bv\fP\fIfile\fR"
Same as
.BR \> ,
except to force to overwrite existent files even if
.B \-C
option is set by
.B set
the builtin command.
.IP "\fIn\fR\fB>\|>\fP\fIfile\fR"
Redirect the output indicated by the file descriptor
.I n
into the output to
.IR file .
If
.I n
is omitted,
it is regarded as the standard output is specified.
If
.I file
doesn't exist it is created,
otherwise output is appended to it.
.IP "\fIn1\fR\fB<\|&\fP\fIn2\fR"
Redirect the input indicated by the file descriptor
.I n1
into the input indicated by the file descriptor
.IR n2 .
If
.I n1
is omitted,
it is regarded as the standard input is specified.
.IP "\fIn1\fR\fB>\|&\fP\fIn2\fR"
Redirect the output indicated by the file descriptor
.I n1
into the output indicated by the file descriptor
.IR n2 .
If
.I n1
is omitted,
it is regarded as the standard output is specified.
.IP "\fB&\|>\fP\fIfile\fR"
Redirect both the standard output and the standard error output
into the output to
.IR file .
If
.I file
doesn't exist it is created,
otherwise it is truncated to 0 length before output.
.IP "\fB&\|>\|\(bv\fP\fIfile\fR"
Same as
.BR &\|> ,
except to force to overwrite existent files even if
.B \-C
option is set by
.B set
the builtin command.
.IP "\fB&\|>\|>\fP\fIfile\fR"
Redirect both the standard output and the standard error output
into the output to
.IR file .
If
.I file
doesn't exist it is created,
otherwise output is appended to it.
.IP "\fIn\fR\fB<\|>\fP\fIfile\fR"
Redirect both the input/output indicated by the file descriptor
.I n
into the input/output from/to
.IR file .
If
.I n
is omitted,
it is regarded as the standard input is specified.
.IP "\fIn\fR\fB>\|<\fP\fIfile\fR"
Redirect both the input/output indicated by the file descriptor
.I n
into the input/output from/to
.IR file .
If
.I n
is omitted,
it is regarded as the standard output is specified.
.IP "\fIn1\fR\fB<\|>\|&\fP\fIn2\fR"
Redirect both the input/output indicated by the file descriptor
.I n1
into the input/output indicated by the file descriptor
.IR n2 .
If
.I n1
is omitted,
it is regarded as the standard input is specified.
.IP "\fIn1\fR\fB>\|<\|&\fP\fIn2\fR"
Redirect both the input/output indicated by the file descriptor
.I n1
into the input/output indicated by the file descriptor
.IR n2 .
If
.I n1
is omitted,
it is regarded as the standard output is specified.
.IP "\fIn\fR\fB<\|\-\fP"
.IP "\fIn\fR\fB<\|&\|\-\fP"
Close the input indicated by the file descriptor
.IR n .
If
.I n
is omitted,
it is regarded as the standard input is specified.
.IP "\fIn\fR\fB>\|\-\fP"
.IP "\fIn\fR\fB>\|&\|\-\fP"
Close the output indicated by the file descriptor
.IR n .
If
.I n
is omitted,
it is regarded as the standard output is specified.
.IP "\fIn\fR\fB<\|>\|\-\fP"
.IP "\fIn\fR\fB<\|>\|&\|\-\fP"
Close both the input/output indicated by the file descriptor
.IR n .
If
.I n
is omitted,
it is regarded as the standard input is specified.
.IP "\fIn\fR\fB>\|<\|\-\fP"
.IP "\fIn\fR\fB>\|<\|&\|\-\fP"
Close both the input/output indicated by the file descriptor
.IR n .
If
.I n
is omitted,
it is regarded as the standard output is specified.
.IP "\fIn\fR\fB<\|<\fP[\fB\-\fP]\fIword\fR"
Redirect the input indicated by the file descriptor
.I n
into the input which is read up to a input line as same as
.IR word ,
or to an end of file.
If any part of
.I word
is quoted,
no input line is evaluated.
Otherwise,
each input line is evaluated to expand variables or replace strings.
When you specify
.BR \- ,
all tabs on the beginning of input lines is stripped to be send to a command.
If
.I n
is omitted,
it is regarded as the standard input is specified.
.PD
.RE
When you specify the file with each redirect,
you can describe the filename as
.RI ` scheme\fB://\fPhost\fB:\fPport '
form to open the following TCP sockets,
according to the string of
.IR scheme .
The authentication of your OS will restrict specifying the accepting port.
.B (UNIX)
.RS 3
.PD 0
.IP "\fBconnect://\fP\fIhost\fR\fB:\fP\fIport\fR" 10
This socket is connected to the remote host specified by
.I host
with the TCP port number specified by
.IR port .
.IP "\fBaccept://\fP[\fIhost\fR][\fB:\fP\fIport\fR]"
This socket is accepted to the local host specified by
.I host
with the TCP port number specified by
.IR port .
If
.I host
is omitted,
this socket will be accepted to any host.
If
.I port
is omitted,
the port within the range determined by the OS is used.
.IP "\fBbind://\fP[\fIhost\fR][\fB:\fP\fIport\fR]"
This socket is bound to the local host specified by
.I host
with the TCP port number specified by
.IR port ,
preparing
.B accept
the builtin command.
If
.I host
is omitted,
this socket will be accepted to any host.
If
.I port
is omitted,
the port within the range determined by the OS is used.
.PD
.RE
On each command line,
the string from
.RB ' # '
to the end of line and a null line are ignored.
When the line ends with
.RB ' \e ',
it is referred as continuing into the next line,
so that you can split a long line with this.
.SS Builtin Commands
.B Fd
has the following builtin commands.
These builtin commands can be used in
.B EXECUTE_SH
and the initial configuration file.
.IP "\fBif\fP \fIlist\fR \fBthen\fP [\fBelif\fP \fIlist\fR \fBthen\fP \fIlist\fR] .\|.\|. [\fBelse\fP \fIlist\fR] \fBfi\fP" 14
The
.I list
of
.B if
clause and
.B elif
clauses are executed in order,
and if each exit status is a 0,
then the
.I list
of
.B then
clause associated with it is executed and the
.B elif
clauses after it are ignored.
If no
.I list
of
.B if
clause nor
.B elif
clauses return a 0, the
.I list
of
.B else
clause is executed.
If no
.I list
of
.B then
clauses nor
.B else
clause is executed,
then
.B if
returns a
.B 0
exit status.
.IP "\fBwhile\fP \fIlist\fR \fBdo\fP \fIlist\fR \fBdone\fP"
The
.I list
of
.B while
clause is executed repeatedly,
and while its exit status is 0, the
.I list
of
.B do
clause is executed repeatedly.
If the
.I list
of
.B do
clause is never executed,
then
.B while
returns a
.B 0
exit status.
.IP "\fBuntil\fP \fIlist\fR \fBdo\fP \fIlist\fR \fBdone\fP"
The
.I list
of
.B until
clause is executed repeatedly,
and while its exit status is NOT 0, the
.I list
of
.B do
clause is executed repeatedly.
If the
.I list
of
.B do
clause is never executed,
then
.B until
returns a
.B 0
exit status.
.IP "\fBfor\fP \fINAME\fR [\fBin\fP \fIvalue\fR .\|.\|.] \fBdo\fP \fIlist\fR \fBdone\fP"
.I NAME
the internal variable is substituted for values of
.I value
one by one, and
.I list
is executed according to the each value.
If
.B in
.I value
is omitted,
then each positional parameter is substituted one by one.
.IP "\fBcase\fP \fIword\fR \fBin\fP [\fIpattern\fR [\fB\(bv\fP \fIpattern\fR] .\|.\|. \fB)\fP \fIlist\fR \fB;\|;\fP] .\|.\|. \fBesac\fP"
The string
.I word
is compared with the each
.IR pattern ,
.I list
associated with the
.I pattern
which first matches it is executed.
.IP "\fB(\fP\fIlist\fR\fB)\fP"
Execute
.I list
in a sub shell.
.IP "\fB{\fP \fIlist\fR\fB;\fP \fB}\fP"
Execute
.I list
in the current shell.
.IP "\fINAME\fR\fB=\fP[\fIvalue\fR] [\fIcom\fR .\|.\|.]"
Define a internal variable which is available only in
.BR fd .
It substitutes the value (string)
.I value
for
.I NAME
the internal variable.
When you describe the command
.I com
after the definition of a variable,
.I com
is executed on the state
where this variable is regarded as the environment variable.
In this case,
the definition of
.I NAME
is not remain as the environment variable nor the internal variable.
If
.I value
is omitted,
the value of
.I NAME
the internal variable is defined as a null.
If you want to delete the definition of a internal variable,
use
.B unset
the builtin command.
.IP "\fIname\fR\fB()\fP \fB{\fP \fIlist\fR; \fB}\fP"
Define a function whose body is
.IR list ,
as the name of
.IR name .
The defined function can be used in the command line of
.B EXECUTE_SH
and each command macro described below.
You can use the positional parameter
.BI $ n
in each description of
.IR list ,
which indicates the argument when the function is invoked.
.B $0
is
.I name
itself, and
.BR $1 \- $9
indicates each argument.
Although you cannot omit
.B { }
and
.IR list ,
you can omit
.B { }
before/after
.I list
which consists of a single command.
If you want to delete the definition of a function, use
.B unset
the builtin command.
.IP "\fB!\fP\fInum\fR"
Execute the command
which has the history number specified with the numeric value
.IR num .
When
.I num
is negative value,
it executes the command
which has the history number as the current history number minus
.IR num .
.IP "\fB!!\fP"
Execute the previous command.
This is synonym for
.BR !\-1 .
.IP "\fB!\fP\fIstr\fR"
Execute the command history
which starts with the string
.IR str .
.IP "\fB:\fP [\fIarg\fR .\|.\|.]"
No effect.
But it evaluates
.I arg
and performs redirection.
.IP "\fB.\fP \fIfile\fR"
.PD 0
.IP "\fBsource\fP \fIfile\fR"
.PD
Read and evaluate commands from
.IR file .
.I File
must exists on the directory which
.B PATH
includes,
or be described with pathname.
The each line format is based on the format of
.BR EXECUTE_SH .
You can describe this in the file as nesting.
.IP "\fBaccept\fP [\fIfd\fR]"
Accept the connection with the file descriptor indicated by
.IR fd ,
and the connected socket will be assign to
.I fd
of the same file descriptor.
At the same time,
the accepted socket will be closed.
When
.I fd
is not the redirection as the form of
.BR bind:// ,
this command will be failed.
In comparison with the redirection as the form of
.BR accept:// ,
the shell can receive controls before establishing connection to negotiate the TCP port number with the remote host in advance.
.B (UNIX)
If
.I fd
is omitted,
the connection will be accepted with the standard input.
.IP "\fBaddcr\fP [\fB-1\fP] [\fIfile\fR]"
Output the string read from the file specified by
.IR file ,
line by line.
The newline of each line is unified into CR-NL (\er\en).
It is useful to pipe the output to some socket.
If
.I file
is omitted,
it is regarded as the standard input is specified.
If
.B \-1
is specified,
it will output just 1 line and exit.
.IP "\fBalias\fP [\fIname\fR[\fB=\fP\fIcom\fR]]"
Define a alias whose body is
.IR com ,
as the name of
.IR name .
The defined alias can be used in the command line of
.B EXECUTE_SH
and each command macro described below.
The alias substitution is performed recursively.
If
.I com
is omitted,
the alias of
.I name
is displayed.
If both
.I com
and
.I name
are omitted,
all the current alias definition list is displayed.
.IP "\fBarch\fP \fIext\fR [\fIpack unpack\fR]"
Register the archiver command associated with the archive file
which has
.I ext
the extension.
The pack command is specified as
.IR pack ,
and the unpack command is specified as
.IR unpack ,
using the macro representation quoted with \fB"\fP.
When
.I ext
starts with
.BR / ,
uppercase/lowercase is ignored in the comparison of any extension.
If both
.I pack
and
.I unpack
are omitted,
the archiver command registration for
.I ext
the extension is deleted.
.IP "\fBbg\fP [\fIjob\fR]"
Continue the execution of the job specified with
.I job
in the background.
The following format is available to specify a job.
.B (UNIX)
.RS 20
.ta 0.5i
.nf
\fB%\fP
\fB%+\fP the current job
\fB%\-\fP the previous job
\fB%\fP\fIn\fR the job with job number \fIn\fR
\fB%\fP\fIstr\fR the job whose command line starts with \fIstr\fR
.fi
.RE
.RS
But, you must describe these
.B %
in the command line of
.B EXECUTE_SH
as the duplicated expression, such as
.BR %% ,
for the reason of the parameter macro function described below.
If
.I job
is omitted,
the current job is continued in the background.
.RE
.IP "\fBbind\fP \fIc\fR [\fIcom1\fR [\fIcom2\fR] [\fB:\fP\fIcomment\fR]]"
Bind the command
.I com1
to the key
.IR c .
When you want to specify a control character for
.IR c ,
you can prefix
.B ^
into 2 characters,
such as ^A.
When you want to specify a character with the META key
(or the ALT key on MS-DOS version),
you can prefix
.B @
into 2 characters,
such as @a.
When you want to specify a function key and a special key,
you can use each identifier described in
.B keymap
command after,
such as F10.
Or you can describe the escape sequence,
such as
.B \en
and
.BR \ee ,
and the octal expression,
such as
.BR \eooo .
In case of binding the internal command of
.BR fd ,
you can the command identifier as it is.
When you want to define the internal command with some arguments
or define the command in the macro representation,
you should describe the string quoted with \fB"\fP.
If
.I com2
is not omitted,
.I com2
is executed when the cursor position indicates a directory.
When the key
.I c
is the function key of F1-F20,
if you describe
.I comment
prefixed with
.B :
trailing the command description,
you can change the display of associated part in the function line into
.IR comment .
However, note that,
with the key binding for the control key,
the configuration in the edit mode described below is prior to the key binding.
If both
.I com1
and
.I com2
are omitted,
the registration of key binding for the key
.I c
is deleted.
.IP "\fBbreak\fP [\fIn\fR]"
Exit from the loop,
it is used in the
.B for
statement and so on.
If
.I n
is specified,
it breaks
.I n
levels from the loop.
.IP "\fBbrowse\fP [\fB\-@\fP \fIfile\fR]"
.PD 0
.IP "\fBbrowse\fP \fIcom\fR [\fB\-ftbie\fP \fIarg\fR] [\fB\-p\fP \fIcom2\fR] [\fB\-dn\fP {\fBnoprep\fP,\fBloop\fP}] .\|.\|."
.PD
Execute
.I com
the command,
and invoke the archive browser who receives its output.
You should the macro representation quoted with \fB"\fP as
.IR com .
.BR \-f ,
.BR \-t ,
.BR \-b ,
.B \-i
and
.B \-e
options are the same as the one for
.B launch
the builtin command.
In case that multiple
.IR com s
are specified,
the next
.I com
the command is executed one after another
when you select each files in the archive browser,
and the formats and patterns described after each
.I com
the command are adopted.
In order to return to the previous level of archive browser,
you should select the file named as
.B .\|.
or push the key
.RB [ Bs ].
Or you can use
.B QUIT_SYSTEM
the command to escape from all of the archive browsers invoked by
.BR browse .
You must describe
.B \-f
option, except for the last
.I com
the command.
When the last
.I com
has no
.B \-f
option,
the command has been just executed instead of invoking an archive browser,
and then will return to the previous archive browser when it is done.
When you specify
.B \-p
option,
the execution of
.I com2
the command precedes the execution of the next
.I com
the command when you select a file.
While
.I com
is executed in the sub shell for a pipeline,
.I com2
is executed in the current shell
to inherit the values of internal variables set in this command after
.I com2
has been done.
The filenames which is selected toward this level of archive browser
are held in positional parameters sequentially,
and the last selected filename is held in
.BR $1 .
These parameters will be newly set whenever you select a file,
so that they are reset in sequential order when you select the next file
even if you replace them with
.B set
or
.B shift
the builtin command.
.B \-d
and
.B \-n
options specify a control if the selected file is a directory or not respectively.
When you specify
.BR noprep ,
.I com2
specified by
.B \-p
option is not executed.
When you specify
.BR loop ,
you don't step the next
.I com
the command but the same
.I com
the command again.
And when you think troublesome to describe too many arguments for
.BR browse ,
you can specify
.I file
the file in which some arguments are described with
.B \-@
option.
You can describe
.B \-@
option in any place of arguments,
the arguments described in
.I file
are inserted in the place where
.B \-@
is described.
If you specify
.B \-
as
.IR file ,
arguments are read from the standard input instead of the file.
You should describe arguments in
.I file
with spaces or newlines as separator.
The null line and the line started with
.B #
will be ignored.
When you describe
.B \-@
option in
.IR file ,
the argument file is referred recursively.
.IP "\fBbuiltin\fP \fIarg\fR .\|.\|."
Execute
.I arg
as a simple builtin command.
When the same named function is defined,
the function will not be executed.
.IP "\fBcd\fP [\fB\-LP\fP] [\fIdir\fR]"
.PD 0
.IP "\fBchdir\fP [\fB\-LP\fP] [\fIdir\fR]"
.PD
Change the current directory in
.B fd
to
.IR dir .
If
.I dir
is omitted,
it moves to the directory indicated by
.B HOME
the internal variable.
If you specify the pathname as "\fB.\fP", "\fB?\fP", "\fB\-\fP", "\fB@\fP",
it behaves like as
.BR LOG_DIR .
If
.B \-L
is specified,
the logical pathname following symbolic links is used.
If
.B \-P
is specified,
the physical pathname following no symbolic links is used.
Otherwise,
the
.B physical
option for
.B set
the builtin command is effective.
.IP "\fBcheckid\fP [\fIfile\fR .\|.\|.]"
Calculate the unique ID of the specified file and display it,
according to the MD5 algorithm in RFC1321.
When you specify multiple
.IR file s,
the IDs of all specified files are calculated and displayed.
When you specify nothing,
the ID of running
.B fd
itself is displayed.
Since this algorithm is guaranteed to be secure,
it is available to confirm the identity of files.
.IP "\fBcls\fP"
Clear the screen.
.IP "\fBcommand\fP [\fB\-p\fP | \fB\-v\fP | \fB\-V\fP] \fIarg\fR .\|.\|."
Execute
.I arg
as a simple command.
When the same named function is defined,
the function will not be executed.
If
.B \-p
is specified,
the default value of
.B PATH
is used to search the path.
If
.B \-v
is specified,
the absolute path for
.I arg
is displayed
instead of executing
.IR arg .
In this case,
.I arg
the builtin command will cause simply its name.
If
.B \-V
is specified,
verbose description for
.I arg
is displayed as same as
.BR type .
.IP "\fBcontinue\fP \fIn\fR"
Resume the next iteration in the loop,
it is used in the
.B for
statement and so on.
If
.I n
is specified,
it resumes the next iteration in the loop
.I n
- 1 levels
out of the loop.
.IP "\fBcopy\fP [\fB\-ABVY\-Y\fP] \fIsrc\fR [\fB\-AB\fP] [\fB\+\fP \fIsrc2\fR [\fB\-AB\fP] [\fB\+\fP .\|.\|.]] [\fIdest\fR [\fB\-AB\fP]]"
Copy the file indicated by
.I src
into the file or the directory indicated by
.IR dest .
When
.I dest
indicates a directory,
the filename in the destination is
.IR src .
If
.I dest
is omitted,
it is copied into the current directory.
You can specify multiple source files by describing to separate them with
.BR \+ ,
or by using the wildcard.
When you separate them with
.BR \+ ,
those files are concatenated and copied.
When you use the wildcard,
they are copied one by one in case that the destination is a directory,
and they are concatenated in case that the destination is a file.
When you specify
.BR \-A ,
it is treated as the ASCII text file.
When you specify
.BR \-B ,
it is treated as the binary file.
When you specify
.BR \-V ,
it is verified to copy.
When you specify
.BR \-Y ,
it doesn't prompts for confirming to overwrite into the destination.
When you specify
.BR \-\-Y ,
it prompts for confirmation before overwriting into the destination.
(MS-DOS version requires to use
.B /
instead of
.B \-
as an option prefix for compatibility with COMMAND.COM.)
.IP "\fBdel\fP [\fB\-P\fP] \fIfile\fR"
.PD 0
.IP "\fBerase\fP [\fB\-P\fP] \fIfile\fR"
.PD
Delete the files indicated by
.IR file .
You can specify multiple files by using wildcard.
When you specify
.BR \-P ,
it prompts for confirmation before deleting files.
(MS-DOS version requires to use
.B /
instead of
.B \-
as an option prefix for compatibility with COMMAND.COM.)
.IP "\fBdir\fP [\fB\-\fP[\fB\-\fP]\fBPWSBLV4\fP] [\fB\-A\fP[\fBDRHSA\-\fP]] [\fB\-O\fP[\fBNSEDGA\-\fP]] [\fIdir\fR]"
List files and sub directories in the directory indicated by
.IR dir .
If
.I dir
is omitted,
the information in the current directory is listed.
When you specify
.BR \-P ,
it prompts for every screen.
When you specify
.BR \-W ,
it is listed in the wide view.
When you specify
.BR \-A ,
it lists only the files
which have the attribute indicated by the trailing character.
.RS 20
.ta 0.3i 2i 2.3i
.nf
\fBD\fP directory \fBR\fP read only file
\fBH\fP hidden file \fBS\fP system file
\fBA\fP ready to archive \fB\-\fP except it
.fi
.RE
.RS
When you specify
.BR \-O ,
it sorts with the sorted type indicated by the trailing character.
.RE
.RS 20
.ta 0.3i 2i 2.3i
.nf
\fBN\fP by name \fBS\fP by size
\fBE\fP by extension \fBD\fP by date & time
\fBG\fP directory first \fBA\fP by last access time
\fB\-\fP reverse order
.fi
.RE
.RS
When you specify
.BR \-S ,
it lists files in all sub directories.
When you specify
.BR \-B ,
it displays only names of files and directories.
When you specify
.BR \-L ,
it uses lowercase.
When you specify
.BR \-V ,
it lists the verbose information.
When you specify
.BR \-4 ,
it displays year with 4 digits.
And you can prefix
.B \-
to any option letter to override the option.
(MS-DOS version requires to use
.B /
instead of
.B \-
as an option prefix for compatibility with COMMAND.COM.)
.RE
.IP "\fBdirs\fP"
Display the list of the current directory stack.
.B Pushd
and
.B popd
the builtin command can load/unload directories onto the directory stack.
.IP "\fBdisown\fP [\fIjob\fR]"
Remove the job specified with
.I job
from the shell control.
The job to be
.BR disown ed
cannot be controlled by
.BR jobs ,
.B fg
and
.BR bg .
If invoked as a login shell,
any jobs not to be
.BR disown ed
will be forced to exit when the shell finish.
.B (UNIX)
If
.I job
is omitted,
the current job is removed from the shell control.
.IP "\fBdtype\fP \fIfile\fR"
Display the contents of the file indicated by
.IR file .
.IP "\fBecho\fP [\fB\-nN\fP] [\fIarg\fR .\|.\|.]"
Echo
.I arg
to the standard output.
When you don't specify
.BR \-n ,
newline is added to output trailing after
.IR arg .
When you specify
.BR \-N ,
the outputted newline becomes CR-NL (\er\en).
See
.BR echo (1)
for details.
.IP "\fBenable\fP [\fB\-n\fP] [\fIarg\fR .\|.\|.]"
Enable
.I arg
as a builtin command.
When you specify
.BR \-n ,
it is disabled.
If
.I arg
is omitted,
all of the enabled or disabled builtin commands is listed.
.IP "\fBeval\fP [\fIarg\fR .\|.\|.]"
Evaluate
.I arg
and execute the results.
.IP "\fBevalmacro\fP [\fIarg\fR .\|.\|.]"
Evaluate parameter macros included in
.I arg
and execute the results.
Since
.B eval
doesn't evaluate any parameter macro,
you should choose them according to uses.
When in the function,
you cannot use any parameter macro,
then you need this command to extract parameter macros.
.IP "\fBexec\fP [\fIcom\fR [\fIarg .\|.\|.\fR]]"
Execute
.I com
in place of the execution of
.BR fd .
You can specify
.I arg
as arguments of
.IR com .
.IP "\fBexit\fP [\fIn\fR]"
Exit from
.BR fd .
When you specify
.IR n ,
it exits with the exit status
.IR n .
.IP "\fBexport\fP [\fINAME\fR[\fB=\fP[\fIvalue\fR]] .\|.\|.]"
Mark
.I NAME
the internal variable to be inherited to child processes as the environment variable.
Since then,
the definition of
.I NAME
can be referred in any child process.
When you
.B export
the undefined internal variable,
it doesn't become the environment variable
until the internal variable is defined.
When you want to define the value at the same time,
you should specify
.IR value .
If only
.B =
is specified and
.I value
is omitted,
the value of
.I NAME
the environment variable is defined as a null.
If no argument is specified,
all of the
.BR export ed
environment variables is listed.
When you want to delete the definition of the environment variable,
you can use
.B unset
the builtin command.
.IP "\fBfalse\fP"
Only return with a
.B 1
exit status.
.IP "\fBfc\fP [\fB\-l\fP | \fB\-s\fP [\fIold\fR\fB=\fP\fInew\fR .\|.\|.]] [\fB\-nr \fP] [\fB\-e\fP \fIeditor\fR] [\fIfirst\fR [\fIlast\fR]]"
List or edit command histories.
.I First
and
.I last
select the range of command histories.
This specification can be described as a numeric value or a string.
A positive value means the command history number,
and a negative value means the command history
which has the history number as the current history number minus the value.
A string mean the command history which starts with the string.
If
.B \-n
is specified,
command histories are listed without their history numbers.
If
.B \-r
is specified,
command histories are listed in reverse order.
If
.B \-e
is specified,
the editor named by
.I editor
is used to edit command histories,
otherwise the editor specified by
.B FCEDIT
or
.B EDITOR
the internal variable is used.
When
.B \-l
is specified,
selected command histories are listed to the standard output.
In this case,
omitting
.I last
means to specify the current history number,
and also omitting
.I first
means to specify
.BR \-16 .
When
.B \-s
is specified,
the command history selected by
.I first
is executed immediately.
In this case,
omitting
.I first
means to specify the current history number.
The first occurrence of the string
.I old
in the command history will be replaced by the string
.I new
before execution.
When neither
.B \-l
nor
.B \-s
is not specified,
selected command histories are edited,
and then each edited commands are executed one by one
with display in the standard output.
In this case,
omitting
.I last
means to specify
.IR first ,
and also omitting
.I first
means to specify the current history number for both.
.IP "\fBfd\fP [\fIdirectory\fR [\fIdirectory2\fR]]"
Invoke
.B fd
from the internal shell.
If you specify
.IR directory ,
the current directory is moved to the directory initially.
If you specify
.IR directory2 ,
the split window mode is invoked,
and the current directory of the supplemental window is moved to the directory.
You can return to the internal shell by
.BR QUIT_SYSTEM .
It is effective only when it is invoked as
.BR fdsh .
.IP "\fBfg\fP [\fIjob\fR]"
Continue the execution of the job specified with
.I job
in the foreground.
The following format is available to specify a job.
.B (UNIX)
.RS 20
.ta 0.5i
.nf
\fB%\fP
\fB%+\fP the current job
\fB%\-\fP the previous job
\fB%\fP\fIn\fR the job with job number \fIn\fR
\fB%\fP\fIstr\fR the job whose command line starts with \fIstr\fR
.fi
.RE
.RS
But, you must describe these
.B %
in the command line of
.B EXECUTE_SH
as the duplicated expression, such as
.BR %% ,
for the reason of the parameter macro function described below.
If
.I job
is omitted,
the current job is continued in the foreground.
.RE
.IP "\fBgetfreq\fP [\fIfile\fR]"
Output the contents of the translation frequency file,
specified by
.IR file ,
to the standard output for the users Kana-Kanji translation learning.
The output format provides one record per line,
which consists of "Yomi-Gana", "word" and "frequency" separated by tab.
You can use this output as the argument of
.B setfreq
to import the frequency information.
If
.I file
is omitted,
it is regarded as the translation frequency file specified by
.B FREQFILE
the internal variable.
.B (UNIX)
.IP "\fBgetkey\fP [\fInum\fR]"
Get the key code sequence for the pushed key.
It prompts after executed,
and displays the key code sequence for the key which you push to specify.
It continues until you push any key
.I num
times.
When
.I num
is more than
.B 1
time,
you can stop it with pushing
.RB [ Space ].
When
.I num
is
.B 0
time,
it continues forever until
.RB [ Space ]
is pushed.
The displayed sequence can be used as the key code sequence for
.B keymap
command.
.B (UNIX)
If
.I num
is omitted,
it is regarded as
.B 1
time is specified.
.IP "\fBgetopts\fP \fIoptstr\fR \fINAME\fR [\fIarg .\|.\|.\fR]"
Used to parse the optional parameters from a sequence of
.IR arg .
The valid characters as option is described in
.IR optstr .
An option character which needs an argument is described with following
.B :
in
.IR optstr .
Each time
.B getopts
is invoked,
the new option character parsed from
.I arg
is substituted for
.I NAME
the internal variable.
When the option has an argument,
the argument is substituted for
.B OPTARG
the internal variable.
And the index of the next parameter is substituted for
.B OPTIND
the internal variable every time.
The value of
.B OPTIND
is initialized to
.B 1
whenever the shell is invoked,
another parsing of option parameters needs initializing
.B OPTIND
to
.B 1
manually.
If
.I arg
is omitted,
positional parameters are parsed to the optional parameters.
When the end of option is encountered,
.B getopts
will exit with the value of
.BR 1 .
In this case,
.B ?
is substituted for
.IR NAME .
When an option character which is not included in
.I optstr
is found,
an error message is written to the standard error,
then
.B ?
is substituted for
.I NAME
and
.B OPTARG
is unset.
But,
if
.B OPTARG
is started with
.BR : ,
no error message is written,
and the found option character is substituted for
.B OPTARG
instead.
When no argument is found with the option character which needs an argument,
an error message is written to the standard error,
then
.B ?
is substituted for
.I NAME
and
.B OPTARG
is unset.
But,
if
.B OPTARG
is started with
.BR : ,
no error message is written,
then the found option character is substituted for
.B OPTARG
instead,
and
.B :
is substituted for
.IR NAME .
.IP "\fBhash\fP [\fB\-r\fP \(bv \fIcom\fR .\|.\|.]"
Search the absolute path for
.I com
referring to
.BR PATH ,
which indicates the search path when the external command is executed,
and register the result in the hash table.
When you specify
.B \-r
instead of
.IR com ,
all the memorized hash table is discarded.
If
.I com
is omitted,
the hash table information is listed.
.BR hits ,
.BR cost ,
.B command
indicate the number of times the command has been executed,
the measure of the work required to search it in the search path,
and the absolute path for the command,
respectively.
When the command is searched in a relative directory,
it is necessary to re-search whenever the current directory is moved,
because it is not registered as the absolute path.
In such command,
.B \(**
trailing
.B hits
is displayed.
.IP "\fBhistory\fP [\fIn\fR]"
List the last
.I n
command histories with the history number.
If
.I n
is omitted,
all of the memorized command histories is listed.
.IP "\fBjobs\fP"
List the running jobs.
.B (UNIX)
.IP "\fBkconv\fP [\fB\-i\fP \fIin\fR] [\fB\-o\fP \fIout\fR] [\fIinfile\fR [\fIoutfile\fR]]"
Read from
.I infile
and convert its Kanji code from
.I in
to
.IR out ,
and output to
.IR outfile .
In
.I in
and
.IR out ,
you can specify the string which used in
.B FNAMEKCODE
the internal variable described below.
If each of them is omitted,
it is regarded as that the Kanji code specified in compile is specified.
If
.I outfile
is omitted,
it outputs to the standard output.
If also
.I infile
is omitted,
it reads from the standard input.
.B (UNIX)
.IP "\fBkeymap\fP [\fIc\fR [\fIstr\fR]]"
Map the sequence
.I str
as key code of the special key
.IR c .
You can use only the following identifiers as
.IR c .
.B (UNIX)
.RS 20
.ta 0.9i 2i 2.9i
.nf
\fBUP\fP Up \fBDOWN\fP Down
\fBRIGHT\fP Right \fBLEFT\fP Left
\fBBEG\fP Begin \fBEOL\fP Eol
\fBHOME\fP Home \fBEND\fP End
\fBINS\fP Insert \fBDEL\fP Delete
\fBINSLIN\fP InsLine \fBDELLIN\fP DelLine
\fBPPAGE\fP PageUp \fBNPAGE\fP PageDown
\fBENTER\fP Enter \fBBS\fP Bs
\fBCLR\fP Clear \fBHELP\fP Help
\fBPLUS\fP + (tenkey) \fBMINUS\fP - (tenkey)
\fBASTER\fP \(** (tenkey) \fBSLASH\fP / (tenkey)
\fBCOMMA\fP , (tenkey) \fBDOT\fP . (tenkey)
\fBEQUAL\fP = (tenkey) \fBRET\fP Return (tenkey)
\fBTK0\fP.\|.\fBTK9\fP 0-9 (tenkey)
\fBF1\fP.\|.\|.\fBF20\fP function key
.fi
.RE
.RS
You can use the escape sequence in the key code sequence,
such as
.B \en
=0x0a and
.B \ee
=0x1b.
You can also use the octal expression,
such as
.BR \eooo .
You can describe the control character prefixing
.BR ^ ,
such as ^A.
.B ^
itself can be described as
.BR \e^ .
If
.I str
is omitted,
the key code sequence for
.I c
is displayed.
If both
.I str
and
.I c
are omitted,
all of the mappings for special keys is listed.
When you specify
.I str
as \fB"\|"\fP,
the key code mapping for
.I c
is canceled.
.RE
.IP "\fBkill\fP [\fB\-l\fP \(bv \fB\-\fP\fIsignal\fR] [\fIpid\fR \(bv \fIjob\fR .\|.\|.]"
Send the signal indicated by
.I signal
to the process indicated by the process number
.I pid
or
to the job indicated by
.IR job .
.I Signal
is described as a numeric value or a signal name.
If
.I signal
is omitted,
.B SIGTERM
is send.
When you specify
.BR \-l ,
it lists the signal names which can be used as
.I signal
instead of sending a signal.
.IP "\fBlaunch\fP \fIext\fR [\fIcom\fR [\fIformat\fR [\fItop\fR \fIbottom\fR]]]"
.PD 0
.IP "\fBlaunch\fP \fIext\fR \fIcom\fR [\fB\-f\fP \fIformat\fR] [\fB\-t\fP \fItop\fR\] [\fB\-b\fP \fIbottom\fR] [\fB\-ie\fP \fIpatt\fR\]"
.PD
Register the behavior for
.I ext
the extension as the launcher.
You should the macro representation quoted with \fB"\fP as
.IR com .
When you register an archive browser,
you should describe the command to list the archived files as
.IR com ,
and describe the format of the list as
.IR format .
When you describe
.I top
and
.IR bottom ,
you can specify unnecessary lines in the list as the number of lines
from the top/bottom line.
When
.I ext
starts with
.BR / ,
uppercase/lowercase is ignored in the comparison of any extension.
If
.I com
is omitted,
the launcher registration for
.I ext
is canceled.
When you register an archive browser,
you can use the latter form to describe more detailed control.
You can specify multiple formats as candidates with multiple
.B \-f
options.
These candidates for format are compared in order of appearance,
if no one is matched completely then the nearest one is adopted.
.B \-i
and
.B \-e
options specify
.I patt
the pattern for the line to be ignored and for the line to be treated as error respectively.
When the list includes unnecessary lines you can specify also
.I top
and
.IR bottom ,
but you must specify lines except top/bottom lines with
.B \-i
option.
In case that a failure to unpack files in the archive file causes outputting some strings,
you can specify the strings with
.B \-e
option.
.B \-i
and
.B \-e
options can specify multiple patterns,
and they are effective if one of them is matched.
And you can use a wildcard in the description for each
.I patt
the pattern.
.IP "\fBmd\fP \fIdir\fR"
Create the directory
.IR dir .
.IP "\fBmkdir\fP \fIdir\fR"
Same as
.BR md .
.B (DOS)
.IP "\fBnewgrp\fP [\fIarg .\|.\|.\fR]"
Execute
.BR newgrp (1)
in place of the execution of
.BR fd .
You can specify
.I arg
as arguments of
.BR newgrp (1).
See
.BR newgrp (1)
for details.
.B (UNIX)
.IP "\fBlogin\fP [\fIarg .\|.\|.\fR]"
Execute
.BR login (1)
in place of the execution of
.BR fd .
You can specify
.I arg
as arguments of
.BR login (1).
See
.BR login (1)
for details.
.B (UNIX)
.IP "\fBlogout\fP [\fIn\fR]"
Exit from a login shell.
When you specify
.IR n ,
it exits with the exit status
.IR n .
.IP "\fBpopd\fP"
Unload the top directory onto the directory stack,
and change the current directory in
.B fd
to the directory.
This command is failed when the directory stack is empty.
.IP "\fBprintarch\fP [\fIext\fR]"
Print the archiver commands registered for the archive file
which has
.I ext
the extension.
If
.I ext
is omitted,
all of the registered archiver commands is listed.
.IP "\fBprintbind\fP [\fIc\fR]"
Print the command binded to the key
.IR c .
You can specify the key as well as
.BR bind .
If
.I c
is omitted,
all of the registered key bindings is listed,
which is defined not as the internal command but as the command macro.
The key bindings of internal commands can be referred in
.BR HELP_MESSAGE .
.IP "\fBprintdrv\fP [\fIc\fR]"
Print the device file and the number of heads/sectors/cylinders
of the floppy drive registered for the drive name
.IR c .
.B (UNIX)
If
.I c
is omitted,
all of the registered floppy drives is listed.
.IP "\fBprintlaunch\fP [\fIext\fR]"
Print the command macro registered as the launcher for
.I ext
the extension.
When it is registered as the archive browser,
the format for listing is also printed.
If
.I ext
is omitted,
all of the registered launchers is listed.
.IP "\fBprintroman\fP [\fIroman\fR]"
Print the Roman-Kana translation table for the Kana-Kanji IME mode.
It means printing the Japanese string bound for
.I roman
the Roman string.
.B (UNIX)
If
.I roman
is omitted,
all the registered Roman-Kana translation table is listed.
.IP "\fBpushd\fP [\fIdir\fR]"
Load the current directory onto the directory stack,
and change the current directory in
.B fd
to
.IR dir .
If you specify the pathname as "\fB.\fP", "\fB?\fP", "\fB\-\fP", "\fB@\fP",
it behaves like as
.BR LOG_DIR .
The
.B physical
option for
.B set
the builtin command is effective for symbolic links.
If
.I dir
is omitted,
change the current directory to the top directory of the directory stack,
and replace it with the current directory.
In this case,
this command is failed when the directory stack is empty.
.IP "\fBpwd\fP [\fB\-LP\fP]"
Display the current directory with the absolute representation.
If
.B \-L
is specified,
the logical pathname following symbolic links is displayed.
If
.B \-P
is specified,
the physical pathname following no symbolic links is displayed.
Otherwise,
the
.B physical
option for
.B set
the builtin command is effective.
.IP "\fBread\fP [\fB-N\fP] [\fINAME .\|.\|.\fR]"
Read one line from the standard input
and substitute that string for
.I NAME
the internal variable.
The inputted string is separated with
.B IFS
into some words.
When multiple
.IR NAME s
are specified,
words are substituted one by one from the first of line,
and all the rest are substituted for the last
.IR NAME .
When the number of words in inputted string is less than the number of
.IR NAME ,
a null is substituted for the rest of
.IR NAME .
If
.B \-N
is specified,
the newline of the line to be read is regarded as CR-NL (\er\en).
.IP "\fBreadline\fP [\fIprompt\fR]"
Read one line from the terminal input
and output that string to the standard output.
When
.I prompt
is specified,
the string is displayed on the beginning of input line.
This command differs from
.B read
the builtin command in the terminal input and the line editing.
You cannot use the history as one of the line editing,
but can use the completion for a pathname.
.IP "\fBreadonly\fP [\fINAME\fR[\fB=\fP[\fIvalue\fR]] .\|.\|.]"
Mark
.I NAME
the internal variable to be readonly.
Since then,
you cannot change the value of
.IR NAME .
When you want to define the value at the same time,
you should specify
.IR value .
If only
.B =
is specified and
.I value
is omitted,
the value of
.I NAME
the internal variable is defined as a null.
If no argument is specified,
all of the readonly internal variables is listed.
.IP "\fBrd\fP \fIdir\fR"
Delete the directory
.IR dir .
You cannot delete the non-empty directory.
.IP "\fBrmdir\fP \fIdir\fR"
Same as
.BR rd .
.B (DOS)
.IP "\fBren\fP \fIold\fR \fInew\fR"
.PD 0
.IP "\fBrename\fP \fIold\fR \fInew\fR"
.PD
Rename the filename or the directory name
.I old
into
.IR new .
You can specify the wildcard in
.I old
and
.I new
to rename the multiple filenames all together.
.IP "\fBrem\fP [\fIarg\fR .\|.\|.]"
No effect,
same as
.BR : .
.IP "\fBreturn\fP [\fIn\fR]"
Return from a function with the return value specified by
.IR n .
If
.I n
is omitted,
the return value is the exit status of the last executed command.
It cannot be used out of a function.
.IP "\fBsavetty\fP [\fB-n\fP]"
Save the current terminal settings.
The saved settings will be restored when
.B EXECUTE_SH
is executed later.
In case that you change terminal settings with
.BR stty (1)
and so on,
you should save the settings with this command not to reset settings with the next execution of
.BR EXECUTE_SH .
If you change terminal settings and execute this command not in the same command line,
you should notice that this command will save the reset settings.
If
.B \-n
is specified,
the saved settings will be cleared.
.B (UNIX)
.IP "\fBset\fP [\fB\-\-abCefhkmntuvx\fP] [\fB\-o\fP \fIoption\fR] [\fIarg\fR .\|.\|.]"
List internal variables and functions, without any argument.
When you specify
.IR arg ,
.I arg
is substituted for the positional parameter
.BR $1 ,
.BR $2 ,
\&.\|.\|.,
.BI $ n
in order.
When you specify any option,
each option means the following.
When you use
.B \+
instead of
.BR \- ,
the option parameter turns off each option.
.RS
.PD 0
.IP "\fB\-a\fP" 5
.B Export
any internal variable automatically when it is defined.
.IP "\fB\-b\fP"
When a background job has been terminated,
its status report will be displayed immediately.
there is no effect when the job control is not enabled.
.IP "\fB\-C\fP"
Prevent overwriting to any existent files in redirection.
.IP "\fB\-e\fP"
Exit immediately when any command returns the exit status except
.BR 0 .
.IP "\fB\-f\fP"
Disable the wildcard expansion.
.IP "\fB\-h\fP"
Register any command to the hash table just before it is executed.
The commands used in a function are read when it is defined,
and are registered to the hash table.
The command hash itself is always valid,
if
.B \-h
option is set or not.
.IP "\fB\-k\fP"
Treat all
.IR NAME\fB=\fP [ value ]
formed arguments as the variable definition,
while they are not placed on the beginning of command line string.
.IP "\fB\-m\fP"
Enable the job control.
This option is valid by default.
.B (UNIX)
.IP "\fB\-n\fP"
Read command inputs but don't execute them.
.IP "\fB\-o\fP \fIoption\fR"
The following identifiers are valid in
.IR option .
.RS
.PD 0
.IP "\fBallexport\fP" 5
Same as
.BR \-a .
.IP "\fBautosavetty\fP"
Same as
.BR \-S .
.IP "\fBemacs\fP"
Same as
.BR EDITMODE=emacs .
.IP "\fBerrexit\fP"
Same as
.BR \-e .
.IP "\fBhashahead\fP"
Same as
.BR \-h .
.IP "\fBignoreeof\fP"
Any
.B EOF
will not terminate the interactive shell.
.IP "\fBkeyword\fP"
Same as
.BR \-k .
.IP "\fBmonitor\fP"
Same as
.BR \-m .
.IP "\fBnoclobber\fP"
Same as
.BR \-C .
.IP "\fBnoexec\fP"
Same as
.BR \-n .
.IP "\fBnoglob\fP"
Same as
.BR \-f .
.IP "\fBnotify\fP"
Same as
.BR \-b .
.IP "\fBnounset\fP"
Same as
.BR \-u .
.IP "\fBonecmd\fP"
Same as
.BR \-t .
.IP "\fBphysical\fP"
Same as
.BR \-P .
.IP "\fBptyshell\fP"
Same as
.BR \-T .
.IP "\fBverbose\fP"
Same as
.BR \-v .
.IP "\fBvi\fP"
Same as
.BR EDITMODE=vi .
.IP "\fBxtrace\fP"
Same as
.BR \-x .
.RE
.RS
If
.I option
is omitted,
the values of the current options are displayed.
.RE
.IP "\fB\-P\fP"
.B Cd
and
.B pwd
the builtin command use the physical directory structure
instead of the logical directory structure following symbolic links.
.IP "\fB\-S\fP"
Execute
.B savetty
the builtin command automatically whenever any command line is processed.
The terminal settings will be saved absolutely
unless you operate the terminal settings intentionally,
so that you should manually adjust the terminal settings saved accidentally.
.B (UNIX)
.IP "\fB\-T\fP"
Invoke
.B fdsh
as the pseudo terminal.
You cannot invoke any more pseudo terminals in this mode.
It is effective only if you specify it as the startup option
or in the initial configuration file.
It is effective only if you specify it as the startup option,
when the shell is executed as the non-interactive shell.
It is just ignored when invoked as
.BR fd .
.B (UNIX)
.IP "\fB\-t\fP"
Exit immediately after executing the current command input.
.IP "\fB\-u\fP"
Treat the reference of undefined variables as an error.
.IP "\fB\-v\fP"
Display the command inputs whenever they are read.
.IP "\fB\-x\fP"
Display the command strings whenever they are executed.
.IP "\fB\-\-\fP"
Indicate the end of options.
No flag is changed.
.PD
.RE
.IP "\fBsetdrv\fP \fIc\fR \fIdevice\fR \fIhd\fR \fIsc\fR \fIcl\fR"
Specify the device file indicated by
.I device
for the MS-DOS floppy drive named as
.IR c .
At the same time,
.IR hd ,
.IR sc ,
.I cl
are specified as the number of heads(sides)/sectors/cylinders(tracks)
in the format which is treated in the driver of
.IR device .
In special case,
when you want to treat the 640KB2DD(hd=2/sc=8/cl=80) floppy disk
with the driver which can treat only the 820KB2DD(hd=2/sc=9/cl=80) floppy disk,
you should specify the value adding
.B 100
(108) as the value of
.IR sc .
.B (UNIX)
On the PC-UNIX environment which is worked on PC,
specifying the string
.B HDD
or
.B HDD98
instead of
.IR hd ,
.IR sc ,
.IR cl ,
can register the MS-DOS partition on the hard disk
for the PC/AT compatible machine or PC-9800 series.
In this case,
You should describe the device file
as the device name prepared per the physical drive unit
rather than the device name prepared per the partition (slice).
The MS-DOS partitions included in the drive unit
are automatically expanded to the drive name after the drive name
.IR c .
When no MS-DOS partition is included in the specified drive unit,
this command is ignored.
You can confirm what drive name is valid by
.B printdrv
command.
But any hard disk is registered as readonly, for security.
.IP "\fBsetfreq\fP [\fIfile\fR]"
Append the frequency information inputted from the standard input
to the translation frequency file,
specified by
.IR file ,
for the users Kana-Kanji translation learning.
The input format is based on the output format of
.BR getfreq .
If you want to replace,
rather than to append,
you must remove the translation frequency file in advance.
If
.I file
is omitted,
it is regarded as the translation frequency file specified by
.B FREQFILE
the internal variable.
.B (UNIX)
.IP "\fBsetroman\fP [\fB-c\fP] [\fB-r\fP] [\fB-f\fP \fIfile\fR] [\fIroman\fR [\fIkanji\fR]]"
Setup the Roman-Kana translation table for the Kana-Kanji IME mode.
It means binding
.I kanji
the Japanese string to
.I roman
the Roman string.
The part over
.B 4
characters of
.IR roman ,
the string which consists of 1 byte characters only,
will be ignored.
The part over
.B 2
characters of
.IR kanji ,
the string which consists of multibyte characters or 1 byte characters,
will be ignored.
In this case,
a multibyte character is counted as 1 character as well as a 1 byte character.
.B (UNIX)
If
.I kanji
is omitted,
the registered binding of the Roman-Kana translation table for
.I roman
the Roman string will be deleted.
When you specify
.BR \-c ,
the whole Roman-Kana translation table will be cleared to be empty.
When you specify
.BR \-r ,
all the registered bindings will be reset to restore the Roman-Kana translation table.
When you specify
.BR \-f ,
the file specified by
.I file
will be read as bindings of the Roman-Kana translation table.
In this case,
a pair of
.I roman
and
.IR kanji ,
which is separated by spaces,
must be described in each line of
.IR file .
You can also use the file which contains the output of
.BR printroman .
.IP "\fBshift\fP [\fIn\fR]"
Rename the positional parameters from
.BI $ n\+1
into ones from
.B $1
in order.
The original positional parameters from
.B $1
to
.BI $ n
are discarded.
If
.I n
is omitted,
it is regard as
.B 1
is specified.
.IP "\fBsocketinfo\fP [\fB-apAP\fP] [\fIfd\fR]"
If the file descriptor specified by
.I fd
is a socket,
the IP address and the TCP port number of the connected remote host,
and the IP address and the TCP port number of the connected local host,
are outputted to the standard output.
If
.I fd
is not a socket,
this command will be failed.
.B (UNIX)
If
.I fd
is omitted,
it is regarded as the standard input is specified.
If
.B \-a
is specified,
only the IP address of the remote host will be outputted.
If
.B \-p
is specified,
only the TCP port number of the remote host will be outputted.
If
.B \-A
is specified,
only the IP address of the local host will be outputted.
If
.B \-P
is specified,
only the TCP port number of the local host will be outputted.
.IP "\fBtest\fP [\fIexpr\fR]"
.PD 0
.IP "\fB[\fP \fIexpr\fR \fB]\fP"
.PD
Evaluate the conditional expression
.IR expr .
See
.BR test (1)
for details.
.IP "\fBtimes\fP"
Display the accumulated user and system time for the processes
which has so far been executed.
.IP "\fBtrap\fP [\fIcom\fR] [\fIn\fR .\|.\|.]"
Read and execute the command
.I com
when
.B fd
receives the signal
.IR n .
If
.I com
is omitted,
the trap for the signal is reset.
When you specify
.I com
as a null,
the signal ignored.
When you specify
.I n
as
.BR 0 ,
the command
.I com
is executed on exit.
If both
.I com
and
.I n
are omitted,
all of the registered traps is listed.
.IP "\fBtrue\fP"
Only return with a
.B 0
exit status.
.IP "\fBtype\fP [\fIcom\fR .\|.\|.]"
Display how each
.I com
would be treated when it is used as a command name.
.IP "\fBulimit\fP [\fB\-SH\fP] [\fB\-a\fP \(bv \fB\-cdflmnstv\fP] \fIn\fR"
Set the resource limits for
.B fd
and its child processes to the value indicated by
.IR n .
You can use the string
.B unlimited
or the numeric value in
.IR n ,
.B unlimited
means the maximum specifiable value.
.B (UNIX)
When you specify
.BR \-H ,
a hard limit is set.
When you specify
.BR \-S ,
a soft limit is set.
When you don't specify neither of them,
both limits are set.
If
.I n
is omitted,
the current limit is displayed.
When you specify
.BR \-a ,
all of the resource limits is displayed.
When you specify the following options,
the each resource limit is individually set or displayed.
If no option is specified,
it is regarded as
.B \-f
is specified.
.RS
.PD 0
.IP "\fB\-c\fP" 5
maximum core file size (in blocks)
.IP "\fB\-d\fP"
maximum size of data segment (in KB)
.IP "\fB\-f\fP"
maximum file size (in blocks)
.IP "\fB\-l\fP"
maximum size of locked in memory (in KB)
.IP "\fB\-m\fP"
maximum size of resident set (in KB)
.IP "\fB\-n\fP"
maximum number of open file files
.IP "\fB\-s\fP"
maximum size of stack segment (in KB)
.IP "\fB\-t\fP"
maximum CPU time (in seconds)
.IP "\fB\-v\fP"
maximum size of virtual memory (in KB)
.PD
.RE
.IP "\fBumask\fP [\fInnn\fR]"
Set the file creation mask to
.IR nnn .
If
.I nnn
is omitted,
the current value of the file creation mask is displayed.
See
.BR umask (2)
for details.
.IP "\fBunalias\fP \fIname\fR"
Cancel the definition of the alias
.IR name .
You can use the wildcard in
.IR name ,
in this case,
all of the matched alias definitions is canceled.
When you specify "\(**",
all of the alias definitions is invalid.
.IP "\fBunset\fP [\fINAME\fR .\|.\|.]"
Delete the defined internal variable or function for each
.IR NAME .
But the following variable definition cannot be deleted.
.RS 20
.ta 1i 2i 3i
.nf
.ft B
PATH PS1 PS2 IFS
MAILCHECK PPID
.ft R
.fi
.RE
.IP "\fBunsetdrv\fP \fIc\fR \fIdevice\fR \fIhd\fR \fIsc\fR \fIcl\fR"
Delete the registered floppy drive.
Only the registration with which
all of
.IR device ,
.IR hd ,
.IR sc ,
.I cl
is corresponded is deleted,
then you should confirm to delete very well.
.B (UNIX)
When it is registered as
.B HDD
or
.B HDD98
in
.BR setdrv ,
you should describe
.B HDD
or
.B HDD98
instead of
.IR hd ,
.IR sc ,
.IR cl .
.IP "\fBwait\fP [\fIpid\fR \(bv \fIjob\fR]"
Wait for the process indicated by
.I pid
or for the job indicated by
.IR job ,
and return its exit status.
If both
.I pid
and
.I job
are omitted,
all running jobs are waited.
.B (UNIX)
.IP "\fByesno\fP [\fIprompt\fR]"
Wait for a input of
.B y
or
.B n
from the terminal,
and then return
.B 0
when
.B y
is inputted,
return
.B 255
when
.B n
is inputted.
Instead of input of
.B y
or
.BR n ,
you can select a character from displayed
.B [Y/N]
with cursor keys and push
.RB [ Return ]
to be regarded as an input of the selected character.
An input of
.RB [ Space ]
or
.RB [ Esc ]
means the input of
.BR n .
When
.I prompt
is specified,
the string is displayed before
.BR [Y/N] .
.IP "\fICOMMAND\fR [\fIarg\fR]"
Execute the internal command
.I COMMAND
of
.BR fd .
You can describe each command identifier in
.IR COMMAND .
The following internal commands can take a parameter argument
.IR arg .
.RS
.PD 0
.IP "\fBCUR_UP\fP" 15
.IP "\fBCUR_DOWN\fP"
.IP "\fBCUR_RIGHT\fP"
.IP "\fBCUR_LEFT\fP"
.IP "\fBROLL_UP\fP"
.IP "\fBROLL_DOWN\fP"
.IP "\fBWIDEN_WINDOW\fP"
.IP "\fBNARROW_WINDOW\fP"
The number of lines, columns, or pages.
.IP "\fBRENAME_FILE\fP"
.IP "\fBPACK_FILE\fP"
.IP "\fBBACKUP_TAPE\fP"
The filename.
.IP "\fBLOG_DIR\fP"
.IP "\fBMAKE_DIR\fP"
.IP "\fBINFO_FILESYS\fP"
.IP "\fBUNPACK_FILE\fP"
The directory name.
.IP "\fBEXECUTE_SH\fP"
The command string.
.IP "\fBMARK_FIND\fP"
.IP "\fBFIND_FILE\fP"
.IP "\fBFIND_DIR\fP"
The wildcard string.
.IP "\fBMARK_ALL\fP"
.B 0
will reset the mark of all files,
the other will mark all files.
.IP "\fBSORT_DIR\fP"
The number substituted for
.B SORTTYPE
the internal variable.
.IP "\fBEDIT_CONFIG\fP"
The name of internal variable to be edited.
.PD
.RE
.PP
.B ~
and
.B $
in the previous registration string are expanded.
But these expansions are restrained in the string quoted with
.B '
instead of \fB"\fP.
.SS Tree Screen
Since representing the whole file system in tree structure takes too many time,
only the directories which are direct ancestors
and the direct sub directories are displayed,
first in the tree screen.
In the directories which are direct ancestors,
the other sub directories (if exists)
are grouped as "\fB.\|.\|.\fP".
These grouped sub directories will be expanded automatically
when a cursor is placed on its position.
The sub directories which are not expanded yet are represented with
.RB ' > '
trailing the filename,
which shows as they are.
Such directory is never expanded until it is required to expand explicitly,
then you should expand it by the following key inputs
before moving to any hidden sub directory.
In the tree screen,
the following key inputs are available.
.PD 0
.RS
.IP "\fBUp\fP, \fBDown\fP" 10
Move a cursor.
.IP "\fBRight\fP"
Expand the sub directory on the cursor position.
.IP "\fBTab\fP"
Expand the sub directory on the cursor position recursively.
.IP "\fBPageUp\fP, \fBPageDown\fP"
Move a cursor by half screen.
.IP "\fBHome\fP(<), \fBEnd\fP(>)"
Move a cursor to the top/bottom of tree.
.IP "\fB?\fP"
Move a cursor to the current directory.
.IP "\fBBs\fP"
Move a cursor to the parent directory.
.IP "\fBLeft\fP"
Group sub directories of the directory on the cursor position,
or move a cursor to the parent directory.
.IP "\fB(\fP, \fB)\fP"
Move a cursor to the previous/next directory
among the same level sub directories.
.IP "\fBA\fP \- \fBZ\fP"
Move a cursor to the directory
whose name starts with the character or its lowercase.
.IP "\fBl\fP"
Change the directory tree into the specified directory.
Moving to the floppy drive is also available.
.IP "\fB^L\fP"
Redraw the tree structure.
.IP "\fBReturn\fP"
Select the directory.
.IP "\fBEsc\fP"
Cancel.
.RE
.PD
.PP
When directories are recursively expanded,
the machine operation is so late that it maybe seems to freeze.
In this case,
you can input any key while operating.
If key input is recognized while expanding directories,
expanding has been stopped at that moment in spite of not finishing.
Even if key repeat keeps effective,
any operation will be delayed for this function.
.SS Archive Browser
When the launcher is invoked on the position of the file
whose extension is registered to associate with an archive browser,
the archive browser screen has come.
In this screen,
you can browse files in the archive file as well as in the normal directory.
But you cannot use the following internal commands in this screen.
.PD 0
.PP
.RS
.ta 1.5i 3i 4.5i
.nf
.ft B
LOG_TOP ATTR_FILE COPY_FILE MOVE_FILE
DELETE_FILE DELETE_DIR RENAME_FILE MAKE_DIR
WRITE_DIR TREE_DIR EDIT_FILE LOG_TREE
COPY_TREE MOVE_TREE FIND_DIR ATTR_DIR
SYMLINK_MODE DOTFILE_MODE FILEFLG_MODE SPLIT_WINDOW
KILL_WINDOW
.ft R
.fi
.RE
.PD
When you want to register a new archive browser,
you must describe the format listed by the archiver
as the following representation.
One format string represents the format for 1 file in the list.
.PD 0
.PP
.RS
.ta 1i
.nf
\fB%a\fP Field which indicates a file mode
\fB%u\fP Field which indicates UID of a file
\fB%g\fP Field which indicates GID of a file
\fB%s\fP Field which indicates a file size
\fB%y\fP Field which indicates a file creation year
\fB%m\fP Field which indicates a file creation month
(No concerning if numeric or alphabetical)
\fB%d\fP Field which indicates a file creation day
\fB%w\fP Field which indicates a file creation week (ignored)
\fB%t\fP Field which indicates a file creation time
("HH:MM:SS" form, MM and SS can be lacking)
\fB%p\fP Field which indicates a file creation am/pm
\fB%B\fP Field which indicates a major device ID
\fB%b\fP Field which indicates a minor device ID
\fB%/\fP\fIstr\fR\fB/\fP Field which indicates a type is directory
when this field string is \fIstr\fR
(case insensitive)
\fB%!\fP\fIstr\fR\fB!\fP 0 or more continuous fields
which consists of the string \fIstr\fR
(case insensitive)
\fB%f\fP Field which indicates a filename
\fB%x\fP Field which is needless (ignored)
\fB%%\fP % itself
\fB\en\fP Newline
\fBSpace Tab\fP 0 or more characters of spaces or tabs
.fi
.RE
.PD
.PP
In this description,
the field means the area separated by spaces, tabs or newlines.
When the string which indicates each information
is separated by these characters,
you can simply describe the above string which indicates that field.
When the string is separated by another character,
you should describe the above string with that separator.
You can describe to indicate the field length as numeric, such as
.IR %10a .
This example means that
the field which indicates a file mode consists of 10 characters.
If you describe it with a character
.B *
as the field length instead of numeric,
such as
.IR %*f ,
the string to the end of line is regarded as a field,
in which any space and tab will be ignored.
When a field may have the different meanings according to situation,
you should describe it quoted with
.BR "{ }" ,
such as
.IR %{yt} .
This example means that
this field indicates a creation year or a creation time.
When the information for 1 file consists of multiple lines,
you should place a
.B \en
on the position of newline in the format string.
For example,
the following are the format strings for the list of some archivers.
While some spaces are used here for easiness to see,
these spaces are not always necessary
because any space between fields is ignored.
.PD 0
.IP "`\fBlha l\fP'" 18
"%9a %u/%g %s %x %m %d %{yt} %f"
.IP "`\fBlha v\fP' (MS\-DOS)"
"%f\en%s %x %x %y-%m-%d %t"
.IP "`\fBtar tvf\fP' (BSD)"
"%9a %u/%g %s %m %d %t %y %f"
.IP "`\fBtar tvf\fP' (SVR4)"
"%a %u/%g %s %m %d %t %y %f"
.PD
.PP
If you register archive browsers with above format,
in the builtin command of
.B EXECUTE_SH
or in the initial configuration file,
you can use the archive browser which is not prepared by default.
But,
if you want to execute or view files in the archive file,
you must register the archiver command for the archive file, too,
don't forget this.
On some OS,
.BR tar (1)
may output the Japanese timestamp when
.I japanese
is substituted for
.B LANG
the environment variable.
Since
.B fd
cannot analyze the representation like this,
you should describe
.I `export LANG=C'
in the initial configuration file,
or specify
.B LANG
in the description of listing command,
such as
.IR "`LANG=C tar tvf'" .
.SS Floppy Drive (UNIX)
You can access the MS-DOS formatted floppy disk,
by representing to prefix "\fIc\fR\fB:\fP" to the directory name.
But,
it is necessary to register the floppy drive
and set
.B DOSDRIVE
the internal variable which makes this function effective, in advance.
Each registered drive is distinguished with the drive name.
You should tag the physically different drive as the different drive name.
When the same physical drive supports multiple formats,
you can register each format with the same drive name,
or the different drive name each other.
If you tag the same drive name,
the justice of the format is tried in registered order,
so that you should register the format which you often use in the first place.
Each drive of the floppy drive has the its own current directory.
The default value of this is a root directory,
and the current directory is moved back to a root directory again
whenever you change a floppy disk.
When you describe the directory name as starting with '/' after
.RB ' : ',
it means the absolute path representation of that drive.
If this '/' is not exist,
it means the relative path representation
from the current directory of that drive,
don't forget this.
Regrettably,
some internal commands like as
.BR WRITE_DIR ,
.B INFO_FILESYS
cannot support the floppy drive.
Some filenames are renamed when they are copied from UNIX
for reason of the filename length limit.
When you use a lowercase letter as the drive name,
you can access it as the floppy drive which can treat the Long File Name (LFN)
for MS-Windows formatted floppy disk.
In this case,
you can copy a file with a long filename on UNIX as it is.
But,
when the UNICODE translation table
.B fd\-unicd.tbl
does not exist in the same directory as the invoked
.B fd
exists,
any Kanji filename cannot be treated as LFN representation.
Reversely,
when you use a uppercase letter as the drive name,
LFN is ignored and 8+3 formed filename is treated.
MS-DOS version inherits this specification by the case of a drive name.
.SS URL Drive (UNIX)
You can access remote services on the network,
by representing the URL string as the directory name.
The URL format is \fIscheme\fR\fB://\fP[\fIuser\fR[\fB:\fP\fIpassword\fR]\fB@\fP]\fIhost\fR[\fB:\fP\fIport\fR]\fB/\fP\fIdirectory\fR\fB/\fP.
You can specify
.B ftp
or
.B http
as
.IR scheme .
You can specify the name or IP address of the remote host as
.IR host .
You can specify the TCP port number as
.IR port .
If
.I port
is omitted,
the default port number is used.
The default port number for
.B ftp
is
.BR 21 ,
and the default port number for
.B http
is
.BR 80 .
You can specify account information to connect the remote host as
.I user
and
.IR password .
If
.I user
is omitted,
the anonymous FTP connection will be used with
.BR ftp ,
or you will be queried as needed with
.BR http .
If
.I password
is omitted,
you will be queried as needed.
But,
it is necessary to set
.B URLDRIVE
the internal variable which makes this function effective, in advance.
Regrettably,
some internal commands cannot support the URL drive,
for the sake of restrictions of the FTP and HTTP protocols or settings of the host side.
.SS String Input
When you input the string, such as the pathname,
the following key inputs are available.
The kind of referred history differs with the input string required.
In the split window mode,
the current directory of another window is always placed
on the top of the pathname history.
.PD 0
.IP "\fBLeft\fP, \fBRight\fP" 10
Move a cursor.
.IP "\fBUp\fP, \fBDown\fP"
Refer the previous histories (only commands and pathnames),
or move a cursor.
.IP "\fBBeg\fP"
Move a cursor to the beginning of string.
.IP "\fBEol\fP"
Move a cursor to the end of string.
.IP "\fBIns\fP"
Switch a input method to the insert/overwrite mode.
(Default value is the insert mode.)
.IP "\fBDel\fP"
Delete a character on the cursor position.
.IP "\fBBs\fP"
Delete a character before the cursor position.
.IP "\fBDelLine\fP"
Delete a string after the cursor position.
.IP "\fBInsLine\fP"
Treat the next input character as it is,
effective to input control characters.
.IP "\fBEnter\fP"
Insert a filename of the file on the cursor position.
.IP "\fBPageUp\fP"
Convert a character on the cursor position to uppercase.
.IP "\fBPageDown\fP"
Convert a character on the cursor position to lowercase.
.IP "\fBTab\fP"
Complete a pathname, a command name or a variable name on the cursor position.
.RS
When there are two or more completion choices,
inputting this continuously can display the completion choice list.
Except for command line in the internal shell,
you can make a choice from this list with cursor keys and
.RB [ Return ].
.RE
.IP "\fB^L\fP"
Redraw the input string.
.IP "\fB^S\fP, \fB^R\fP"
Search the previous histories (only commands and pathnames) incrementally.
.IP "\fBReturn\fP"
Decide the input,
or decide the choice in the completion choice list.
.IP "\fBEsc\fP"
Cancel.
.PD
.PP
The inputted string is expanded before evaluation as following.
These expansions are also valid in the string of command macros.
But these expansions are restrained
in the string quoted with the quotation mark
.BR ' .
.IP "\fB~\fP" 8
Indicate your home directory,
when it is the beginning of filename.
.IP "\fB~\fP\fIuser\fR"
Indicate
.IR user 's
home directory,
when it is the beginning of filename.
.B (UNIX)
.IP "\fB~FD\fP"
Indicate the directory where the invoked
.B fd
is exists,
when it is the beginning of filename.
.IP "\fB$\fP\fINAME\fR"
.PD 0
.IP "\fB${\fP\fINAME\fR\fB}\fP"
.PD
Indicate the value of
.I NAME
the internal variable or the environment variable.
When both are defined,
the internal variable is prior.
When both are undefined,
it is replaced a null.
The brace
.B "{ }"
separates
.I NAME
from its trailing characters.
When
.I NAME
is the following character,
it is replaced by the value substituted automatically by the shell.
.RS
.PD 0
.IP "\fB0\fP" 7
The executable filename when invoked.
.IP "[\fB1\fP\-\fB9\fP]"
The positional parameter.
.IP "\fB\(**\fP"
The all positional parameters which starts from
.BR $1 .
\fB"$\(**"\fR is replaced by \fB"$1 $2\fR .\|.\|.\fB"\fR.
.IP "\fB@\fP"
The all positional parameters which starts from
.BR $1 .
\fB"$@"\fR is replaced by \fB"$1" "$2"\fR .\|.\|. .
.IP "\fB#\fP"
The number of positional parameters.
.IP "\fB\-\fP"
The option flags which is set by options when invoked or
.B set
the builtin command.
.IP "\fB?\fP"
The exit status of the last executed command.
.IP "\fB$\fP"
The process number of the current shell.
.IP "\fB!\fP"
The process number of the last executed background process.
.PD
.RE
.IP "\fB${\fP\fINAME\fR\fB:\-\fP\fIword\fR\fB}\fP"
If the value except a null is substituted for
.I NAME
the internal variable or the environment variable,
it is replaced by the value,
otherwise it is replaced by
.IR word .
.IP "\fB${\fP\fINAME\fR\fB:=\fP\fIword\fR\fB}\fP"
If the value except a null is substituted for
.I NAME
the internal variable or the environment variable,
it is replaced by the value,
otherwise
.I word
is substituted for
.I NAME
the internal variable,
and this expression itself is replaced by
.IR word .
But you cannot substitute the value for any positional parameter.
.IP "\fB${\fP\fINAME\fR\fB:?\fP\fIword\fR\fB}\fP"
If the value except a null is substituted for
.I NAME
the internal variable or the environment variable,
it is replaced by the value,
otherwise
display
.I word
and exit from the shell.
If
.I word
is omitted,
the string
.RB `` "parameter null or not set" ''
is displayed in its place.
.IP "\fB${\fP\fINAME\fR\fB:\+\fP\fIword\fR\fB}\fP"
If the value except a null is substituted for
.I NAME
the internal variable or the environment variable,
it is replaced by
.IR word ,
otherwise it is replaced by a null.
.IP "\fB${\fP\fINAME\fR\fB\-\fP\fIword\fR\fB}\fP"
If any value is substituted for
.I NAME
the internal variable or the environment variable,
it is replaced by the value,
otherwise it is replaced by
.IR word .
.IP "\fB${\fP\fINAME\fR\fB=\fP\fIword\fR\fB}\fP"
If any value is substituted for
.I NAME
the internal variable or the environment variable,
it is replaced by the value,
otherwise
.I word
is substituted for
.I NAME
the internal variable,
and this expression itself is replaces by
.IR word .
But you cannot substitute the value for any positional parameter.
.IP "\fB${\fP\fINAME\fR\fB?\fP\fIword\fR\fB}\fP"
If any value is substituted for
.I NAME
the internal variable or the environment variable,
it is replaced by the value,
otherwise
display
.I word
and exit from the shell.
If
.I word
is omitted,
the string
.RB `` "parameter null or not set" ''
is displayed in its place.
.IP "\fB${\fP\fINAME\fR\fB\+\fP\fIword\fR\fB}\fP"
If any value is substituted for
.I NAME
the internal variable or the environment variable,
it is replaced by
.IR word ,
otherwise it is replaced by a null.
.IP "\fB${#\fP\fINAME\fR\fB}\fP"
It is replaced by the length in characters of the value of
.I NAME
the internal variable or the environment variable.
If
.I NAME
is
.B *
or
.BR @ ,
it is replaced by the number of positional parameters instead of the length of characters.
.IP "\fB${\fP\fINAME\fR\fB%\fP\fIword\fR\fB}\fP"
It is replaced by the string in which the smallest portion of the suffix matched by the
.I word
pattern is deleted from the value of
.I NAME
the internal variable or the environment variable.
If
.I NAME
is
.B *
or
.BR @ ,
each positional parameter is replaced.
(
.B \e
is used instead of
.B %
on MS-DOS version.)
.IP "\fB${\fP\fINAME\fR\fB%%\fP\fIword\fR\fB}\fP"
It is replaced by the string in which the largest portion of the suffix matched by the
.I word
pattern is deleted from the value of
.I NAME
the internal variable or the environment variable.
If
.I NAME
is
.B *
or
.BR @ ,
each positional parameter is replaced.
(
.B \e\e
is used instead of
.B %%
on MS-DOS version.)
.IP "\fB${\fP\fINAME\fR\fB#\fP\fIword\fR\fB}\fP"
It is replaced by the string in which the smallest portion of the prefix matched by the
.I word
pattern is deleted from the value of
.I NAME
the internal variable or the environment variable.
If
.I NAME
is
.B *
or
.BR @ ,
each positional parameter is replaced.
.IP "\fB${\fP\fINAME\fR\fB##\fP\fIword\fR\fB}\fP"
It is replaced by the string in which the largest portion of the prefix matched by the
.I word
pattern is deleted from the value of
.I NAME
the internal variable or the environment variable.
If
.I NAME
is
.B *
or
.BR @ ,
each positional parameter is replaced.
.IP "\fB\e\fP\fIc\fR"
It indicates a character
.I c
itself.
You can use it
when you want to use the preceding meta-character
as a character with no evaluation,
such as
.B ~
or
.BR $ .
You can describe
.B \e
itself as "\fB\e\e\fP".
But,
on MS-DOS version,
because
.B \e
which is used as the pathname delimiter
must be treat as well as the normal character,
.BI % c
is expediently used in place of
.BR \e .
.PP
.PD
The following is replaced only in the shell
which is executed by
.B EXECUTE_SH
and
.BR EXECUTE_FILE .
.IP "\fB`\fP\fIlist\fR\fB`\fP" 8
.I List
is executed
and this string is replaced by its standard output.
.IP "\fB$(\fP\fIlist\fR\fB)\fP"
.I List
is executed
and this string is replaced by its standard output like as \fB`\fP\fIlist\fR\fB`\fP.
This differs from
.BI ` list `
in the point that nested expressions are allowed.
And any meta-characters such as quotes in
.I list
are evaluated as it is.
.IP "\fB$((\fP\fIexpression\fR\fB))\fP"
.I Expression
the arithmetic expression is evaluated
and this string is replaced by its result value.
You can specify numeric values,
variables and integral calculations with the following operators in
.IR expression .
.RS 12
.ta 1.8i 2.6i
.nf
(unary) (binary)
arithmetic \fB+ \-\fP \fB+ \- * / %\fP
boolean \fB!\fP \fB== != < > <= >= && ||\fP
bit operator \fB~\fP \fB& | ^ << >>\fP
parenthesis \fB( )\fP
.fi
.RE
.IP "\fB?\fP"
.PD 0
.IP "\fB\(**\fP"
.IP "\fB[\fP"
.IP "\fB]\fP"
.PD
The string including these letters is pattern-matched with existent files.
When it is matched,
it is replaced by all of the matched filenames
which are sorted in alphabetical order.
.RS
.PD 0
.IP "\fB?\fP" 5
Match any single character except
.BR / .
.IP "\fB\(**\fP"
Match any 0 or more length string not including
.BR / .
.IP "\fB\(**\(**\fP"
Match any 0 or more length string including
.BR / .
.IP "\fB[\fP.\|.\|.\fB]\fP"
Match any one of the characters enclosed by
.BR "[ ]" .
When enclosed characters include
.BR \- ,
it matches any character
whose character code is between characters before/after
.BR \- .
.IP "\fB[!\fP.\|.\|.\fB]\fP"
Match any one of the characters not enclosed by
.BR "[ ]" .
.PD
.PP
But,
when the first character of the filename is
.BR . ,
.BR ? ,
.B \(**
and
.B \(**\(**
don't match it.
.RE
.SS Edit Mode
When you want to use some functions bound to special keys,
such as a cursor key or a scroll key,
such a key doesn't exist in some terminals.
In such a case,
substituting the string for
.B EDITMODE
the internal variable can make you use some control keys as alternative to these special keys.
Since this alternative key function is prior to
the key binding by the builtin command,
the key binding is invalid for the control characters
used as the alternative keys.
The prepared edit modes are the following 3 modes.
.IP "\fBemacs\fP" 8
.RS 12
.ta 0.5i 1.5i 2i 3i 3.5i
.nf
\fB^P\fP = \fBUp\fP \fB^A\fP = \fBBeg\fP
\fB^N\fP = \fBDown\fP \fB^E\fP = \fBEol\fP \fB^D\fP = \fBDel\fP
\fB^F\fP = \fBRight\fP \fB^Q\fP = \fBInsLine\fP
\fB^B\fP = \fBLeft\fP \fB^K\fP = \fBDelLine\fP
\fB^V\fP = \fBPageDn\fP \fB^Y\fP = \fBPageUp\fP \fB^O\fP = \fBEnter\fP
\fB^M\fP = \fBReturn\fP \fB^I\fP = \fBTab\fP \fB^H\fP = \fBBs\fP
\fB^[\fP = \fBEsc\fP \fB^G\fP = \fBEsc\fP
.fi
.RE
.IP "\fBwordstar\fP"
.RS 12
.ta 0.5i 1.5i 2i 3i 3.5i
.nf
\fB^E\fP = \fBUp\fP \fB^A\fP = \fBBeg\fP \fB^V\fP = \fBIns\fP
\fB^N\fP = \fBDown\fP \fB^F\fP = \fBEol\fP \fB^G\fP = \fBDel\fP
\fB^F\fP = \fBRight\fP \fB^W\fP = \fBHome\fP \fB^]\fP = \fBInsLine\fP
\fB^S\fP = \fBLeft\fP \fB^Z\fP = \fBEnd\fP \fB^Y\fP = \fBDelLine\fP
\fB^C\fP = \fBPageDn\fP \fB^R\fP = \fBPageUp\fP \fB^N\fP = \fBEnter\fP
\fB^M\fP = \fBReturn\fP \fB^I\fP = \fBTab\fP \fB^H\fP = \fBBs\fP
\fB^[\fP = \fBEsc\fP
.fi
.RE
.IP "\fBvi\fP"
.B Vi
mode has the 2 local modes: "insert mode" and "command mode",
and the function of keys are quite different with each mode.
You are in the command mode when you start to input,
then you must input any key among 4 keys which switch to the insert mode,
in order to input normal keys.
.RS 12
.ta 0.5i 1.5i 2i 3i 3.5i
.nf
(command mode)
\fBk\fP = \fBUp\fP \fB0\fP = \fBBeg\fP
\fBj\fP = \fBDown\fP \fB$\fP = \fBEol\fP \fBx\fP = \fBDel\fP
\fBl\fP = \fBRight\fP \fBg\fP = \fBHome\fP
\fBh\fP = \fBLeft\fP \fBG\fP = \fBEnd\fP \fBD\fP = \fBDelLine\fP
\fB^F\fP = \fBPageDn\fP \fB^B\fP = \fBPageUp\fP \fBo\fP = \fBEnter\fP
\fB^M\fP = \fBReturn\fP \fB^I\fP = \fBTab\fP \fB^H\fP = \fBBs\fP
\fB^[\fP = \fBEsc\fP
(from command mode to insert mode)
\fBi\fP, \fB:\fP = only switch its mode
\fBI\fP = + \fBBeg\fP
\fBa\fP = + \fBRight\fP \fBA\fP = + \fBEol\fP
\fBR\fP = overwrite
\fBr\fP = overwrite once
(insert mode)
\fB^V\fP = \fBInsLine\fP \fBEsc\fP = to command mode
.fi
.RE
.RS
This key binding is so particular
that it is not suitable for those who don't use
.B vi
editor everyday.
.RE
.SS Kana-Kanji IME (UNIX)
You can input strings in the Kana-Kanji IME mode,
if you input the key specified by
.B IMEKEY
or select "Kanji"
from the pseudo terminal menu.
The translation performance will depend on the Kana-Kanji translation dictionary
.BR fd\-dict.tbl .
When it does not exist in the same directory as the invoked
.B fd
exists,
translation to Kanji will not be available.
The standard installed dictionary file is the Tan-Kanji dictionary,
which can support only the Tan-Kanji translation.
The dictionaly such as the pubdic,
which includes the Hinsi information,
will bring you the Tan-Bunsetsu translation.
The Ren-Bunsetsu translation is not be supported.
In the Kana-Kanji IME mode,
the following key inputs are available.
.PD 0
.RS
.IP "\fBSpace\fP" 10
Trancelate to Kanji,
or select the next translation candidate.
.IP "\fBLeft\fP, \fBRight\fP"
.IP "\fBUp\fP, \fBDown\fP"
Move a cursor in the list of the translation candidate.
.IP "\fBBs\fP, \fBDel\fP"
Delete a character before the cursor position.
.IP "\fBTab\fP"
Toggle Hiragana, Katakana, Hankaku-Kana and the direct input.
.IP "\fB^L\fP"
Redraw the input string.
.IP "\fBReturn\fP"
Decide the translation result.
.IP "\fBEsc\fP"
Cancel.
.RE
.PD
.PP
When you translate the string of the capital 4 digit hexadecimal prefixed by a capital letter,
it is regarded as the hexadecimal showing the following Kanji code respectively.
Then the menu will be displayed to select Kanji next to the Kanji code number.
.PD 0
.RS
.IP "\fBS\fP" 4
Shift JIS
.IP "\fBE\fP"
EUC-JP
.IP "\fBJ\fP"
JIS code (JIS X0208)
.IP "\fBK\fP"
Kuten code
.IP "\fBU\fP"
UNICODE (UCS2)
.RE
When you input
.RB [ Space ]
in the state where you decide an un-translated Kana,
it is regarded as the initial reading of Kanji.
Then the menu will be desplayed to select Kanji whose reading starts with the Kana.
.PD
.SS Parameter Macros
You can use the following parameter macros in the string
which is used for the registration of command macros and for executing command.
But,
you cannot use them in the functions,
the input file for
.B source
command,
and the initial configuration file,
then you should use
.B evalmacro
command when you want to use any parameter macro in them.
.IP "\fB%C\fP" 8
The filename on the cursor position.
Or, it indicates the archive filename,
in the macro to register the archiver command.
.IP "\fB%X\fP"
The filename except its extension on the cursor position.
Or, it indicates the archive filename except its extension,
in the macro to register the archiver command.
Only the last one extension is removed.
.BR T ,
.BR TA ,
.B M
trailing
.B %X
are replaced by
.BR %T ,
.BR %TA ,
.B %M
except its extension respectively.
On MS-DOS version,
you can describe a trailing
.B S
as well as them.
.IP "\fB%P\fP"
The pathname of the current directory.
.IP "\fB%K\fP"
Prompt and return to
.B fd
after a command is finished.
But,
the meaning of
.B %K
is reverse in
.B EXECUTE_FILE
and
.BR EXECUTE_SH ;
it prompts by default and doesn't prompt if
.B %K
is specified.
You can never specify to prompt
in macros to register the archive browser of the launcher
and macros to register the archiver command.
.IP "\fB%T\fP"
List marked files separated by spaces as possible.
When files are so many that the command line length exceeds the OS limitation,
the rest of marked files are ignored.
.IP "\fB%TA\fP"
List marked files as well as
.BR %T ,
and repeat the same command for spilt files to complete all marked files.
.IP "\fB%M\fP"
Execute the same command as many times as marked files,
sending the marked file one by one.
It is useful to mark files by
.B MARK_FIND
and execute "mv %M %XM.bak" by
.BR EXECUTE_SH .
.IP "\fB%N\fP"
Restrain the filename addition even if the parameter is omitted.
.IP "\fB%R\fP"
Make you input the additional parameter in executing a macro,
if the length of command string has enough margin.
The cursor position in input is placed on the position of
.B %R
in a macro.
But,
.B %R
is ignored in macros to register the archive browser of the launcher,
macros to register the archiver command,
and
.BR EXECUTE_FILE ,
.BR EXECUTE_SH .
.IP "\fB%S\fP"
The 8+3 formed filename
with which the LFN formed filename on the cursor position is replaced.
You can use it
when you use external commands which can treat only 8+3 formed arguments.
.BR T ,
.BR TA ,
.B M
trailing
.B %S
can be described as well as
.BR %X .
.B (DOS)
.IP "\fB%JS\fP"
The Kanji code of the string enclosed by this macro
is converted into Shift JIS.
.B (UNIX)
.IP "\fB%JE\fP"
The Kanji code of the string enclosed by this macro
is converted into EUC-JP.
.B (UNIX)
.IP "\fB%J7\fP"
The Kanji code of the string enclosed by this macro
is converted into 7bit JIS.
.B (UNIX)
.IP "\fB%J8\fP"
The Kanji code of the string enclosed by this macro
is converted into 8bit JIS.
.B (UNIX)
.IP "\fB%JJ\fP"
The Kanji code of the string enclosed by this macro
is converted into ISO-2022-JP.
.B (UNIX)
.IP "\fB%JH\fP"
The Kanji code of the string enclosed by this macro
is converted into HEX.
.B (UNIX)
.IP "\fB%JC\fP"
The Kanji code of the string enclosed by this macro
is converted into CAP.
.B (UNIX)
.IP "\fB%JU\fP"
The Kanji code of the string enclosed by this macro
is converted into UTF-8.
.B (UNIX)
.IP "\fB%JM\fP"
The Kanji code of the string enclosed by this macro
is converted into UTF-8 for Mac OS X.
.B (UNIX)
.IP "\fB%JI\fP"
The Kanji code of the string enclosed by this macro
is converted into UTF-8 for iconv,
which is used on environments using iconv-based UTF-8 such as Linux.
.B (UNIX)
.IP "\fB%JA\fP"
The Kanji code of the string enclosed by this macro
is converted into the Kanji code
which is used in the pathname indicated by the string.
The variables
.BR SJISPATH ,
.BR EUCPATH ,
etc. can specify what kanji code is used in each pathname.
.B (UNIX)
.PP
When no filename parameter,
such as
.B %C
and
.BR %T ,
is taken with the result to expand parameter macros in a command macro,
the filename on the cursor position is automatically added
to the last of expanded string,
as
.I ./filename
form.
This addition is not done,
in case of the input string for executing command,
or when
.B %N
macro is specified.
.SS Customize
You can customize
.B fd
as the following ways.
If you specify some configuration in multiple ways overlapped,
it is prior in this order.
.RS 3
.IP "\fBExecuting builtin commands with EXECUTE_SH\fP" 10
You can execute builtin commands for each registration for
the internal variable definition,
the environment variable definition,
the alias definition,
the function definition,
the key binding,
the keymap changing,
the launcher registration,
the archiver command registration,
and the floppy drive registration.
.IP "\fBCustomizer\fP"
.B EDIT_CONFIG
command is available for
the internal variable definition,
the key binding,
the keymap changing,
the launcher registration,
the archiver command registration,
and the floppy drive registration.
.IP "\fBCommand line options\fP"
You can specify the command line options as
.RI ` \fB\-\fPNAME\fB=\fPvalue '
form,
to define the internal variables.
.IP "\fB.fd2rc\fP"
You can prepare the initial configuration file
.B .fd2rc
on your home directory,
to execute the command which is written in this file,
before the startup of
.BR fd .
You can describe builtin commands and external commands in it
to set up each configuration.
Yet,
when
.B fdsh
is invoked as a login shell,
.B .fdshrc
is read instead of
.BR .fd2rc .
The initial configuration file
.B /etc/fd2rc
which is prepared by a system administrator
is read preceding
.B .fd2rc
and
.BR .fdshrc .
If this file exists,
the initial configurations prepared by a system administrator are valid
unless you intentionally delete them in
.B .fd2rc
and
.BR .fdshrc .
(On MS-DOS version,
these filenames are
.BR $HOME\efd2.rc , " $HOME\efdsh.rc"
and
.BR ~FD\efd2rc .)
.IP "\fBEnvironment variables\fP"
Any valid variable name as the internal variable
can be valid to be defined as the environment variable in advance.
But the internal variable is always prior to the environment variable in
.BR fd .
When the same named environment variable is used in another application,
you can also use the name which
.B FD_
is prefixed to each environment variable for
.B fd
only.
This environment variable with
.B FD_
is always prior to the environment variable without it,
then the definition of the environment variable with
.B FD_
is prior to the definition of the internal variable without
.BR FD_ .
.RE
.SS Customizer
.B EDIT_CONFIG
command invokes the customizer to set up configurations interactively.
You can select the category with the right/left cursor key,
and select the item with the up/down cursor key,
and change its content with
.RB [ Return ].
When you finish to change,
exit from the customizer with
.RB [ Esc ].
The following categories are prepared.
.PD 0
.PP
.RS 3
.IP "\fBVariables\fP" 10
Change the value of internal variables.
The input method is different with the variable,
then you should input following the guidance on screen.
.IP "\fBKey bind\fP"
Change the command bound to each key.
When you newly bind a command to the key with no binding,
you should select "NewEntry".
If you select "Delete bind",
the existent key binding is deleted.
.IP "\fBKey map\fP"
Change the key code mapping for each special key.
If you push
.RB [ Esc ]
when you are prompted to push the key,
the existent key mapping is deleted.
.B (UNIX)
.IP "\fBLauncher\fP"
Change the launcher registration for each extension.
When you newly register a launcher for the extension with no registration,
you should select "NewEntry".
If you input a null line when you input a command for the launcher,
the existent launcher registration is deleted.
.IP "\fBArchiver\fP"
Change the archiver command registration for each extension.
When you newly register a archiver command
for the extension with no registration,
you should select "NewEntry".
If you input a null line both when you input a command for pack/unpack,
the existent archiver command registration is deleted.
.IP "\fBDOS drive\fP"
Change the floppy drive registration.
When you newly register a floppy drive
for the drive name with no registration,
you should select "NewEntry".
If you input a null line when you input a device name,
the existent floppy drive registration is deleted.
.B (UNIX)
.IP "\fBSave\fP"
Save the configurations changed with the customizer into a file,
or cancel configurations to restore to the previous state.
.RS 10
.IP Cancel 10
Cancel the changed configurations within the specified categories,
and restore to the state before the customizer is invoked.
.IP Clear
Cancel all the configurations within the specified categories,
and restore to the default state.
.IP Load
Load configurations from the specified file.
.IP Save
Save all the configurations within the specified categories
to the specified file.
.IP Overwrite
Overwrite all the configurations within the specified categories
to the specified existent file.
The original configurations which has existed in the file are parsed,
and the configuration for the same target is overwritten at the same place
as possible.
The configurations which are not set up at present
and the configurations which are not supported by the customizer
are remains as it is.
.PD
.PP
When you specify the range of categories,
all categories are selected by default,
then you should turn on/off each selection with
.RB [ Space ]
and decide with
.RB [ Return ].
.RE
.RE
If you try to exit from the customizer without saving
after changing any configuration,
you will be confirmed whether if it is right to exit without saving.
While the changed configurations themselves are valid
even if you exit without saving,
when you want them to be valid in the next invoked
.BR fd ,
you must save them into the initial configuration file.
.SH ENVIRONMENT VARIABLES
The following environment variables are valid in
.BR fd .
These environment variables can be valid
if they are defined as the internal variables.
You can specify them as the command line options in
.RI ` \fB\-\fPNAME\fB=\fPvalue '
form.
But the variables followed by \(** cannot be use with the prefix
.B FD_
as the environment variables.
.IP "\fBADJTTY\fP" 14
Reset the terminal mode forcedly to the normal state,
when
.B fd
is finished.
Invoking
.B fd
can adjust the terminal rightly from the state displaying broken characters.
Any value except
.B 0
and null effects valid.
.B (UNIX)
.IP "\fBANSICOLOR\fP"
Colorize the file display.
When the terminal which you use supports the color control escape sequence
of ANSI standard,
each file is displayed with color according to its file type.
If the value is
.BR 1 ,
it is colorized.
If the value is
.BR 2 ,
the background color is forced to be black,
for the case that the foreground color is the same as the background color
and indistinguishable.
If the value is
.BR 3 ,
the foreground color is forced to be black.
.IP "\fBANSIPALETTE\fP"
Specify color palette according to file type
when the file display is colorized.
This variable value consists of a numeric value whose maximum columns are
.B 11
columns.
The number of each column shows a color number,
which specifies the color of file type corresponding with its column.
The following are correspondence of the column number to the file type.
.RS 18
.ta 0.5i
.nf
\fB1\fP normal file
\fB2\fP background
\fB3\fP directory
\fB4\fP unwritable file
\fB5\fP unreadable file
\fB6\fP symbolic link
\fB7\fP socket (or system file on MS-DOS)
\fB8\fP FIFO (or label on MS-DOS)
\fB9\fP block device
\fB10\fP character device
\fB11\fP executable file
.fi
.RE
.RS
The following are the meaning of color number specified on each column.
.RE
.RS 18
.ta 0.5i
.nf
\fB0\fP black
\fB1\fP red
\fB2\fP green
\fB3\fP yellow
\fB4\fP blue
\fB5\fP magenta
\fB6\fP cyan
\fB7\fP white
\fB8\fP default color for foreground
\fB9\fP default color for background
.fi
.RE
.RS
The color number
.B 8
is forced to be black,
if the value of
.B ANSICOLOR
the variable is
.BR 3 .
The color number
.B 9
is forced to be black,
if the value of
.B ANSICOLOR
the variable is
.BR 2 .
.RE
.RS
When the columns are less than
.B 11
or this variable is not set,
the standard color palette will be applied
for the file type corresponding with the following columns.
The standard color palette is described with the above color number as
.BR 89624351888 .
.RE
.IP "\fBAUTOUPDATE\fP"
Specify the interval in seconds to update automatically the browser screen or the tree screen.
When the key input idles for the specified seconds,
the current information of file list will be updated.
If this value is
.BR 0 ,
the screen will never updated automatically.
The default value is
.BR 0 .
.IP "\fBBASICCUSTOM\fP"
Limit the internal variables for configuration only to basic variables in the customizer,
to hide advanced variables.
Any value except
.B 0
and null effects valid.
.IP "\fBCDPATH\fP\(**"
Specify the search path
when an argument of
.B cd
the builtin command does not start with
.BR / .
You can specify multiple paths separating with
.RB ' : '.
No search path is specified by default.
.IP "\fBCOLUMNS\fP\(**"
The variable for the columns of a terminal screen.
If some value is set,
this value will be replaced automatically
according to changing the screen size.
If no value is set,
this value will remain unset.
.IP "\fBCOMSPEC\fP"
Specify the shell used to invoke a batch file.
If undefined,
the shell defined by
.B SHELL
the internal variable or \eCOMMAND.COM is used.
.B (DOS)
.IP "\fBCOPYCMD\fP\(**"
Specify the default options used by
.B copy
the builtin command.
.IP "\fBDEFCOLUMNS\fP"
Specify the columns displayed in the screen when
.B fd
is invoked.
The default value is
.BR 2 .
If you specify the value except
.BR 1 ,
.BR 2 ,
.B 3
and
.BR 5 ,
it is ignored.
.IP "\fBDEFKCODE\fP"
Specify the system default Kanji code.
The arguments passed to external commands invoked from
.B fd
will be converted into the specified Kanji code.
When you use macros such as
.B %C
and
.BR %JJ ,
it will be converted into the Kanji code according to each macro.
.BR JIS8 ,
.BR JUNET ,
.BR HEX ,
.BR CAP ,
etc. among them are the Kanji codes used in Samba.
.B (UNIX)
.RS 18
.ta 1.5i
.nf
\fBSJIS\fP, \fBsjis\fP Shift JIS
\fBEUC\fP, \fBeuc\fP EUC-JP
\fBJIS\fP, \fBjis\fP 7bit JIS
\fBJIS8\fP, \fBjis8\fP 8bit JIS
\fBJUNET\fP, \fBjunet\fP ISO-2022-JP
\fBOJIS\fP, \fBojis\fP 7bit JIS (JIS C6226-1978 + roman)
\fBOJIS8\fP, \fBojis8\fP 8bit JIS (JIS C6226-1978 + roman)
\fBOJUNET\fP, \fBojunet\fP ISO-2022-JP (JIS C6226-1978 + roman)
\fBHEX\fP, \fBhex\fP HEX
\fBCAP\fP, \fBcap\fP CAP
\fBUTF8\fP, \fButf8\fP UTF-8
\fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X
\fBUTF8-iconv\fP UTF-8 for iconv
default no convert
.fi
.RE
.IP "\fBDIRCOUNTLIMIT\fP"
Specify the maximum number of files read from the directory
in the tree screen.
When the directory trailed by
.RB ' > '
has no sub directory,
the expanded result is not changed.
If the number of files (including directories) in the directory
is within this value,
the directory with no sub directory is not trailed
.RB ' > '
from the first.
Moreover,
the file list in the directory displayed on the right of screen
is not displayed over this value.
If this value is
.BR 0 ,
you can realize a comfortable operation speed even in the slow machine.
The default value is
.B 50
files.
.IP "\fBDIRCMD\fP\(**"
Specify the default options used by
.B dir
the builtin command.
.IP "\fBDIRHIST\fP"
Specify the maximum number of the directory histories
which can be referred by the directory input line.
The default value is
.BR 50 .
If this value is
.BR 0 ,
you can refer to no directory history.
.IP "\fBDIRHISTFILE\fP"
Specify the name of the directory history file
which can be referred by the directory input line.
Unless you specify it,
the directory history is not loaded nor saved.
The default value is not specified.
.IP "\fBDIRHISTUMASK\fP"
Specify the file creation mask with octal expression
for the directory history file.
It is used only if no existent file exists.
But the mask value set by
.B umask
the builtin command is prior,
then actual mask value is the logical OR of this value and
.B umask
value.
.IP "\fBDISPLAYMODE\fP"
Specify the filename display mode of the file list when
.B fd
is invoked.
Each of the symbolic link mode,
the file type symbol mode and the dot file display mode
can be selected individually.
The default value is
.BR 0 .
The following are specifiable values.
.RS 18
.ta 0.5i 1.75i 3i
.nf
\fB0\fP standard
\fB1\fP SYMLINK
\fB2\fP FILETYPE
\fB3\fP SYMLINK & FILETYPE
\fB4\fP DOTFILE
\fB5\fP SYMLINK & DOTFILE
\fB6\fP FILETYPE & DOTFILE
\fB7\fP SYMLINK & FILETYPE & DOTFILE
.fi
.RE
.RS
Moreover,
on the OS which supports the file flag,
if you specify the value adding
.B 8
to each value,
you can select the file flag display mode.
.RE
.IP "\fBDOSDRIVE\fP"
Validate the access function to the MS-DOS floppy.
If no floppy drive is registered,
this validation cannot make you access the floppy.
Any value except
.B 0
and null effects valid.
.RS
On MS-DOS version,
This definition can make you treat the LFN formed filename
in the old DOS before Ver. 6.xx.
In this case,
you don't have to register any floppy drive.
the access speed may be slow or some functions may be restricted
for the reason to operate the disk I/O not by way of OS.
.RE
.IP "\fBDUMBSHELL\fP"
Don't use any control sequences to edit command line in the internal shell.
In the internal shell,
the cursor addressing of terminal mode is not valid.
In case of some terminal such as a console terminal,
the cursor addressing cannot work correctly in this terminal mode,
and the editing string is displayed incorrectly.
When this variable is valid,
while no control sequence is used to edit command line,
an inefficient cursor addressing will cause restriction of some functions and failure of response.
Any value except
.B 0
and null effects valid.
.IP "\fBEDITMODE\fP"
Specify the edit mode of key input as the string.
The default value is
.BR emacs .
The value except
.BR emacs ,
.B wordstar
and
.B vi
or null are specified,
any control character is not converted and will be sent as it is.
.IP "\fBEDITOR\fP"
Specify the editor command used for editing files.
.IP "\fBENV\fP\(**"
Specify the additional initial configuration file when invoked as
.BR fdsh .
You must specify its filename as fullpath.
When this variable is set,
the initial configuration file is read after
.BR /etc/fd2rc ,
and before
.B .fd2rc
or
.BR .fdshrc .
This value will be ignored if your real and effective UIDs
or real and effective GIDs are different.
.IP "\fBFCEDIT\fP"
Specify the editor command used for
.B fc
the builtin command.
.IP "\fBFD_VERSION\fP"
A version string of the running
.BR fd .
.IP "\fBFNAMEKCODE\fP"
Specify the Kanji code for filename.
Any filename is converted into the specified Kanji code
at the point of accessing the file,
then you can refer to the file which has a Kanji filename
from another machine on network which use a different Kanji code.
The archive browser and
.B browse
the builtin command also refer the specified Kanji code.
.BR JIS8 ,
.BR JUNET ,
.BR HEX ,
.BR CAP ,
etc. among them are the Kanji codes used in Samba.
.B (UNIX)
.RS 18
.ta 1.5i
.nf
\fBSJIS\fP, \fBsjis\fP Shift JIS
\fBEUC\fP, \fBeuc\fP EUC-JP
\fBJIS\fP, \fBjis\fP 7bit JIS
\fBJIS8\fP, \fBjis8\fP 8bit JIS
\fBJUNET\fP, \fBjunet\fP ISO-2022-JP
\fBOJIS\fP, \fBojis\fP 7bit JIS (JIS C6226-1978 + roman)
\fBOJIS8\fP, \fBojis8\fP 8bit JIS (JIS C6226-1978 + roman)
\fBOJUNET\fP, \fBojunet\fP ISO-2022-JP (JIS C6226-1978 + roman)
\fBHEX\fP, \fBhex\fP HEX
\fBCAP\fP, \fBcap\fP CAP
\fBUTF8\fP, \fButf8\fP UTF-8
\fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X
\fBUTF8-iconv\fP UTF-8 for iconv
default no convert
.fi
.RE
.IP "\fBFREQFILE\fP"
Specify the translation frequency file
for the users Kana-Kanji translation learning.
If the filename is not defined,
the frequency information will not be saved nor be referred.
The default value is
.BR ~/.fd_freq .
.B (UNIX)
.IP "\fBFREQUMASK\fP"
Specify the file creation mask with octal expression
for the translation frequency file
for the users Kana-Kanji translation learning.
The updated translation frequency file will be rebuilt,
not be overwritten,
so that it is used even if existent file exists.
But the mask value set by
.B umask
the builtin command is prior,
then actual mask value is the logical OR of this value and
.B umask
value.
.B (UNIX)
.IP "\fBFTPADDRESS\fP"
Specify the mail address used as the password for anonymous FTP,
when the URL drive connects the FTP host.
The default value is
.BR FDclone@ .
.B (UNIX)
.IP "\fBFTPLOGFILE\fP"
Specify the filename to which communication logs are outputted,
when the URL drive communicates with the FTP host.
If it is not specified as fullpath nor you don't prepare the directory in which the log file is stored,
no log will be outputted.
.B (UNIX)
.IP "\fBFTPPROXY\fP"
Specify the URL used as the proxy server,
when the URL drive connects the FTP host.
The URL format is \fIscheme\fR\fB://\fP[\fIuser\fR[\fB:\fP\fIpassword\fR]\fB@\fP]\fIhost\fR[\fB:\fP\fIport\fR].
You can specify
.B ftp
or
.B http
as
.IR scheme .
You can specify account information to connect the proxy server as
.I user
and
.IR password .
The default value is not specified.
.B (UNIX)
.IP "\fBFUNCLAYOUT\fP"
Specify the layout of the function line,
as the form of
.I n
* 100 +
.IR size .
.I N
means the number of function keys to be displayed in the function line.
.I Size
means the block size of function keys to be displayed.
The default value is
.BR 1005 .
(It means 10 function keys will be displayed,
5 of which are grouped.)
.IP "\fBHIDEPASSWD\fP"
Suppress displaying
.B *
as a replacement for the inputted letter,
when the URL drive requires you to input a password.
Any value except
.B 0
and null effects valid.
.B (UNIX)
.IP "\fBHISTFILE\fP"
Specify the name of the command history file
which can be referred by
.B EXECUTE_FILE
and
.BR EXECUTE_SH .
Unless you specify it,
the command history is not loaded nor saved.
The default value is
.BR ~/.fd_history .
(On MS-DOS version,
The default value is
.BR $HOME\efd.hst .)
.IP "\fBHISTSIZE\fP"
Specify the maximum number of the command histories
which can be referred by
.B EXECUTE_FILE
and
.BR EXECUTE_SH .
The default value is
.BR 50 .
If this value is
.BR 0 ,
you can refer to no command history.
.IP "\fBHISTUMASK\fP"
Specify the file creation mask with octal expression
for the command history file.
It is used only if no existent file exists.
But the mask value set by
.B umask
the builtin command is prior,
then actual mask value is the logical OR of this value and
.B umask
value.
.IP "\fBHOME\fP\(**"
Specify the default value
when no argument of
.B cd
the builtin command is specified.
When invoked as a login shell,
if this variable is specified
that directory becomes the current directory,
otherwise your home directory is automatically defined as this value.
.IP "\fBHTMLLOGFILE\fP"
Specify the filename to which received HTML data log are outputted,
when the URL drive communicates with the HTTP host.
If it is not specified as fullpath nor you don't prepare the directory in which the log file is stored,
no log will be outputted.
.B (UNIX)
.IP "\fBHTTPLOGFILE\fP"
Specify the filename to which communication logs are outputted,
when the URL drive communicates with the HTTP host.
If it is not specified as fullpath nor you don't prepare the directory in which the log file is stored,
no log will be outputted.
.B (UNIX)
.IP "\fBHTTPPROXY\fP"
Specify the URL used as the proxy server,
when the URL drive connects the HTTP host.
The URL format is \fIscheme\fR\fB://\fP[\fIuser\fR[\fB:\fP\fIpassword\fR]\fB@\fP]\fIhost\fR[\fB:\fP\fIport\fR].
You can specify
.B http
as
.IR scheme .
You can specify account information to connect the proxy server as
.I user
and
.IR password .
The default value is not specified.
.B (UNIX)
.IP "\fBIFS\fP\(**"
Specify the internal field separators.
They are used in
.B EXECUTE_SH
to separate command and arguments.
Space, tab and newline are specified by default.
.IP "\fBIGNORECASE\fP"
Ignore uppercase/lowercase when filenames are compared.
Any value except
.B 0
and null effects valid.
.B (UNIX)
.IP "\fBIMEBUFFER\fP"
Specify whether if the Kana-Kanji translation table is held on memory or not.
It will be fast to translate strings from Kana to Kanji.
You should set this if you have enough memory.
The following are specifiable values.
.B (UNIX)
.RS 18
.ta 0.5i 1i
.nf
\fB0\fP not hold on memory
\fB1\fP only the Hinsi information table
\fB2\fP also includes the index tables
\fB3\fP hold all tables
.fi
.RE
.IP "\fBIMELEARNING\fP"
Specify the learning level with the translation frequency file
for the users Kana-Kanji translation learning.
The larger value will increase the importance of the frequency information.
If the value is
.BR 0 ,
the frequency information is only saved,
without any reference.
The default value is
.BR 16 .
.B (UNIX)
.IP "\fBIMEKEY\fP"
Specify the key to toggle the direct input mode and the Kana-Kanji IME mode when you input some strings.
You can describe the same key name as
.B bind
command.
The default value is not specified.
.B (UNIX)
.IP "\fBINHERITCOPY\fP"
Inherit the destination timestamp from the source timestamp
when
.B COPY_FILE
command is executed.
Any value except
.B 0
and null effects valid.
.B (UNIX)
(On MS-DOS version,
the destination timestamp is always inherited,
if this variable is effective or not.)
.IP "\fBINPUTKCODE\fP"
Specify the Kanji code for input from keyboard.
When the value except the following is specified,
the Kanji code specified in compile is valid.
.B (UNIX)
.RS 18
.ta 1.5i
.nf
\fBSJIS\fP, \fBsjis\fP Shift JIS
\fBEUC\fP, \fBeuc\fP EUC-JP
\fBUTF8\fP, \fButf8\fP UTF-8
\fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X
\fBUTF8-iconv\fP UTF-8 for iconv
.fi
.RE
.IP "\fBLANGUAGE\fP"
Specify the language for display character.
It means not only each messages displayed by
.BR fd ,
but also a Kanji code of filename to be converted.
The following is the kind of languages,
it doesn't have to be the string itself and is enough to contain the string,
the value of
.B LANG
the environment variable also can be used.
.BR JIS8 ,
.BR JUNET ,
etc. among them are the Kanji codes used in Samba.
.RS 18
.ta 1.5i
.nf
\fBSJIS\fP, \fBsjis\fP Shift JIS
\fBEUC\fP, \fBeuc\fP EUC-JP
\fBJIS\fP, \fBjis\fP 7bit JIS
\fBJIS8\fP, \fBjis8\fP 8bit JIS
\fBJUNET\fP, \fBjunet\fP ISO-2022-JP
\fBOJIS\fP, \fBojis\fP 7bit JIS (JIS C6226-1978 + roman)
\fBOJIS8\fP, \fBojis8\fP 8bit JIS (JIS C6226-1978 + roman)
\fBOJUNET\fP, \fBojunet\fP ISO-2022-JP (JIS C6226-1978 + roman)
\fBUTF8\fP, \fButf8\fP UTF-8
\fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X
\fBUTF8-iconv\fP UTF-8 for iconv
\fBen\fP, \fBC\fP, \fBPOSIX\fP English (message only)
default no convert
.fi
.RE
.RS
(On MS-DOS version,
only the English is valid.)
.RE
.IP "\fBLINENO\fP\(**"
Indicate the current line number.
When not in a script nor function,
this value cannot be guaranteed to make sense.
If you
.B unset
or reset this value,
this variable will lose its special meaning to be treated as a general variable.
.IP "\fBLINES\fP\(**"
The variable for the lines of a terminal screen.
If some value is set,
this value will be replaced automatically
according to changing the screen size.
If no value is set,
this value will remain unset.
.IP "\fBLOGFILE\fP"
Specify the log filename with the level spacified by
.B LOGLEVEL
or
.BR ROOTLOGLEVEL .
If it is not specified as fullpath,
it will be regarded as the path under your home directory.
You must prepare the directory in which the log file is stored,
because any directories are not created automatically.
The default value is not specified.
.IP "\fBLOGLEVEL\fP"
Specify the priority for the log contents.
The default value is
.BR 0 .
.RS 18
.ta 0.8i
.nf
\fB0\fP no log
\fB1\fP only warning such as writing
\fB2\fP notice such as changing, and over
\fB3\fP info. such as refering, and over
>= \fB4\fP debug level, and over
.fi
.RE
.RS
The same operation can result as an error to output the log in the lower priority by 1 level.
.RE
.IP "\fBLOGSIZE\fP"
Specify the maximum kilobyte size for the log file specified by
.BR LOGFILE .
If the size exceeds this value,
the last log file will be renamed as the filename followed by the extension
.B .old
to create another new log file.
The default value is
.BR 1024 (1MB).
If this value is
.BR 0 ,
the log file will not be renamed.
.IP "\fBLOOPCURSOR\fP"
Loop a cursor moving within the same page,
when you move a cursor.
Any value except
.B 0
and null effects valid.
.IP "\fBMAIL\fP\(**"
Specify the spool filename when the internal shell will check new mails.
If
.B MAILPATH
is set,
it is prior to this.
.B (UNIX)
.IP "\fBMAILCHECK\fP\(**"
Specify the interval of checking new mails in seconds,
for the spool files specified by
.B MAILPATH
or
.BR MAIL .
The default value is
.B 600
seconds.
If this value is
.BR 0 ,
it will be checked before each prompt.
.B (UNIX)
.IP "\fBMAILPATH\fP\(**"
Specify the multiple spool filenames,
as the list separated by
.BR : ,
when the internal shell will check new mails.
The any specified files will be checked.
Each filenames can be followed by
.B %
and a arrival message of new mails.
The default message is
.BR "you have mail\^" .
.B (UNIX)
.IP "\fBMESSAGELANG\fP"
Specify the language for display character.
The language of messages specified by this will be prior to the one specified by
.BR LANGUAGE .
When the message is Japanese,
the Kanji code will be defined by the value of
.BR LANGUAGE .
The following is the kind of languages,
it doesn't have to be the string itself and is enough to contain the string,
the value of
.B LANG
the environment variable also can be used.
Otherwise,
In case of some additional message catalogs are prepared,
you can specify its extension as the catalog name for
.B MESSAGELANG
to replace messages.
.RS 18
.ta 1.5i
.nf
\fBen\fP, \fBC\fP, \fBPOSIX\fP English
\fBja\fP Japanese
default the value of \fBLANGUAGE\fP
.fi
.RE
.IP "\fBMINFILENAME\fP"
Specify the minimum character length of filename display area
in the file list.
When the area enough to be specified here cannot be obtained,
the information is reduced in the order of UID, GID, timestamp, size.
The default value is
.B 12
characters.
.IP "\fBOPTARG\fP\(**"
An option argument is substituted in
.B getopts
the builtin command.
.IP "\fBOPTIND\fP\(**"
Specify the index of the next parameter in
.B getopts
the builtin command.
.IP "\fBPAGER\fP"
Specify the pager command used for viewing files.
.IP "\fBPATH\fP\(**"
Specify the search path for executing external commands.
You can specify multiple paths separating with
.RB ' : '.
.IP "\fBPPID\fP\(**"
Indicate the process ID of the parent proccess for
.B fd
which is invoked first.
.B (UNIX)
.IP "\fBPRECEDEPATH\fP"
Specify the file preceding function,
which displays only filenames before obtaining their file information,
for the directory which has a lot of files like as /dev.
You can specify multiple pathnames separating with
.RB ' : '.
You are enough to specify only the top directory
where you want to realize the file preceding function,
then the file preceding function is valid
in all of the directories under that directory.
When the file preceding function is effective,
any files are not sorted in that directory,
and file information is obtained file by file while waiting the key input.
No pathname is specified by default.
.IP "\fBPRECOPYMENU\fP"
Display the menu in advance,
which ask you what do you want with the same named files and the restricted files,
when you copy, move, or delete multiple files.
In case of too many target files,
it avoids the occurrence of query after waiting for a moment.
Any value except
.B 0
and null effects valid.
.IP "\fBPROGRESSBAR\fP"
Display the progress bar,
which indicates the progress,
when you copy, move, or delete files.
It needs the time to calculate the progress,
to make the processing time a little longer than no progress bar.
Any value except
.B 0
and null effects valid.
.IP "\fBPS1\fP"
Specify the prompt string of input line in
.BR EXECUTE_SH .
The default value is "\fB$\fP\|\ \|".
The following escape sequences are available.
.RS 18
.ta 0.5i
.nf
\fB\eu\fP username \fB(UNIX)\fP
\fB\eh\fP hostname \fB(UNIX)\fP
\fB\eH\fP hostname (including domain name) \fB(UNIX)\fP
\fB\ew\fP fullpath of current directory
\fB\e~\fP fullpath of current directory
(to simplify home directory with \fB~\fP)
\fB\eW\fP current directory name
\fB\e!\fP command history number
\fB\e$\fP if UID is 0, a \fB#\fP, otherwise a \fB$\fP \fB(UNIX)\fP
\fB\e[\fP beginning of non-printing sequence
(terminal control character etc.)
\fB\e]\fP ending of non-printing sequence
\fB\ee\fP ESC (\e033)
\fB\e\fP\fIooo\fR character indicated by the octal \fIooo\fR
\fB\e\e\fP \e itself
.fi
.RE
.IP "\fBPS2\fP"
Specify the prompt string when more continuous input is needed in
.BR EXECUTE_SH .
The default value is "\fB>\fP\|\ \|".
.IP "\fBPS4\fP\(**"
Specify the prompt string with which command strings are displayed
when you do
.B set
.BR -x .
.IP "\fBPTYINKCODE\fP"
Specify the Kanji code for the string passed to the pseudo terminal.
The string,
which is converted from the Kanji code specified by
.B INPUTKCODE
to the Kanji code specified by this command,
is inputted to any processes running on the pseudo terminal.
This variable has the individual value for each pseudo terminal,
so that you should change value of the variable on the pseudo terminal
to change the input Kanji code of the pseudo terminal running already.
.B (UNIX)
.RS 18
.ta 1.5i
.nf
\fBSJIS\fP, \fBsjis\fP Shift JIS
\fBEUC\fP, \fBeuc\fP EUC-JP
\fBUTF8\fP, \fButf8\fP UTF-8
\fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X
\fBUTF8-iconv\fP UTF-8 for iconv
default no convert
.fi
.RE
.IP "\fBPTYMENUKEY\fP"
Specify the key to open the pseudo terminal menu while you are handling the pseudo terminal.
You can describe the same key name as
.B bind
command.
You can select the following items in the pseudo terminal menu:
"SendAsIs", "InputCode", "Break", "NextWindow" and "Kanji".
Each item means respectively:
sending the pseudo terminal menu key as is,
inputting the key name to be sent,
terminating forcedly the process running in the pseudo terminal,
changing to the next window,
invoking the Kana-Kanji IME.
In "InputCode",
you can use the key name like as
.B bind
command,
and also the Kanji code number used in the Kana-Kanji IME mode.
But you cannot select "NextWindow" in the non-split window mode.
The default value is not specified.
.B (UNIX)
.IP "\fBPTYMODE\fP"
Use the pseudo terminal to invoke external commands.
In the split window mode,
the independent pseudo terminals for every windows will be opened and enable you to handle simultaneously multiple external commands via terminals.
If the terminal in use can not provide some functions required for the terminal emulation,
the pseudo terminal may not work correctly.
Any value except
.B 0
and null effects valid.
.B (UNIX)
.IP "\fBPTYOUTKCODE\fP"
Specify the Kanji code for the string passed from the pseudo terminal.
The string,
which is converted from the Kanji code specified by this command to the Kanji code specified by
.BR LANGUAGE ,
is displayed from any processes running on the pseudo terminal.
This variable has the individual value for each pseudo terminal,
so that you should change value of the variable on the pseudo terminal
to change the output Kanji code of the pseudo terminal running already.
.B (UNIX)
.RS 18
.ta 1.5i
.nf
\fBSJIS\fP, \fBsjis\fP Shift JIS
\fBEUC\fP, \fBeuc\fP EUC-JP
\fBUTF8\fP, \fButf8\fP UTF-8
\fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X
\fBUTF8-iconv\fP UTF-8 for iconv
default no convert
.fi
.RE
.IP "\fBPTYTERM\fP"
Specify the value of
.B TERM
the environment variable to be passed to external commands,
when you use the pseudo terminal.
Some
.BR termcap (5)
or
.BR terminfo (5)
may cause unexpected behavior of the pseudo terminal,
you should specify the effective terminal name in your environment.
The default value is
.BR vt100 .
.B (UNIX)
.IP "\fBPWD\fP\(**"
The variable for the current directory with the absolute representation.
If some value is set,
this value will be replaced automatically
according to changing the current directory.
If no value is set,
this value will remain unset.
If this is passed as an environment variable when invoked,
and this value and the current directory indicate the same directory logically,
then it is used as the default value for the current directory.
It is useful
when you want to specify the logical pathname following symbolic links.
.IP "\fBROOTLOGLEVEL\fP"
Specify the priority for the log contents of the super user.
The default value is
.BR 1 .
.B (UNIX)
.RS 18
.ta 0.8i
.nf
\fB0\fP no log
\fB1\fP only warning such as writing
\fB2\fP notice such as changing, and over
\fB3\fP info. such as refering, and over
>= \fB4\fP debug level, and over
.fi
.RE
.RS
The same operation can result as an error to output the log in the lower priority by 1 level.
.RE
.IP "\fBRRPATH\fP"
Display files under the directory mounted by CD-ROM,
with the pseudo ISO 9660 RockRidge Extension,
for the OS which cannot support RockRidge Extension.
You can specify multiple mount points separating with
.RB ' : '.
You are enough to specify only the top directory mounted by CD-ROM,
then the pseudo RockRidge Extension function is valid
in all of the directories under that directory.
This is no more than a pseudo extension,
which only replaces filenames according to TRANS.TBL,
and cannot handle some CD-ROM which has an inconsistent TRANS.TBL.
No mount point is specified by default.
.IP "\fBSAVEDIRHIST\fP"
Specify the maximum number saved to the directory history file.
The default value is
.BR 50 .
If this value is
.BR 0 ,
no directory history file is saved.
.IP "\fBSAVEHIST\fP"
Specify the maximum number saved to the command history file.
The default value is
.BR 50 .
If this value is
.BR 0 ,
no command history file is saved.
.IP "\fBSECOND\fP"
Display the second in the clock of the title line.
But the clock is adjusted correctly every
.B 10
seconds,
and some gap from the real time will be occurred in this span.
Any value except
.B 0
and null effects valid.
.IP "\fBSHELL\fP"
When the filename part of this specified value is
.B rfd
or
.BR rfdsh ,
the shell becomes a restricted shell
as well as
.B \-r
option when invoked.
This variable also specify the shell which can be invoked from
.BR EXECUTE_SH .
.IP "\fBSIZEINFO\fP"
Display the file size information line at the top of screen.
The total size displayed here is not the sum of bytes
but the sum of disk block size occupied actually.
Any value except
.B 0
and null effects valid.
.IP "\fBSIZEUNIT\fP"
Represent the huge file size which overflows the displayed digit
with the prefix of the SI unit,
as "KB", "MB" and so on.
Any value except
.B 0
and null effects valid.
.IP "\fBSORTTREE\fP"
Sort directories in the tree screen.
The sorted type specified by
.B SORT_DIR
is used,
but they can not be sorted when it is "by size" or "by timestamp".
The directory included in the current directory path
is always placed on the top of directory tree,
with no regard to the sorted type.
Any value except
.B 0
and null effects valid.
.IP "\fBSORTTYPE\fP"
The file list in the browser screen is not sorted by default,
but placed in order registered in the directory.
This variable specify it to be sorted by default.
The following are specifiable values.
.RS 18
.ta 0.5i 1i 2i 2.5i
.nf
\fB0\fP not sort
\fB1\fP by filename \fB9\fP by filename(reverse)
\fB2\fP by extension \fB10\fP by extension(reverse)
\fB3\fP by size \fB11\fP by size(reverse)
\fB4\fP by timestamp \fB12\fP by timestamp(reverse)
\fB5\fP by length \fB13\fP by length(reverse)
\fB100\-113\fP keep the last sorted type
\fB200\-213\fP keep it also in archive browser
.fi
.RE
.RS
If you specify the value of 100-113,
it is sorted according to the value indicated by lower 2 digits
just after invoked,
the last specified sorted type is kept when moving directory.
If you specify the value of 200-213,
the last sort type will be kept also after invoking the archive browser.
.RE
.IP "\fBTERM\fP\(**"
Specity the terminal name.
When this value is
.BR dumb ,
.B unknown
or
.BR un ,
it is regarded as the dumb terminal
to suppress any escape sequences in the internal shell
in spite of
.BR DUMBSHELL .
If this value does not exist in
.BR termcap (5)
and
.BR terminfo (5)
entry,
it is executable only when it is invoked as
.BR fdsh .
The terminal name will be variable dynamically,
then you can re-specify the suitable one as this value after invoked
for some strange terminal display and key input.
.IP "\fBTHRUARGS\fP"
Pass through the pathnames as is,
which is specified as the startup arguments.
.B Fd
expands the meta character such as
.B ~
and
.B ${#}
in the given pathname by itself,
because the obsolete low-level shell cannot support these expansion extended by POSIX.
.B Fd
can sometimes expand the pathname given by the shell into the unexpected string
as a result of duplicate expansion,
because the latest high-level shell generally support these expansion.
This variable will be suppress the expansion of arguments.
Any value except
.B 0
and null effects valid.
.IP "\fBTMPDIR\fP"
Specify the working directory
where the archiver command temporarily unpack files in the archive file.
The default value is
.BR /tmp .
(On MS-DOS version,
The default value is
.RB ` . '.)
.IP "\fBTMPUMASK\fP"
Specify the file creation mask with octal expression for files and directories created temporarily in
.BR TMPDIR .
But the mask value set by
.B umask
the builtin command is prior,
then actual mask value is the logical OR of this value and
.B umask
value.
.IP "\fBTRADLAYOUT\fP"
Use the traditional screen layout based on the original "FD".
In this layout,
the file size information will be always displayed,
whether
.B SIZEINFO
is set or not.
When the screen width is less than
.B 80
columns,
this specification is invalid.
Any value except
.B 0
and null effects valid.
.IP "\fBUNICODEBUFFER\fP"
Hold the UNICODE translation table on memory.
It will be fast to access the floppy drive and to translate from/to UTF-8.
You should set this if you have enough memory.
Any value except
.B 0
and null effects valid.
.IP "\fBURLDRIVE\fP"
Validate the function of the URL drive.
Any value except
.B 0
and null effects valid.
.B (UNIX)
.IP "\fBURLKCODE\fP"
Specify the Kanji code for filename on the host with the URL drive.
.BR JIS8 ,
.BR JUNET ,
.BR HEX ,
.BR CAP ,
etc. among them are the Kanji codes used in Samba.
.B (UNIX)
.RS 18
.ta 1.5i
.nf
\fBSJIS\fP, \fBsjis\fP Shift JIS
\fBEUC\fP, \fBeuc\fP EUC-JP
\fBJIS\fP, \fBjis\fP 7bit JIS
\fBJIS8\fP, \fBjis8\fP 8bit JIS
\fBJUNET\fP, \fBjunet\fP ISO-2022-JP
\fBOJIS\fP, \fBojis\fP 7bit JIS (JIS C6226-1978 + roman)
\fBOJIS8\fP, \fBojis8\fP 8bit JIS (JIS C6226-1978 + roman)
\fBOJUNET\fP, \fBojunet\fP ISO-2022-JP (JIS C6226-1978 + roman)
\fBHEX\fP, \fBhex\fP HEX
\fBCAP\fP, \fBcap\fP CAP
\fBUTF8\fP, \fButf8\fP UTF-8
\fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X
\fBUTF8-iconv\fP UTF-8 for iconv
default no convert
.fi
.RE
.IP "\fBURLOPTIONS\fP"
Specify communication options,
when the URL drive communicates with the host.
You can select individually whether if PASV, PORT, MDTM, FEAT each commands for the FTP communication are limited or not,
or whether if the exact file information is need or not.
On the HTTP protocol,
you will get the timestamp and size of files with some rounding error in bulk.
If you need the exact information,
the operations by file will spend the more communication time.
The default value is
.BR 0 .
The following are specifiable values.
.B (UNIX)
.RS 18
.ta 0.5i 1.3i 2.1i 2.9i 3.7i
.nf
\fB0\fP standard
\fB1\fP PASV
\fB2\fP PORT
\fB3\fP PASV & PORT
\fB4\fP MDTM
\fB5\fP PASV & MDTM
\fB6\fP PORT & MDTM
\fB7\fP PASV & PORT & MDTM
\fB8\fP FEAT
\fB9\fP PASV & FEAT
\fB10\fP PORT & FEAT
\fB11\fP PASV & PORT & FEAT
\fB12\fP MDTM & FEAT
\fB13\fP PASV & MDTM & FEAT
\fB14\fP PORT & MDTM & FEAT
\fB15\fP PASV & PORT & MDTM & FEAT
\fB16\fP HTTP
\fB17\fP PASV & HTTP
\fB18\fP PORT & HTTP
\fB19\fP PASV & PORT & HTTP
\fB20\fP MDTM & HTTP
\fB21\fP PASV & MDTM & HTTP
\fB22\fP PORT & MDTM & HTTP
\fB23\fP PASV & PORT & MDTM & HTTP
\fB24\fP FEAT & HTTP
\fB25\fP PASV & FEAT & HTTP
\fB26\fP PORT & FEAT & HTTP
\fB27\fP PASV & PORT & FEAT & HTTP
\fB28\fP MDTM & FEAT & HTTP
\fB29\fP PASV & MDTM & FEAT & HTTP
\fB30\fP PORT & MDTM & FEAT & HTTP
\fB31\fP PASV & PORT & MDTM & FEAT & HTTP
.fi
.RE
.IP "\fBURLTIMEOUT\fP"
Specify the timeout in seconds,
when the URL drive communicates with the host.
If the communication from the host is lost for the time specified,
the communication is regarded as invalid and its connection will be shutdown forcedly.
If this value is
.B 0
second,
the timeout operation is invalid to continue waiting response forever.
The default value is
.B 0
second.
.B (UNIX)
.IP "\fBUSEGETCURSOR\fP"
Use the VT100 compatible escape sequence getting the cursor position
in order to get the terminal size.
When the screen size of
.B fd
doesn't correspond with the terminal size,
this variable can be sometimes valid.
On some terminals
which don't support the escape sequence getting the cursor position,
the operation may be stopped.
In this case,
it is continued by inputting 'R' from the keyboard.
Any value except
.B 0
and null effects valid.
.B (UNIX)
.IP "\fBUSESYSLOG\fP"
Send the log to
.BR syslogd (8)
the system logger with the level spacified by
.B LOGLEVEL
or
.BR ROOTLOGLEVEL .
The log priority is LOG_ERR only some errors are caused,
otherwise the log priority is always LOG_INFO.
LOG_USER is used as the facirity if it can be specified.
Any value except
.B 0
and null effects valid.
.B (UNIX)
.IP "\fBWIDEDIGIT\fP"
Widen the displayed digits for the number of pages and files.
The standard displayed digits for the number of pages and files are
.B 2
and
.B 4
respectively.
This expands them into
.B 4
and
.B 5
respectively.
Any value except
.B 0
and null effects valid.
.IP "\fBWRITEFS\fP"
Forbid use of
.B WRITE_DIR
command.
If the value is
.BR 1 ,
the directory is written only when the command is executed intentionally,
and you are not confirmed after arranging the file order.
If the value is
.BR 2 ,
even writing by the command is invalid,
the directory writing is quite forbidden.
.IP "\fBSJISPATH\fP"
.PD 0
.IP "\fBEUCPATH\fP"
.IP "\fBJISPATH\fP"
.IP "\fBJIS8PATH\fP"
.IP "\fBJUNETPATH\fP"
.IP "\fBOJISPATH\fP"
.IP "\fBOJIS8PATH\fP"
.IP "\fBOJUNETPATH\fP"
.IP "\fBHEXPATH\fP"
.IP "\fBCAPPATH\fP"
.IP "\fBUTF8PATH\fP"
.IP "\fBUTF8MACPATH\fP"
.IP "\fBUTF8ICONVPATH\fP"
.IP "\fBNOCONVPATH\fP"
.PD
Specify the Kanji code for filename per directory,
which is prior to
.BR FNAMEKCODE .
You can specify multiple pathnames separating with
.RB ' : '.
You are enough to specify only the top directory
where you want to use the Kanji code,
then you can use the Kanji code
in all of the directories under that directory.
In the directory which is described in
.BR NOCONVPATH ,
no Kanji code is converted ignoring the value of
.BR FNAMEKCODE .
No pathname is specified by default.
.B (UNIX)
.SH MULTI LANGUAGE SUPPORT
.B Fd
processes the Kanji character-set to input/output
as "EUC-JP" or "Shift JIS" according to setting in compile.
The the pathname including Kanji is displayed
in consideration for the 2nd byte character in Kanji.
You can dynamically select Kanji code to input/output
with
.BR LANGUAGE ,
.B INPUTKCODE
and
.B FNAMEKCODE
the internal variable.
You can input Japanese string with the Kana-Kanji IME mode.
You can use Kanji in the command macro and the command string,
but cannot use Kanji as the value of the internal variables.
You cannot use the multibyte symbol character as the meta character,
such as
.RB ' % '
and '\fB"\fP' and so on,
Kanji character is not counted as 1 character in the wildcard search.
And when you give the non-standard Kanji code for the OS to the shell
with the parameter macro such as
.BR %JJ ,
some Kanji is converted into the code including the meta character
such as
.RB ' $ '
and
.RB ' \e '
and so on,
to cause unexpected behavior.
In that case,
you can probably avoid it by quoting the string to be converted with
.BR %' .
.SH AUTHOR
Takashi SHIRAI <shirai@unixusers.net>
.br
The original "FD" for MS-DOS was created and released by
A.Idei <SDI00544@niftyserve.or.jp>
for the first time, in 1989.
.B Fd
was created for UNIX from scratch following that implementation, in 1995.
.SH FILES
.PD 0
.TP 10
.B /etc/fd2rc
The systemwide initial configuration file for
.B fd
.TP
.B ~/.fd2rc
The individual initial configuration file for
.B fd
.TP
.B ~/.fdshrc
The individual initial configuration file for
.B fdsh
.TP
.B ~/.fd_history
The command history file by default
.TP
.B ~/.fd_freq
The translation frequency file by default
for the users Kana-Kanji translation learning
.TP
.B /bin/sh
The user shell when
.B SHELL
the environment variable is undefined
.TP
.B /bin/rm
The command to remove temporary files when abort
.TP
.B /tmp/fd\(**
The temporary directory to unpack the archive file
.TP
.B fd\-unicd.tbl
The UNICODE translation table,
which is installed in the same directory as the executable binary of
.B fd
.TP
.B fd\-dict.tbl
The Kana-Kanji translation dictionary file,
which is installed in the same directory as the executable binary of
.B fd
.TP
.B fd2rc
The systemwide initial configuration file for
.B fd
on MS-DOS version,
which must be prepared in the same directory as the executable binary of
.B fd
.TP
.B $HOME\efd2.rc
The individual initial configuration file for
.B fd
on MS-DOS version
.TP
.B $HOME\efdsh.rc
The individual initial configuration file for
.B fdsh
on MS-DOS version
.TP
.B $HOME\efd.hst
The command history file on MS-DOS version by default
.PD
.SH LIMITATIONS
Some terminals cannot send the input of certain function keys and special keys.
The sequence compatible with
.B VT200
is assigned as the default sequence which is not registered in
.BR termcap (5),
and when the terminal cannot support this,
the key receipt or the screen control
due to be brought by this is not available.
.SH SEE ALSO
.BR sh (1),
.BR echo (1),
.BR test (1),
.BR ls (1),
.BR rm (1),
.BR tar (1),
.BR compress (1),
.BR zcat (1),
.BR gzip (1),
.BR gunzip (1),
.BR lha (1),
.BR login (1),
.BR newgrp (1),
.BR stty (1),
.BR umask (2),
.BR termcap (5),
.BR terminfo (5),
.BR syslogd (8)
.SH BUGS
When files in an archive file are packed with a pathname including ".\|.",
the archive browser cannot work normally.
The symbolic links in an archive file cannot be unpacked individually.
The user interface is cheap.
.SH COPYRIGHT
Copyright (C) 1995-2019 by Takashi SHIRAI
|