⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 acd.1

📁 Unix操作系统minix 2.0源码
💻 1
📖 第 1 页 / 共 5 页
字号:
3143(for)S10 I3292(descr)S10 R3541(is)S3639(the)S3793(same)S4031(as)S4146(used)S4361(for)S4510(the)S10 B-14663(-)S10 B4720(descr)S10 R4980(option.)S2016 V1440(Use)S10 B1628(include)S10 R1973(to)S2082(switch)S2376(in)S2485(different)S2864(front)S3091(ends)S3306(or)S3421(back)S3642(ends,)S3882(or)S3997(to)S4106(call)S4283(a)S4359(shared)S4653(description)S5132(\256le)S2136 V1440(with)S1655(a)S1736(different)S(initialization.)534 2120 A2715(Note)S2947(that)S10 I3134(descr)S10 R3387(is)S3489(only)S3702(evaluated)S4123(the)S4281(\256rst)S4473(time)S4687(the)S10 B4845(include)S10 R5194(is)S2256 V1440(called.)S1766(After)S2015(that)S2201(the)S10 B2359(include)S10 R2708(has)S2877(been)S(replaced)342 3102 A3479(with)S3694(the)S3853(included)S4235(program,)S4637(so)S4762(changing)S5166(its)S2376 V1440(argument)S1845(won't)S2105(get)S(you)150 2253 A2428(a)S2498(different)S2871(\256le.)S2544 V10 B1080(arg)S10 I1250(string)S(...)75 1509 A2664 V10 B1440(Arg)S10 R1644(may)S1853(be)S1984(executed)S2378(in)S2492(the)S(initialization)509 2651 A3196(and)S3377(scanning)S3770(phase)S4036(to)S4151(post)S4355(an)S4487(argument)S4904(scanning)S2784 V1440(rule,)S1649(that's)S1900(all)S2028(the)S2178(command)S2601(itself)S2830(does.)S3091(Like)S3303(an)S10 B3425(if)S10 R3514(that)S3692(fails)S3893(it)S3976(allows)S4266(more)S4500(guards)S4795(to)S4899(share)S5138(the)S2904 V1440(same)S(body.)225 1672 A3072 V10 B1080(transform)S10 I(suffix1)268 1542 A(suffix2)268 1835 A3192 V10 B1440(Transform)S10 R1910(,)S1961(like)S10 B2138(arg)S10 R2283(,)S2334(only)S2538(posts)S2770(a)S2841(rule)S3024(to)S3128(transform)S3546(a)S3617(\256le)S3772(with)S3977(the)S4126(suf\256x)S10 I4382(suf\256x1)S10 R4671(into)S4854(a)S4926(\256le)S5082(with)S3312 V1440(the)S1588(suf\256x)S10 I1842(suf\256x2)S10 R2112(.)S3480 V10 B1080(prefer)S10 I(suffix1)268 1375 A(suffix2)268 1668 A3600 V10 R1440(Tells)S1673(that)S1855(the)S2009(transformation)S2633(rule)S2821(from)S10 I3048(suf\256x1)S10 R3341(to)S10 I3450(suf\256x2)S10 R3743(is)S3841(to)S3950(be)S4076(preferred)S4478(when)S(looking)306 4728 A5066(for)S5216(a)S3720 V1440(transformation)S2067(path)S2274(to)S2386(the)S2543(stop)S2744(suf\256x.)S3057(Normally)S3477(the)S3634(shortest)S3981(route)S4222(to)S4334(the)S4490(stop)S4690(suf\256x)S4952(is)S5052(used.)S3840 V10 B1440(Prefer)S10 R1744(is)S(ignored)307 1839 A2174(on)S2302(a)S10 B2375(combine)S10 R2739(,)S(because)319 2792 A3139(the)S3290(special)S3598(nature)S3878(of)S3990(combines)S4403(does)S4616(not)S4773(allow)S5026(ambi-)S3960 V1440(guity.)S4128 V1440(The)S1631(two)S1816(suf\256xes)S2163(on)S2297(a)S10 B2376(transform)S10 R2847(or)S10 B2965(prefer)S10 R3269(may)S3476(be)S3605(the)S3762(same,)S4028(giving)S4318(a)S4397(rule)S4588(that)S4773(is)S4874(only)S5087(exe-)S4248 V1440(cuted)S1683(when)S1926(preferred.)S4416 V10 B1080(combine)S10 I(suffix-list)375 1469 A(suffix)218 1869 A4536 V10 B1440(Combine)S10 R1860(is)S1955(like)S10 B2134(transform)S10 R2599(except)S2890(that)S3069(it)S3153(allows)S3444(a)S3517(list)S3668(of)S(input)206 3780 A4014(suf\256xes)S4355(to)S4461(match)S4735(several)S5049(types)S4656 V1440(of)S(input)206 1549 A1780(\256les)S1973(that)S2149(must)S2369(be)S2489(combined)S2910(into)S3091(one.)S4824 V10 B1080(scan)S10 R1440(The)S1633(scanning)S2026(phase)S2291(may)S2500(be)S2631(run)S2801(early)S3039(from)S3271(the)S(initialization)509 3430 A3975(phase)S4240(with)S4455(the)S10 B4614(scan)S10 R4840(command.)S4944 V1440(Use)S1629(it)S1717(if)S(you)150 1811 A1992(need)S2213(to)S2322(make)S2571(choices)S2904(based)S3164(on)S3295(the)S3449(arguments)S3899(before)S4188(posting)S4514(the)S4668(transformation)S5064 V1440(rules.)S1711(After)S(running)312 1950 A2287(this,)S10 B2482(scan)S10 R2697(and)S10 B2867(arg)S10 R3037(become)S3375(no-ops.)S5232 V10 B1080(compile)S5352 V10 R1440(Move)S1708(on)S1842(to)S1954(the)S2112(compilation)S2627(phase)S2891(early,)S3153(so)S3277(that)S(you)150 3463 A3648(have)S3873(a)S3953(chance)S4268(to)S4381(run)S4550(a)S4630(few)S4817(extra)S5054(com-)S5472 V1440(mands)S1727(before)S(exiting.)304 2010 A2364(This)S2568(command)S2989(implies)S3310(a)S10 B3380(scan)S10 R3570(.)S5640 V1080(Any)S1282(other)S1518(command)S1943(is)S2039(seen)S2248(as)S2362(a)S8 R2432(UNIX)S10 R2663(command.)S3139(This)S3348(is)S3445(where)S3722(the)S10 B3875(<)S10 R3962(and)S10 B4137(>)S10 R4224(operators)S4629(come)S4877(into)S5063(play.)S5760 V1080(They)S1323(redirect)S1668(standard)S(input)206 2045 A2287(and)S2468(standard)S2845(output)S3137(to)S3251(the)S3410(\256le)S3575(mentioned)S4035(after)S4257(them,)S4519(just)S4700(like)S4887(the)S5046(shell.)S5880 V10 B1080(Acd)S10 R(will)157 1279 A1461(stop)S1653(with)S1857(an)S1977(error)S2199(if)S2286(the)S2434(command)S2855(is)S2947(not)S(successful.)439 3100 A6048 V870(T)S872(Th)S936(he)S988(e)S1076(I)S1078(In)S1114(ni)S1166(it)S1196(ti)S1226(ia)S1256(al)S1303(li)S1333(iz)S1363(za)S1410(at)S1457(ti)S1487(io)S1517(on)S1569(n)S1662(P)S1664(Ph)S1722(ha)S1774(as)S1821(se)S1862(e)S6168 V1080(The)S1276(driver)S1556(starts)S1808(by)S1947(executing)S2377(the)S2539(program)S2919(once)S3148(from)S3384(top)S3552(to)S3670(bottom)S3994(to)S(initialize)353 4112 A4505(variables)S4909(and)S5094(post)S6288 V1080(argument)S1485(scanning)S1867(and)S2037(transformation)S2655(rules.)S6456 V870(T)S872(Th)S936(he)S988(e)S1076(S)S1078(Sc)S1136(ca)S1183(an)S1230(nn)S1282(ni)S1334(in)S1364(ng)S1416(g)S1509(P)S1511(Ph)S1569(ha)S1621(as)S1668(se)S1709(e)S6576 V1080(In)S1196(this)S1373(phase)S1634(the)S1789(driver)S2062(makes)S2351(a)S2428(pass)S2633(over)S2844(the)S2999(command)S3427(line)S3610(arguments)S4061(to)S4171(process)S4505(options.)S4882(Each)S10 B5116(arg)S6696 V10 R1080(rule)S1267(is)S1364(tried)S1579(one)S1754(by)S1883(one)S2057(in)S2164(the)S2316(order)S2558(they)S2760(were)S2986(posted)S3277(against)S3591(the)S3743(front)S3968(of)S4081(the)S4233(argument)S4642(list.)S4844(If)S4941(a)S5015(match)S6816 V1080(is)S1175(made)S1421(then)S1622(the)S1774(matched)S2144(arguments)S2592(are)S2745(removed)S3126(from)S3351(the)S3503(argument)S3912(list)S4064(and)S4238(the)S(arg-body)363 4390 A4782(is)S4878(executed.)S6936 V1080(If)S1179(no)S1310(match)S1587(can)S1757(be)S1882(made)S2130(then)S2333(the)S2486(\256rst)S2673(argument)S3083(is)S3180(moved)S3483(to)S3591(the)S3744(list)S3897(of)S4011(\256les)S(waiting)302 4209 A4541(to)S4649(be)S4774(transformed)S7056 V1080(and)S1250(the)S1398(scan)S1602(is)S1694(restarted.)S7224 V1080(The)S1263(match)S1535(is)S(done)195 1628 A1849(as)S1959(follows:)S2315(Each)S2543(of)S2653(the)S2802(strings)S3096(after)S10 B3308(arg)S10 R3480(must)S3702(match)S3975(one)S4147(argument)S4554(at)S4654(the)S4804(front)S5027(of)S5138(the)S7344 V1080(argument)S1491(list.)S1695(A)S1799(character)S2201(in)S2310(a)S2386(string)S2646(must)S2872(match)S3149(a)S3225(character)S3627(in)S3736(an)S3862(argument)S4273(word,)S4536(a)S4612(subst)S4849(in)S4957(a)S5032(string)S7464 V1080(may)S1285(match)S1563(1)S1645(to)S1755(all)S1888(remaining)S2328(characters)S2770(in)S2880(the)S3036(argument,)S3474(preferring)S3911(the)S4067(shortest)S4413(possible)S4775(match.)S5104(The)S7903 V720(Page)S941(5)S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Page: 6 6BP/slant 0 def/height 0 def480 V10 R720(ACD)S941(\()S983(1)S1041(\))S2696(Eighth)S(Edition)296 2989 A4906(ACD)S5127(\()S5169(1)S5227(\))S960 V(hyphen)295 1080 A1400(in)S1503(a)S1573(argument)S1978(starting)S2305(with)S2509(a)S(hyphen)295 2579 A(cannot)268 2899 A3192(be)S3312(matched)S3678(by)S3803(a)S3873(subst.)S4154(Therefore:)S1128 V10 B1440(arg)S10 B-11610(-)S10 B1667(i)S1296 V10 R1080(matches)S1435(only)S1638(the)S1786(argument)S10 B-12191(-)S10 B2248(i)S10 R2276(.)S1464 V10 B1440(arg)S10 B-11610(-)S10 B1667(O$n)S1632 V10 R1080(matches)S1435(any)S1605(argument)S2010(that)S2186(starts)S2424(with)S10 B-12628(-)S10 B2685(O)S10 R2788(and)S2958(is)S3050(at)S3148(least)S3358(three)S3585(characters)S(long.)203 4020 A4273(Lastly,)S1800 V10 B1440(arg)S10 B-11610(-)S10 B1667(o)S1742($out)S1968 V10 R1080(matches)S10 B-11435(-)S10 B1492(o)S10 R1567(and)S1737(the)S1885(argument)S2290(following)S2706(it,)S2812(unless)S3088(that)S3264(argument)S3669(starts)S3907(with)S4111(a)S(hyphen.)320 4181 A2136 V1080(The)S1268(variable)S10 B1624($)S10 Y1674(*)S1676(*)S10 R1757(is)S1855(set)S1998(to)S2107(all)S2239(the)S2393(matched)S2765(arguments)S3215(before)S3504(the)S(arg-body)363 3658 A4052(is)S4150(executed.)S4590(All)S4751(the)S4906(substs)S5183(in)S2256 V1080(the)S1231(arg)S1388(strings)S1684(are)S1836(set)S1976(to)S2082(the)S2233(characters)S2671(they)S2872(match.)S3196(The)S3380(variable)S10 B3732($>)S10 R3866(is)S3960(set)S4099(to)S4204(null.)S4437(All)S4593(the)S4743(values)S5027(of)S5138(the)S2376 V1080(variables)S1485(are)S1650(saved)S1920(and)S2106(the)S2271(variables)S2677(marked)S3021(local.)S3309(All)S3480(variables)S3886(except)S10 B4191($>)S10 R4340(are)S4506(marked)S4850(read-only.)S2496 V1080(After)S1325(the)S(arg-body)363 1479 A1873(is)S1971(executed)S2360(is)S2458(the)S2612(value)S2861(of)S10 B2975($>)S10 R3112(concatenated)S3668(to)S3776(the)S3929(\256le)S4088(list.)S4291(This)S4500(allows)S4793(one)S4968(to)S5076(stuff)S2616 V1080(new)S1274(\256les)S1468(into)S1651(the)S1801(transformation)S2421(phase.)S2727(These)S2995(added)S3262(names)S3546(are)S3697(not)S3852(evaluated)S(until)184 4265 A4476(the)S4626(start)S4827(of)S4938(the)S5088(next)S2736 V1080(phase.)S2904 V870(T)S872(Th)S936(he)S988(e)S1076(C)S1078(Co)S1147(om)S1199(mp)S1279(pi)S1331(il)S1361(la)S1391(at)S1438(ti)S1468(io)S1498(on)S1550(n)S1643(P)S1645(Ph)S1703(ha)S1755(as)S1802(se)S1843(e)S3024 V1080(The)S1278(\256les)S1488(gathered)S1877(in)S1997(the)S2162(\256le)S2333(list)S2498(in)S2618(the)S2783(scanning)S3182(phase)S3453(are)S3619(now)S3834(transformed)S4363(one)S4550(by)S4692(one)S4879(using)S5138(the)S3144 V1080(transformation)S1705(rules.)S1983(The)S2172(shortest,)S2541(or)S2656(preferred)S3058(route)S3296(is)S3394(computed)S3821(for)S(each)185 3970 A4186(\256le)S4346(all)S4478(the)S4632(way)S4831(to)S4940(the)S5094(stop)S3264 V1080(suf\256x.)S1389(Each)S1621(\256le)S1780(is)S1877(transformed)S(until)184 2394 A2608(it)S2694(lands)S2936(at)S3039(the)S3192(stop)S3389(suf\256x,)S3674(or)S3789(at)S3893(a)S3969(combine)S4346(rule.)S4584(After)S4829(a)S4905(while)S5160(all)S3384 V1080(\256les)S1273(are)S1422(either)S1677(fully)S1892(transformed)S2404(or)S2513(at)S2611(a)S2681(combine)S3052(rule.)S3552 V1080(The)S1263(driver)S(chooses)318 1530 A1874(a)S1945(combine)S2317(rule)S2500(that)S2677(is)S2770(not)S2924(on)S3050(a)S3121(path)S3320(from)S3542(another)S3870(combine)S4242(rule)S4425(and)S4597(executes)S4971(it.)S5104(The)S3672 V1080(\256le)S1236(that)S1414(results)S1704(is)S1798(then)S1998(transformed)S(until)184 2512 A2723(it)S2806(again)S3051(lands)S3289(at)S3388(a)S3459(combine)S3831(rule)S4014(or)S4124(the)S4273(stop)S4466(suf\256x.)S4771(This)S4976(contin-)S3792 V1080(ues)S(until)184 1239 A1448(all)S1574(\256les)S1767(are)S1916(at)S2014(the)S2162(stop)S2354(suf\256x)S2608(and)S2778(the)S2926(program)S3292(exits.)S3960 V1080(The)S1263(paths)S(through)312 1501 A1839(transform)S2257(rules)S2479(may)S2678(be)S(ambiguous)440 2799 A3265(and)S3436(have)S3652(cycles,)S3955(they)S(will)157 4154 A4337(be)S4459(resolved.)S4877(But)S5049(paths)S4080 V(through)312 1080 A1425(combines)S1843(must)S2071(be)S(unambiguous,)565 2199 A(because)319 2797 A3149(of)S3265(the)S3420(many)S3675(paths)S3919(from)S4147(the)S4302(different)S4682(\256les)S4882(that)S5065(meet)S4200 V1080(there.)S1366(A)S1473(description)S1954(\256le)S(will)157 2118 A2310(usually)S2635(have)S2860(only)S3073(one)S3253(combine)S3634(rule)S3826(for)S3979(the)S4137(loader.)S4474(However)S4879(if)S(you)150 4976 A

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -