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

📄 ash.1

📁 操作系统设计与实现源码
💻 1
📖 第 1 页 / 共 5 页
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:03:10 1996%%Pages: (atend)%%DocumentFonts: (atend)/devps 180 dict def devps begin/res 10.000000 def/y_offset 843 def/X{exch}bind def/mm {transform round X round X itransform} bind def/r{rmoveto}bind def/m{moveto}bind def/l{lineto}bind def/rl{rlineto}bind def/st{stroke}bind def/gs{gsave}bind def/gr{grestore}bind def/cp{currentpoint}bind def/np{newpath}bind def/ct{curveto}bind defsystemdict /setpacking known { /savepacking currentpacking def true setpacking } if/m0{0 0 moveto}bind def/xc{//res div}bind def/yc{//res neg div //y_offset add}bind def/lc{yc X xc X l st}bind def/mc{yc X xc X m}bind def/el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}bind def/ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}bind def/sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}bind def/V{//res neg div //y_offset addcurrentpoint pop Xm}bind def/H{//res div0 transform X round X itransform popcurrentpoint X popmoveto}bind def/h{//res div 0 r}bind def/v{//res neg div 0 X r}bind def/S{X H show}bind def/A{H //res div 1 index stringwidth pop sub 1 index length div 0 3 2 roll ashow}bind def/psize 10 def/height 0 def/cheight { height 0 ne { height } { psize } ifelse } bind def/slant 0 def/FF{findfont X dup 30 div 0 mm pop setlinewidth /psize X def    [psize 0 cheight slant sin slant cos div mul cheight 0 0]    makefont setfont}bind def/shade{gs /dy X def /dx X def np m 0 /dy rl /dx 0 rl 0 /dy neg rl /dx neg 0 rl closepath .9 setgray fillgr}bind def1 setlinecap/resolution res 72 mul def/startFig {	/SavedState save def	userdict maxlength dict begin	currentpoint transform	DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap		setlinewidth setmatrix	itransform moveto	/ury exch def	/urx exch def	/lly exch def	/llx exch def	/y exch 72 mul resolution div def	/x exch 72 mul resolution div def		currentpoint /cy exch def /cx exch def	/sx x urx llx sub div def	/sy y ury lly sub div def	sx sy scale	cx sx div llx sub	cy sy div ury sub translate		/DefFigCTM matrix currentmatrix def	/initmatrix {		DefFigCTM setmatrix	} def	/defaultmatrix {		DefFigCTM exch copy	} def	/initgraphics {		DocumentInitState setmiterlimit setgray setdash 			setlinejoin setlinecap setlinewidth setmatrix		DefFigCTM setmatrix	} def	/showpage {		initgraphics	} def}bind  def/clipFig {	currentpoint 6 2 roll	newpath 4 copy	4 2 roll moveto	6 -1 roll exch lineto	exch lineto	exch lineto	closepath clip	newpath	moveto}bind  def/doclip { llx lly urx ury clipFig } def/endFig {	end SavedState restore}bind  def/globalstart {	fontnum psize slant height resolution currentpoint 	pagesave restore gsave }bind  def/globalend {	grestore moveto	/resolution exch def /height exch def	/slant exch def /psize exch def /fontnum exch def	F	/pagesave save def}bind  def/fontnum 1 def systemdict /setpacking known { savepacking setpacking} ifend/BP{save mark devps begin m0/DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecapcurrentlinejoin currentdash currentgray currentmiterlimit ] cvx def}bind def/EP{end cleartomark restore showpage}def/Encoding-1 256 array def0 1 255 {Encoding-1 exch /.notdef put} forEncoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-BEncoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-bEncoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accentsEncoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessiEncoding-1dup 8#41 /copyright putdup 8#42 /registered putdup 8#43 /trademark putdup 8#44 /logicalnot putdup 8#45 /Eth putdup 8#46 /eth putdup 8#47 /Thorn putdup 8#50 /thorn putdup 8#51 /brokenbar putdup 8#52 /degree putdup 8#53 /divide putdup 8#54 /multiply putdup 8#55 /minus putdup 8#56 /onehalf putdup 8#57 /onequarter putdup 8#60 /threequarters putdup 8#101 /Aacute putdup 8#102 /Acircumflex putdup 8#103 /Adieresis putdup 8#104 /Agrave putdup 8#105 /Aring putdup 8#106 /Atilde putdup 8#107 /Ccedilla putdup 8#110 /Eacute putdup 8#111 /Ecircumflex putdup 8#112 /Edieresis putdup 8#113 /Egrave putdup 8#114 /Iacute putdup 8#115 /Icircumflex putdup 8#116 /Idieresis putdup 8#117 /Igrave putdup 8#120 /Ntilde putdup 8#121 /Oacute putdup 8#122 /Ocircumflex putdup 8#123 /Odieresis putdup 8#124 /Ograve putdup 8#125 /Otilde putdup 8#126 /Scaron putdup 8#127 /Uacute putdup 8#130 /Ucircumflex putdup 8#131 /Udieresis putdup 8#132 /Ugrave putdup 8#133 /Ydieresis putdup 8#134 /Zcaron putdup 8#135 /aacute putdup 8#136 /acircumflex putdup 8#137 /adieresis putdup 8#140 /agrave putdup 8#141 /aring putdup 8#142 /atilde putdup 8#143 /ccedilla putdup 8#144 /eacute putdup 8#145 /ecircumflex putdup 8#146 /edieresis putdup 8#147 /egrave putdup 8#150 /iacute putdup 8#151 /icircumflex putdup 8#152 /idieresis putdup 8#153 /igrave putdup 8#154 /ntilde putdup 8#155 /oacute putdup 8#156 /ocircumflex putdup 8#157 /odieresis putdup 8#160 /ograve putdup 8#161 /otilde putdup 8#162 /scaron putdup 8#163 /uacute putdup 8#164 /ucircumflex putdup 8#165 /udieresis putdup 8#166 /ugrave putdup 8#167 /ydieresis putdup 8#170 /zcaron putpop/Enc-dict 30 dict defEnc-dict /tmpstr1 50 string putEnc-dict /tmpstr2 50 string putEnc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put/AEnc-def { % arguments: the original font's name, encoding nrEnc-dict begintmpstr2 cvs /Enc-no exch def % Remember the number in a stringdup /OrigName exch def % remember the namefindfont dup maxlength dict /newdict exch def % get dictionary for new font{ exch dup /FID ne   { exch newdict 3 1 roll put }   { pop pop } % Ignore FID   ifelse} forallnewdict begin/Encoding  tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval  cvn load  def % Replace encodingcurrentdict /UniqueID known{ /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueIDend % newdict/FNlength OrigName tmpstr1 cvs length def % convert name, remember lengthFNlength 1 add Enc-no length add stringdup 0 OrigName tmpstr1 cvs putintervaldup FNlength (-) putintervaldup FNlength 1 add Enc-no putintervaldup 0 tmpstr1 0 FNlength getinterval putinterval % Add old namecvn dup newdict /FontName 3 2 roll put newdict definefontend % Enc-dict} def/Times-Roman 1 AEnc-def pop/R-1{/Times-Roman-1 FF}def/R{/Times-Roman FF}def/B{/Times-Bold FF}def/I{/Times-Italic FF}def%%EndProlog%%Page: 1 1BP/slant 0 def/height 0 def480 V10 R720(SH)S857(\()S899(1)S957(\))S2696(Eighth)S(Edition)296 2989 A4990(SH)S5127(\()S5169(1)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(ash,)S1264(command,)S1710(getopts,)S2050(hash,)S2284(jobs,)S2501(local,)S2747(return,)S3038(setvar,)S3329(unset)S10 R-13566(-)S10 R3648(a)S3718(shell)S1248 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1368 V10 B1080(ash)S10 R1263([)S10 B1335(-efIijnsxz)S10 R1777(])S1849([)S10 B1921(+efIijnsxz)S10 R2386(])S2458([)S10 B2530(-c)S10 I(command)391 2647 A10 R3076(])S3148([)S10 I3220(arg)S10 R3397(])S(...)75 3469 A1536 V9 R720(C)S722(CO)S784(OP)S852(PY)S904(YR)S972(RI)S1034(IG)S1067(GH)S1135(HT)S1203(T)S1656 V10 R(Copyright)407 1080 A(1989)200 1512 A1737(by)S1862(Kenneth)S2228(Almquist.)S1824 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S1944 V10 I1080(Ash)S10 R1262(is)S1360(a)S1436(version)S1763(of)S10 I1879(sh)S10 R2000(with)S2211(features)S2563(similar)S2875(to)S2985(those)S3229(of)S3345(the)S3500(System)S3828(V)S3933(shell.)S4205(This)S4416(manual)S4744(page)S4966(lists)S5160(all)S2064 V1080(the)S1228(features)S1573(of)S10 I1682(ash)S10 R1846(but)S1999(concentrates)S2528(on)S2653(the)S2801(ones)S3010(not)S3163(in)S3266(other)S3498(shells.)S2304 V10 B864(Invocation)S2472 V10 R1080(If)S1182(the)S10 B1339(-c)S10 R1452(options)S1781(is)S1882(given,)S2164(then)S2371(the)S2529(shell)S2754(executes)S3136(the)S3294(speci\256ed)S3687(shell)S3912(command.)S4393(The)S10 B4585(-s)S10 R4693(\257ag)S4879(cause)S5138(the)S2592 V1080(shell)S1307(to)S1422(read)S1633(commands)S2105(from)S2338(the)S2498(standard)S(input)206 2876 A3118(\(after)S3374(executing)S3801(any)S3982(command)S4414(speci\256ed)S4808(with)S5023(the)S10 B5182(-c)S2712 V10 R1080(option.)S1420(If)S1522(neither)S1836(the)S10 B1993(-s)S10 R2100(or)S10 B2219(-c)S10 R2333(options)S2663(are)S2822(set,)S2994(then)S3202(the)S3360(\256rst)S10 I3552(arg)S10 R3726(is)S3828(taken)S4081(as)S4200(the)S4358(name)S4611(of)S4730(a)S4810(\256le)S4974(to)S5087(read)S2832 V1080(commands)S1547(from.)S1825(If)S1925(this)S2102(is)S2201(impossible)S(because)319 2668 A3019(there)S3253(are)S3409(no)S3541(arguments)S3991(following)S4413(the)S4567(options,)S4918(then)S10 I5122(ash)S2952 V10 R(will)157 1080 A1262(set)S1399(the)S10 B1547(-s)S10 R1645(\257ag)S1821(and)S(will)157 1991 A2173(read)S2372(commands)S2832(from)S3053(the)S3201(standard)S(input.)231 3567 A3120 V1080(The)S1266(shell)S1485(sets)S1665(the)S(initial)235 1817 A2081(value)S2328(of)S2441(the)S(positional)396 2593 A3018(parameters)S3490(from)S3715(the)S10 I3867(arg)S10 R4014(s)S4082(remaining)S4519(after)S4734(any)S10 I4908(arg)S10 R5077(used)S3240 V1080(as)S1189(the)S1337(name)S1580(of)S1689(a)S1759(\256le)S1913(of)S2022(commands)S2482(is)S2574(deleted.)S3408 V1080(The)S1264(\257ags)S1481(\(other)S1749(than)S10 B1949(-c)S10 R2028(\))S2089(are)S2240(set)S2379(by)S(preceding)397 2506 A2930(them)S3158(with)S(``-'')170 3364 A3561(and)S3733(cleared)S4052(by)S(preceding)397 4179 A4604(them)S4833(with)S5040(``+'';)S3528 V1080(see)S1240(the)S10 I1394(set)S10 R(builtin)262 1537 A1830(command)S2257(for)S2406(a)S2482(list)S2636(of)S2751(\257ags.)S3022(If)S3121(no)S3252(value)S3501(is)S3599(speci\256ed)S3988(for)S4137(the)S10 B4291(-i)S10 R4384(\257ag,)S4590(the)S10 B4743(-s)S10 R4846(\257ag)S5027(is)S5124(set,)S3648 V1080(and)S1253(the)S1404(standard)S(input)206 1773 A2007(and)S2180(output)S2464(of)S2576(the)S2727(shell)S2945(are)S(connected)408 3097 A3533(to)S3639(terminals,)S4067(then)S4269(the)S10 B4421(-i)S10 R4512(\257ag)S(will)157 4692 A4878(be)S5002(set.)S5193(If)S3768 V1080(no)S1205(value)S1448(is)S1540(speci\256ed)S1923(for)S2066(the)S10 B2214(-j)S10 R2307(\257ag,)S2508(then)S2706(the)S10 B2854(-j)S10 R2947(\257ag)S(will)157 3123 A3305(be)S3425(set)S3562(if)S3649(the)S10 B3797(-i)S10 R3884(\257ag)S4060(is)S4152(set.)S3936 V1080(When)S1352(the)S1507(shell)S1729(is)S(invoked)323 1828 A2183(with)S2394(the)S10 B2549(-c)S10 R2660(option,)S2973(it)S3061(is)S(good)200 3160 A3392(practice)S3744(to)S3854(include)S4182(the)S10 I4337(-i)S10 R4431(\257ag)S4614(if)S4709(the)S4865(command)S4056 V1080(was)S1274(entered)S1608(interactively)S2149(by)S2286(a)S2368(user.)S2623(For)S(compatibility)536 2800 A3373(with)S3589(the)S3749(System)S4082(V)S4192(shell,)S4444(the)S10 I4604(-i)S10 R4702(option)S(should)267 4994 A4176 V1080(come)S1323(after)S1534(the)S10 B1682(-c)S10 R1786(option.)S4344 V1080(If)S1179(the)S1333(\256rst)S1521(character)S1923(of)S2038(argument)S2449(zero)S2654(to)S2763(the)S2917(shell)S3138(is)S(``-'',)195 3236 A3463(the)S3618(shell)S3840(is)S3939(assumed)S4317(to)S4427(be)S4554(a)S4631(login)S4869(shell,)S5116(and)S4464 V1080(the)S1237(\256les)S10 B1439(/etc/pro\256le)S10 R1933(and)S10 B2112(.pro\256le)S10 R2451(are)S2609(read)S2817(if)S2913(they)S3120(exist.)S3394(If)S3496(the)S3652(environment)S4193(variable)S4551(SHINIT)S4916(is)S5016(set)S5161(on)S4584 V1080(entry)S1318(to)S1427(the)S1581(shell,)S1827(the)S1982(commands)S2449(in)S2559(SHINIT)S2923(are)S3079(normally)S3474(parsed)S3769(and)S3946(executed.)S4386(SHINIT)S4750(is)S4849(not)S5009(exam-)S4704 V1080(ined)S1281(if)S1371(the)S1522(shell)S1740(is)S1835(a)S1908(login)S2142(shell,)S2385(or)S2497(if)S2587(it)S2671(the)S2822(shell)S3040(is)S(running)312 3135 A3475(a)S3548(shell)S3766(procedure.)S4272(\(A)S4407(shell)S4625(is)S4720(considered)S5183(to)S4824 V1080(be)S(running)312 1200 A1537(a)S1607(shell)S1822(procedure)S2250(if)S2337(neither)S2642(the)S10 B2790(-s)S10 R2888(nor)S3047(the)S10 B3195(-c)S10 R3299(options)S3619(are)S3768(set.\))S5064 V10 B864(Control)S1225(Structures)S5232 V10 R1080(A)S10 I1181(list)S10 R1332(is)S1427(a)S1500(sequence)S1897(of)S2009(zero)S2211(or)S2323(more)S2558(commands)S3021(separated)S3430(by)S3558(newlines,)S3969(semicolons,)S4474(or)S4587(ampersands,)S5116(and)S5352 V1080(optionally)S1522(terminated)S1988(by)S2123(one)S2303(of)S2422(these)S2664(three)S2901(characters.)S3396(\(This)S3644(differs)S3942(from)S4172(the)S4329(System)S4659(V)S4766(shell,)S5015(which)S5472 V1080(requires)S1433(a)S1506(list)S1657(to)S1763(contain)S2088(at)S2190(least)S2404(one)S2578(command)S3003(in)S3110(most)S3334(cases.\))S3660(The)S3846(commands)S4310(in)S4417(a)S4491(list)S4643(are)S4796(executed)S5183(in)S5592 V1080(the)S1232(order)S1473(they)S1674(are)S(written.)311 1826 A2190(If)S2286(command)S2710(is)S2805(followed)S3191(by)S3319(an)S3442(ampersand,)S3931(the)S4082(shell)S4300(starts)S4541(the)S4692(command)S5116(and)S5712 V1080(immediately)S(proceed)319 1614 A1964(onto)S2174(the)S2329(next)S2534(command;)S2990(otherwise)S3414(it)S3502(waits)S3747(for)S3897(the)S4052(command)S4480(to)S4590(terminate)S5003(before)S5832 V(proceeding)447 1080 A1552(to)S1655(the)S1803(next)S2001(one.)S6000 V1080(``&&'')S1417(and)S1607(``||'')S1828(are)S1997(binary)S2299(operators.)S2769(``&&'')S3106(executes)S3498(the)S3666(\256rst)S3868(command,)S4335(and)S4526(then)S4745(executes)S5138(the)S6120 V(second)279 1080 A1401(command)S1839(iff)S1977(the)S2142(exit)S2335(status)S2606(of)S2732(the)S2897(\256rst)S3096(command)S3534(is)S3643(zero.)S3909(``||'')S4127(is)S4235(similar,)S4581(but)S4750(executes)S5138(the)S6240 V(second)279 1080 A1394(command)S1825(iff)S1956(the)S2114(exit)S2300(status)S2564(of)S2683(the)S2841(\256rst)S3033(command)S3464(is)S(nonzero.)349 3567 A3977(``&&'')S4305(and)S4486(``||'')S4698(both)S4912(have)S5138(the)S6360 V1080(same)S1312(priority.)S6528 V1080(The)S1272(``|'')S1463(operator)S1834(is)S1937(a)S2018(binary)S2311(operator)S2683(which)S2965(feeds)S3214(the)S3373(standard)S3750(output)S4042(of)S4162(the)S4321(\256rst)S4514(command)S4946(into)S5138(the)S6648 V1080(standard)S(input)206 1460 A1705(of)S1828(the)S(second)279 1990 A2308(command.)S2792(The)S2987(exit)S3176(status)S3443(of)S3565(the)S3726(``|'')S3920(operator)S4294(is)S4399(the)S4560(exit)S4749(status)S5016(of)S5138(the)S6768 V(second)279 1080 A1384(command.)S1855(``|'')S

⌨️ 快捷键说明

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