|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: c
Length: 84251 (0x1491b)
Names: »csh.1«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat1/csh.1«
0x00000…00020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x00020…00040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e ┆ u_ a_ l User Comman┆
0x00040…00060 64 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 73 68 28 31 29 0a 0a 0a 0a ┆ds csh(1) ┆
0x00060…00080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆
0x00080…000a0 20 20 63 73 68 20 2d 20 61 20 73 68 65 6c 6c 20 28 63 6f 6d 6d 61 6e 64 20 69 6e 74 65 72 70 72 ┆ csh - a shell (command interpr┆
0x000a0…000c0 65 74 65 72 29 20 77 69 74 68 20 43 2d 6c 69 6b 65 20 73 79 6e 74 61 78 0a 0a 53 08 53 08 53 08 ┆eter) with C-like syntax S S S ┆
0x000c0…000e0 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 ┆SY Y Y YN N N NT T T TA A A AX X┆
0x000e0…00100 08 58 08 58 0a 20 20 20 20 20 63 08 63 08 63 08 63 73 08 73 08 73 08 73 68 08 68 08 68 08 68 20 ┆ X X c c c cs s s sh h h h ┆
0x00100…00120 5b 20 2d 08 2d 08 2d 08 2d 63 08 63 08 63 08 63 65 08 65 08 65 08 65 66 08 66 08 66 08 66 69 08 ┆[ - - - -c c c ce e e ef f f fi ┆
0x00120…00140 69 08 69 08 69 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 74 08 74 08 74 08 74 76 08 76 08 76 08 ┆i i in n n ns s s st t t tv v v ┆
0x00140…00160 76 56 08 56 08 56 08 56 78 08 78 08 78 08 78 58 08 58 08 58 08 58 20 5d 20 5b 20 61 72 67 20 2e ┆vV V V Vx x x xX X X X ] [ arg .┆
0x00160…00180 2e 2e 20 20 5d 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 ┆.. ] D D D DE E E ES S S SC C ┆
0x00180…001a0 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 ┆C CR R R RI I I IP P P PT T T TI┆
0x001a0…001c0 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 5f 08 ┆ I I IO O O ON N N N The _ ┆
0x001c0…001e0 63 5f 08 73 5f 08 68 20 63 6f 6d 6d 61 6e 64 20 6c 61 6e 67 75 61 67 65 20 69 6e 74 65 72 70 72 ┆c_ s_ h command language interpr┆
0x001e0…00200 65 74 65 72 20 75 73 65 73 20 61 20 43 2d 6c 69 6b 65 20 73 79 6e 74 61 78 0a 20 20 20 20 20 61 ┆eter uses a C-like syntax a┆
0x00200…00220 6e 64 20 69 6e 63 6f 72 70 6f 72 61 74 65 73 20 74 77 6f 20 75 73 65 66 75 6c 20 74 6f 6f 6c 73 ┆nd incorporates two useful tools┆
0x00220…00240 3a 20 68 08 68 08 68 08 68 69 08 69 08 69 08 69 73 08 73 08 73 08 73 74 08 74 08 74 08 74 6f 08 ┆: h h h hi i i is s s st t t to ┆
0x00240…00260 6f 08 6f 08 6f 72 08 72 08 72 08 72 79 08 79 08 79 08 79 20 61 6e 64 20 6a 08 6a 08 6a 08 6a 6f ┆o o or r r ry y y y and j j j jo┆
0x00260…00280 08 6f 08 6f 08 6f 62 08 62 08 62 08 62 20 63 08 63 08 63 08 63 6f 08 6f 08 6f 08 6f 6e 08 6e 08 ┆ o o ob b b b c c c co o o on n ┆
0x00280…002a0 6e 08 6e 74 08 74 08 74 08 74 72 08 72 08 72 08 72 6f 08 6f 08 6f 08 6f 6c 08 6c 08 6c 08 6c 2e ┆n nt t t tr r r ro o o ol l l l.┆
0x002a0…002c0 0a 20 20 20 20 20 48 69 73 74 6f 72 79 20 72 65 63 6f 72 64 73 20 74 68 65 20 63 6f 6d 6d 61 6e ┆ History records the comman┆
0x002c0…002e0 64 73 20 74 79 70 65 64 20 62 79 20 74 68 65 20 75 73 65 72 20 61 73 20 73 6f 6f 6e 20 61 73 0a ┆ds typed by the user as soon as ┆
0x002e0…00300 20 20 20 20 20 74 68 65 20 68 69 73 74 6f 72 79 20 76 61 72 69 61 62 6c 65 20 69 73 20 69 6e 69 ┆ the history variable is ini┆
0x00300…00320 74 69 61 6c 69 7a 65 64 2e 20 28 53 65 65 20 48 08 48 08 48 08 48 69 08 69 08 69 08 69 73 08 73 ┆tialized. (See H H H Hi i i is s┆
0x00320…00340 08 73 08 73 74 08 74 08 74 08 74 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 79 08 79 08 79 08 79 ┆ s st t t to o o or r r ry y y y┆
0x00340…00360 20 66 6f 72 20 6d 6f 72 65 0a 20 20 20 20 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 6f 6e 20 69 6e ┆ for more information on in┆
0x00360…00380 69 74 69 61 6c 69 7a 69 6e 67 20 74 68 65 20 68 69 73 74 6f 72 79 20 76 61 72 69 61 62 6c 65 2e ┆itializing the history variable.┆
0x00380…003a0 29 20 20 4a 6f 62 20 63 6f 6e 2d 0a 20 20 20 20 20 74 72 6f 6c 20 61 6c 6c 6f 77 73 20 75 73 65 ┆) Job con- trol allows use┆
0x003a0…003c0 72 73 20 74 6f 20 72 75 6e 20 73 65 76 65 72 61 6c 20 6a 6f 62 73 20 63 6f 6e 63 75 72 72 65 6e ┆rs to run several jobs concurren┆
0x003c0…003e0 74 6c 79 2c 20 62 79 20 72 75 6e 2d 0a 20 20 20 20 20 6e 69 6e 67 20 6f 6e 65 20 6f 72 20 6d 6f ┆tly, by run- ning one or mo┆
0x003e0…00400 72 65 20 6a 6f 62 73 20 69 6e 20 74 68 65 20 62 61 63 6b 67 72 6f 75 6e 64 2e 20 20 54 6f 20 69 ┆re jobs in the background. To i┆
0x00400…00420 6d 70 6c 65 6d 65 6e 74 20 74 68 65 0a 20 20 20 20 20 6a 6f 62 20 63 6f 6e 74 72 6f 6c 20 66 61 ┆mplement the job control fa┆
0x00420…00440 63 69 6c 69 74 69 65 73 2c 20 5f 08 63 5f 08 73 5f 08 68 20 75 73 65 73 20 74 68 65 20 74 65 72 ┆cilities, _ c_ s_ h uses the ter┆
0x00440…00460 6d 69 6e 61 6c 20 64 72 69 76 65 72 0a 20 20 20 20 20 64 65 73 63 72 69 62 65 64 20 69 6e 20 74 ┆minal driver described in t┆
0x00460…00480 68 65 20 5f 08 74 5f 08 74 5f 08 79 28 34 29 20 61 6e 64 20 5f 08 74 5f 08 65 5f 08 72 5f 08 6d ┆he _ t_ t_ y(4) and _ t_ e_ r_ m┆
0x00480…004a0 5f 08 69 5f 08 6f 28 34 29 20 73 65 63 74 69 6f 6e 73 20 6f 66 20 74 68 65 20 54 08 54 08 54 08 ┆_ i_ o(4) sections of the T T T ┆
0x004a0…004c0 54 58 08 58 08 58 08 58 0a 20 20 20 20 20 50 08 50 08 50 08 50 72 08 72 08 72 08 72 6f 08 6f 08 ┆TX X X X P P P Pr r r ro o ┆
0x004c0…004e0 6f 08 6f 67 08 67 08 67 08 67 72 08 72 08 72 08 72 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 6d ┆o og g g gr r r ra a a am m m mm┆
0x004e0…00500 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 72 08 72 08 72 08 72 27 08 27 08 27 08 27 73 08 73 08 73 ┆ m m me e e er r r r' ' ' 's s s┆
0x00500…00520 08 73 20 52 08 52 08 52 08 52 65 08 65 08 65 08 65 66 08 66 08 66 08 66 65 08 65 08 65 08 65 72 ┆ s R R R Re e e ef f f fe e e er┆
0x00520…00540 08 72 08 72 08 72 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 65 08 65 08 65 ┆ r r re e e en n n nc c c ce e e┆
0x00540…00560 08 65 2e 20 54 68 69 73 20 74 65 72 6d 69 6e 61 6c 20 64 72 69 76 65 72 20 61 6c 6c 6f 77 73 20 ┆ e. This terminal driver allows ┆
0x00560…00580 67 65 6e 65 72 61 2d 0a 20 20 20 20 20 74 69 6f 6e 20 6f 66 20 69 6e 74 65 72 72 75 70 74 20 63 ┆genera- tion of interrupt c┆
0x00580…005a0 68 61 72 61 63 74 65 72 73 20 66 72 6f 6d 20 74 68 65 20 6b 65 79 62 6f 61 72 64 20 74 6f 20 74 ┆haracters from the keyboard to t┆
0x005a0…005c0 65 6c 6c 20 6a 6f 62 73 0a 20 20 20 20 20 74 6f 20 73 74 6f 70 2e 20 20 54 68 65 20 5f 08 73 5f ┆ell jobs to stop. The _ s_┆
0x005c0…005e0 08 74 5f 08 74 5f 08 79 20 63 6f 6d 6d 61 6e 64 20 61 6c 6c 6f 77 73 20 74 68 65 20 75 73 65 72 ┆ t_ t_ y command allows the user┆
0x005e0…00600 20 74 6f 20 73 65 74 20 6f 70 74 69 6f 6e 73 20 69 6e 0a 20 20 20 20 20 74 68 65 20 74 65 72 6d ┆ to set options in the term┆
0x00600…00620 69 6e 61 6c 20 64 72 69 76 65 72 2e 20 20 53 65 65 20 4a 08 4a 08 4a 08 4a 6f 08 6f 08 6f 08 6f ┆inal driver. See J J J Jo o o o┆
0x00620…00640 62 08 62 08 62 08 62 73 08 73 08 73 08 73 20 66 6f 72 20 6d 6f 72 65 20 69 6e 66 6f 72 6d 61 74 ┆b b b bs s s s for more informat┆
0x00640…00660 69 6f 6e 20 6f 6e 20 6a 6f 62 0a 20 20 20 20 20 63 6f 6e 74 72 6f 6c 2e 0a 0a 20 20 20 20 20 5f ┆ion on job control. _┆
0x00660…00680 08 63 5f 08 73 5f 08 68 20 62 65 67 69 6e 73 20 62 79 20 65 78 65 63 75 74 69 6e 67 20 63 6f 6d ┆ c_ s_ h begins by executing com┆
0x00680…006a0 6d 61 6e 64 73 20 66 72 6f 6d 20 74 68 65 20 66 69 6c 65 20 2e 63 73 68 72 63 20 69 6e 20 74 68 ┆mands from the file .cshrc in th┆
0x006a0…006c0 65 0a 20 20 20 20 20 5f 08 68 5f 08 6f 5f 08 6d 5f 08 65 20 64 69 72 65 63 74 6f 72 79 20 6f 66 ┆e _ h_ o_ m_ e directory of┆
0x006c0…006e0 20 74 68 65 20 69 6e 76 6f 6b 65 72 2e 20 20 57 68 65 6e 20 5f 08 63 5f 08 73 5f 08 68 20 62 65 ┆ the invoker. When _ c_ s_ h be┆
0x006e0…00700 67 69 6e 73 20 65 78 65 63 75 74 69 6f 6e 20 61 73 0a 20 20 20 20 20 61 20 6c 6f 67 69 6e 20 73 ┆gins execution as a login s┆
0x00700…00720 68 65 6c 6c 2c 20 69 74 20 66 69 72 73 74 20 65 78 65 63 75 74 65 73 20 74 68 65 20 63 6f 6d 6d ┆hell, it first executes the comm┆
0x00720…00740 61 6e 64 73 20 69 6e 20 74 68 65 20 2e 63 73 68 72 63 0a 20 20 20 20 20 66 69 6c 65 20 61 6e 64 ┆ands in the .cshrc file and┆
0x00740…00760 20 74 68 65 6e 20 65 78 65 63 75 74 65 73 20 74 68 65 20 63 6f 6d 6d 61 6e 64 73 20 69 6e 20 74 ┆ then executes the commands in t┆
0x00760…00780 68 65 20 2e 6c 6f 67 69 6e 20 66 69 6c 65 3b 20 61 0a 20 20 20 20 20 6e 6f 6e 2d 6c 6f 67 69 6e ┆he .login file; a non-login┆
0x00780…007a0 20 5f 08 63 5f 08 73 5f 08 68 20 72 65 61 64 73 20 6f 6e 6c 79 20 74 68 65 20 2e 63 73 68 72 63 ┆ _ c_ s_ h reads only the .cshrc┆
0x007a0…007c0 20 66 69 6c 65 2e 20 20 54 79 70 69 63 61 6c 6c 79 2c 20 43 52 54 0a 20 20 20 20 20 75 73 65 72 ┆ file. Typically, CRT user┆
0x007c0…007e0 73 20 70 75 74 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 60 60 73 74 74 79 20 63 72 74 27 27 20 69 ┆s put the command ``stty crt'' i┆
0x007e0…00800 6e 20 74 68 65 69 72 20 2e 6c 6f 67 69 6e 20 66 69 6c 65 2c 20 74 6f 0a 20 20 20 20 20 69 6e 76 ┆n their .login file, to inv┆
0x00800…00820 6f 6b 65 20 74 68 65 20 5f 08 74 5f 08 73 5f 08 65 5f 08 74 20 63 6f 6d 6d 61 6e 64 2e 20 20 54 ┆oke the _ t_ s_ e_ t command. T┆
0x00820…00840 68 69 73 20 69 73 20 75 6e 6e 65 63 65 73 73 61 72 79 2c 20 73 69 6e 63 65 20 74 68 65 0a 20 20 ┆his is unnecessary, since the ┆
0x00840…00860 20 20 20 5f 08 74 5f 08 78 5f 08 6c 5f 08 6f 5f 08 67 5f 08 69 5f 08 6e 20 70 72 6f 63 65 73 73 ┆ _ t_ x_ l_ o_ g_ i_ n process┆
0x00860…00880 20 70 65 72 66 6f 72 6d 73 20 74 68 65 20 5f 08 74 5f 08 73 5f 08 65 5f 08 74 2e 0a 0a 20 20 20 ┆ performs the _ t_ s_ e_ t. ┆
0x00880…008a0 20 20 41 66 74 65 72 20 5f 08 63 5f 08 73 5f 08 68 20 65 78 65 63 75 74 65 73 20 74 68 65 20 63 ┆ After _ c_ s_ h executes the c┆
0x008a0…008c0 6f 6d 6d 61 6e 64 73 20 69 6e 20 2e 63 73 68 72 63 20 61 6e 64 20 2e 6c 6f 67 69 6e 2c 20 74 68 ┆ommands in .cshrc and .login, th┆
0x008c0…008e0 65 20 25 0a 20 20 20 20 20 70 72 6f 6d 70 74 20 61 70 70 65 61 72 73 20 6f 6e 20 74 68 65 20 73 ┆e % prompt appears on the s┆
0x008e0…00900 63 72 65 65 6e 2c 20 72 65 61 64 79 20 66 6f 72 20 63 6f 6d 6d 61 6e 64 20 69 6e 70 75 74 2e 20 ┆creen, ready for command input. ┆
0x00900…00920 20 54 68 65 0a 20 20 20 20 20 73 68 65 6c 6c 20 74 68 65 6e 20 72 65 70 65 61 74 65 64 6c 79 20 ┆ The shell then repeatedly ┆
0x00920…00940 72 65 61 64 73 20 61 20 6c 69 6e 65 20 6f 66 20 63 6f 6d 6d 61 6e 64 20 69 6e 70 75 74 20 61 6e ┆reads a line of command input an┆
0x00940…00960 64 0a 20 20 20 20 20 62 72 65 61 6b 73 20 74 68 65 20 69 6e 70 75 74 20 69 6e 74 6f 20 77 6f 72 ┆d breaks the input into wor┆
0x00960…00980 64 73 2e 20 54 68 69 73 20 73 65 71 75 65 6e 63 65 20 6f 66 20 77 6f 72 64 73 20 69 73 0a 20 20 ┆ds. This sequence of words is ┆
0x00980…009a0 20 20 20 70 6c 61 63 65 64 20 6f 6e 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 68 69 73 74 6f 72 79 ┆ placed on the command history┆
0x009a0…009c0 20 6c 69 73 74 20 61 6e 64 20 74 68 65 6e 20 70 61 72 73 65 64 2e 0a 20 20 20 20 20 46 69 6e 61 ┆ list and then parsed. Fina┆
0x009c0…009e0 6c 6c 79 2c 20 5f 08 63 5f 08 73 5f 08 68 20 65 78 65 63 75 74 65 73 20 65 61 63 68 20 63 6f 6d ┆lly, _ c_ s_ h executes each com┆
0x009e0…00a00 6d 61 6e 64 20 69 6e 20 74 68 65 20 63 75 72 72 65 6e 74 20 6c 69 6e 65 2e 0a 20 20 20 20 20 4c ┆mand in the current line. L┆
0x00a00…00a20 61 74 65 72 20 77 65 20 64 65 73 63 72 69 62 65 20 70 72 6f 63 65 73 73 69 6e 67 20 6f 66 20 61 ┆ater we describe processing of a┆
0x00a20…00a40 72 67 75 6d 65 6e 74 73 20 61 6e 64 20 74 68 65 20 75 73 65 20 6f 66 20 74 68 65 0a 20 20 20 20 ┆rguments and the use of the ┆
0x00a40…00a60 20 73 68 65 6c 6c 20 74 6f 20 70 72 6f 63 65 73 73 20 66 69 6c 65 73 20 63 6f 6e 74 61 69 6e 69 ┆ shell to process files containi┆
0x00a60…00a80 6e 67 20 63 6f 6d 6d 61 6e 64 20 73 63 72 69 70 74 73 2e 0a 0a 20 20 20 20 20 57 68 65 6e 20 61 ┆ng command scripts. When a┆
0x00a80…00aa0 20 6c 6f 67 69 6e 20 73 68 65 6c 6c 20 74 65 72 6d 69 6e 61 74 65 73 2c 20 69 74 20 65 78 65 63 ┆ login shell terminates, it exec┆
0x00aa0…00ac0 75 74 65 73 20 63 6f 6d 6d 61 6e 64 73 20 66 72 6f 6d 20 74 68 65 0a 20 20 20 20 20 66 69 6c 65 ┆utes commands from the file┆
0x00ac0…00ae0 20 2e 6c 6f 67 6f 75 74 20 69 6e 20 74 68 65 20 75 73 65 72 73 20 68 6f 6d 65 20 64 69 72 65 63 ┆ .logout in the users home direc┆
0x00ae0…00b00 74 6f 72 79 2e 0a 0a 20 20 20 20 20 4c 08 4c 08 4c 08 4c 65 08 65 08 65 08 65 78 08 78 08 78 08 ┆tory. L L L Le e e ex x x ┆
0x00b00…00b20 78 69 08 69 08 69 08 69 63 08 63 08 63 08 63 61 08 61 08 61 08 61 6c 08 6c 08 6c 08 6c 20 73 08 ┆xi i i ic c c ca a a al l l l s ┆
0x00b20…00b40 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 ┆s s st t t tr r r ru u u uc c c ┆
0x00b40…00b60 63 74 08 74 08 74 08 74 75 08 75 08 75 08 75 72 08 72 08 72 08 72 65 08 65 08 65 08 65 0a 0a 20 ┆ct t t tu u u ur r r re e e e ┆
0x00b60…00b80 20 20 20 20 54 68 65 20 73 68 65 6c 6c 20 73 70 6c 69 74 73 20 69 6e 70 75 74 20 6c 69 6e 65 73 ┆ The shell splits input lines┆
0x00b80…00ba0 20 69 6e 74 6f 20 77 6f 72 64 73 20 61 74 20 62 6c 61 6e 6b 73 20 61 6e 64 20 74 61 62 73 0a 20 ┆ into words at blanks and tabs ┆
0x00ba0…00bc0 20 20 20 20 77 69 74 68 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 65 78 63 65 70 74 69 6f 6e ┆ with the following exception┆
0x00bc0…00be0 73 2e 20 20 54 68 65 20 63 68 61 72 61 63 74 65 72 73 20 60 26 27 20 60 20 7c 20 27 20 60 3b 27 ┆s. The characters `&' ` | ' `;'┆
0x00be0…00c00 0a 20 20 20 20 20 60 3c 27 20 60 3e 27 20 60 28 27 20 60 29 27 20 66 6f 72 6d 20 73 65 70 61 72 ┆ `<' `>' `(' `)' form separ┆
0x00c00…00c20 61 74 65 20 77 6f 72 64 73 2e 20 20 49 66 20 64 6f 75 62 6c 65 64 20 61 73 20 69 6e 20 60 26 26 ┆ate words. If doubled as in `&&┆
0x00c20…00c40 27 2c 0a 20 20 20 20 20 60 7c 7c 27 2c 20 60 3c 3c 27 20 6f 72 20 60 3e 3e 27 2c 20 74 68 65 20 ┆', `||', `<<' or `>>', the ┆
0x00c40…00c60 70 61 69 72 73 20 66 6f 72 6d 20 73 69 6e 67 6c 65 20 77 6f 72 64 73 2e 20 20 54 68 65 73 65 0a ┆pairs form single words. These ┆
0x00c60…00c80 20 20 20 20 20 70 61 72 73 65 72 20 6d 65 74 61 63 68 61 72 61 63 74 65 72 73 20 6d 61 79 20 62 ┆ parser metacharacters may b┆
0x00c80…00ca0 65 20 69 6e 63 6c 75 64 65 64 20 69 6e 20 6f 74 68 65 72 20 77 6f 72 64 73 20 28 6f 72 0a 20 20 ┆e included in other words (or ┆
0x00ca0…00cc0 20 20 20 70 72 65 76 65 6e 74 65 64 20 66 72 6f 6d 20 68 61 76 69 6e 67 20 74 68 65 69 72 20 73 ┆ prevented from having their s┆
0x00cc0…00ce0 70 65 63 69 61 6c 20 6d 65 61 6e 69 6e 67 29 20 62 79 20 70 72 65 63 65 64 69 6e 67 0a 20 20 20 ┆pecial meaning) by preceding ┆
0x00ce0…00d00 20 20 74 68 65 6d 20 77 69 74 68 20 60 5c 27 2e 20 20 41 20 6e 65 77 6c 69 6e 65 20 70 72 65 63 ┆ them with `\'. A newline prec┆
0x00d00…00d20 65 64 65 64 20 62 79 20 61 20 60 5c 27 20 69 73 20 65 71 75 69 76 61 6c 65 6e 74 20 74 6f 0a 20 ┆eded by a `\' is equivalent to ┆
0x00d20…00d40 20 20 20 20 61 20 62 6c 61 6e 6b 2e 0a 0a 20 20 20 20 20 49 6e 20 61 64 64 69 74 69 6f 6e 2c 20 ┆ a blank. In addition, ┆
0x00d40…00d60 73 74 72 69 6e 67 73 20 65 6e 63 6c 6f 73 65 64 20 69 6e 20 6d 61 74 63 68 65 64 20 70 61 69 72 ┆strings enclosed in matched pair┆
0x00d60…00d80 73 20 6f 66 20 71 75 6f 74 61 2d 0a 20 20 20 20 20 74 69 6f 6e 73 2c 20 60 27 27 2c 20 60 60 27 ┆s of quota- tions, `'', ``'┆
0x00d80…00da0 20 6f 72 20 60 22 27 2c 20 66 6f 72 6d 20 70 61 72 74 73 20 6f 66 20 61 20 77 6f 72 64 3b 20 6d ┆ or `"', form parts of a word; m┆
0x00da0…00dc0 65 74 61 63 68 61 72 61 63 74 65 72 73 0a 20 20 20 20 20 69 6e 20 74 68 65 73 65 20 73 74 72 69 ┆etacharacters in these stri┆
0x00dc0…00de0 6e 67 73 2c 20 69 6e 63 6c 75 64 69 6e 67 20 62 6c 61 6e 6b 73 20 61 6e 64 20 74 61 62 73 2c 20 ┆ngs, including blanks and tabs, ┆
0x00de0…00e00 64 6f 20 6e 6f 74 20 66 6f 72 6d 0a 20 20 20 20 20 73 65 70 61 72 61 74 65 20 77 6f 72 64 73 2e ┆do not form separate words.┆
0x00e00…00e20 20 20 54 68 65 73 65 20 71 75 6f 74 61 74 69 6f 6e 73 20 68 61 76 65 20 73 65 6d 61 6e 74 69 63 ┆ These quotations have semantic┆
0x00e20…00e40 73 20 74 6f 20 62 65 0a 20 20 20 20 20 64 65 73 63 72 69 62 65 64 20 6c 61 74 65 72 2e 20 20 57 ┆s to be described later. W┆
0x00e40…00e60 69 74 68 69 6e 20 70 61 69 72 73 20 6f 66 20 60 27 27 20 6f 72 20 60 22 27 20 63 68 61 72 61 63 ┆ithin pairs of `'' or `"' charac┆
0x00e60…00e80 74 65 72 73 2c 20 61 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 6e 65 77 6c 69 6e 65 20 70 72 65 63 65 ┆ters, a newline prece┆
0x00e80…00ea0 64 65 64 20 62 79 20 61 20 60 5c 27 20 67 69 76 65 73 20 61 20 74 72 75 65 20 6e 65 77 6c 69 6e ┆ded by a `\' gives a true newlin┆
0x00ea0…00ec0 65 20 63 68 61 72 61 63 74 65 72 2e 0a 0a 20 20 20 20 20 57 68 65 6e 20 74 68 65 20 73 68 65 6c ┆e character. When the shel┆
0x00ec0…00ee0 6c 27 73 20 69 6e 70 75 74 20 69 73 20 6e 6f 74 20 61 20 74 65 72 6d 69 6e 61 6c 2c 20 74 68 65 ┆l's input is not a terminal, the┆
0x00ee0…00f00 20 63 68 61 72 61 63 74 65 72 20 60 23 27 0a 20 20 20 20 20 69 6e 74 72 6f 64 75 63 65 73 20 61 ┆ character `#' introduces a┆
0x00f00…00f20 20 63 6f 6d 6d 65 6e 74 20 77 68 69 63 68 20 63 6f 6e 74 69 6e 75 65 73 20 74 6f 20 74 68 65 20 ┆ comment which continues to the ┆
0x00f20…00f40 65 6e 64 20 6f 66 20 74 68 65 20 69 6e 70 75 74 0a 20 20 20 20 20 6c 69 6e 65 2e 20 20 49 74 20 ┆end of the input line. It ┆
0x00f40…00f60 69 73 20 70 72 65 76 65 6e 74 65 64 20 66 72 6f 6d 20 68 61 76 69 6e 67 20 74 68 69 73 20 73 70 ┆is prevented from having this sp┆
0x00f60…00f80 65 63 69 61 6c 20 6d 65 61 6e 69 6e 67 20 77 68 65 6e 0a 20 20 20 20 20 70 72 65 63 65 64 65 64 ┆ecial meaning when preceded┆
0x00f80…00fa0 20 62 79 20 60 5c 27 20 61 6e 64 20 77 69 74 68 69 6e 20 71 75 6f 74 61 74 69 6f 6e 73 2c 20 75 ┆ by `\' and within quotations, u┆
0x00fa0…00fc0 73 69 6e 67 20 60 60 27 2c 20 60 27 27 2c 20 61 6e 64 0a 20 20 20 20 20 60 22 27 2e 0a 0a 20 20 ┆sing ``', `'', and `"'. ┆
0x00fc0…00fe0 20 20 20 43 08 43 08 43 08 43 6f 08 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d 6d 08 6d 08 6d 08 6d 61 ┆ C C C Co o o om m m mm m m ma┆
0x00fe0…01000 08 61 08 61 08 61 6e 08 6e 08 6e 08 6e 64 08 64 08 64 08 64 73 08 73 08 73 08 73 0a 0a 20 20 20 ┆ a a an n n nd d d ds s s s ┆
0x01000…01020 20 20 41 20 73 69 6d 70 6c 65 20 63 6f 6d 6d 61 6e 64 20 69 73 20 61 20 73 65 71 75 65 6e 63 65 ┆ A simple command is a sequence┆
0x01020…01040 20 6f 66 20 77 6f 72 64 73 2c 20 74 68 65 20 66 69 72 73 74 20 6f 66 20 77 68 69 63 68 0a 20 20 ┆ of words, the first of which ┆
0x01040…01060 20 20 20 73 70 65 63 69 66 69 65 73 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 74 6f 20 62 65 20 65 ┆ specifies the command to be e┆
0x01060…01080 78 65 63 75 74 65 64 2e 20 20 41 20 73 69 6d 70 6c 65 20 63 6f 6d 6d 61 6e 64 20 6f 72 20 61 0a ┆xecuted. A simple command or a ┆
0x01080…010a0 20 20 20 20 20 73 65 71 75 65 6e 63 65 20 6f 66 20 73 69 6d 70 6c 65 20 63 6f 6d 6d 61 6e 64 73 ┆ sequence of simple commands┆
0x010a0…010c0 20 73 65 70 61 72 61 74 65 64 20 62 79 20 60 20 7c 20 27 20 63 68 61 72 61 63 74 65 72 73 0a 20 ┆ separated by ` | ' characters ┆
0x010c0…010e0 20 20 20 20 66 6f 72 6d 73 20 61 20 70 69 70 65 6c 69 6e 65 2e 20 20 54 68 65 20 6f 75 74 70 75 ┆ forms a pipeline. The outpu┆
0x010e0…01100 74 20 6f 66 20 65 61 63 68 20 63 6f 6d 6d 61 6e 64 20 69 6e 20 61 20 70 69 70 65 6c 69 6e 65 0a ┆t of each command in a pipeline ┆
0x01100…01120 20 20 20 20 20 69 73 20 63 6f 6e 6e 65 63 74 65 64 20 74 6f 20 74 68 65 20 69 6e 70 75 74 20 6f ┆ is connected to the input o┆
0x01120…01140 66 20 74 68 65 20 6e 65 78 74 2e 20 20 53 65 71 75 65 6e 63 65 73 20 6f 66 20 70 69 70 65 2d 0a ┆f the next. Sequences of pipe- ┆
0x01140…01160 20 20 20 20 20 6c 69 6e 65 73 20 6d 61 79 20 62 65 20 73 65 70 61 72 61 74 65 64 20 62 79 20 60 ┆ lines may be separated by `┆
0x01160…01180 3b 27 2c 20 61 6e 64 20 61 72 65 20 74 68 65 6e 20 65 78 65 63 75 74 65 64 20 73 65 71 75 65 6e ┆;', and are then executed sequen┆
0x01180…011a0 2d 0a 20 20 20 20 20 74 69 61 6c 6c 79 2e 20 20 41 20 73 65 71 75 65 6e 63 65 20 6f 66 20 70 69 ┆- tially. A sequence of pi┆
0x011a0…011c0 70 65 6c 69 6e 65 73 20 6d 61 79 20 62 65 20 65 78 65 63 75 74 65 64 20 77 69 74 68 6f 75 74 0a ┆pelines may be executed without ┆
0x011c0…011e0 20 20 20 20 20 69 6d 6d 65 64 69 61 74 65 6c 79 20 77 61 69 74 69 6e 67 20 66 6f 72 20 69 74 20 ┆ immediately waiting for it ┆
0x011e0…01200 74 6f 20 74 65 72 6d 69 6e 61 74 65 20 62 79 20 66 6f 6c 6c 6f 77 69 6e 67 20 69 74 20 77 69 74 ┆to terminate by following it wit┆
0x01200…01220 68 0a 20 20 20 20 20 61 6e 20 60 26 27 2c 20 77 68 69 63 68 20 61 6c 6c 6f 77 73 20 74 68 65 20 ┆h an `&', which allows the ┆
0x01220…01240 6a 6f 62 20 74 6f 20 72 75 6e 20 69 6e 20 74 68 65 20 62 61 63 6b 67 72 6f 75 6e 64 2e 0a 0a 20 ┆job to run in the background. ┆
0x01240…01260 20 20 20 20 41 6e 79 20 6f 66 20 74 68 65 20 61 62 6f 76 65 20 6d 61 79 20 62 65 20 70 6c 61 63 ┆ Any of the above may be plac┆
0x01260…01280 65 64 20 69 6e 20 60 28 27 20 60 29 27 20 74 6f 20 66 6f 72 6d 20 61 20 73 69 6d 70 6c 65 0a 20 ┆ed in `(' `)' to form a simple ┆
0x01280…012a0 20 20 20 20 63 6f 6d 6d 61 6e 64 20 28 77 68 69 63 68 20 6d 61 79 20 62 65 20 61 20 63 6f 6d 70 ┆ command (which may be a comp┆
0x012a0…012c0 6f 6e 65 6e 74 20 6f 66 20 61 20 70 69 70 65 6c 69 6e 65 2c 20 65 74 63 2e 29 20 59 6f 75 0a 20 ┆onent of a pipeline, etc.) You ┆
0x012c0…012e0 20 20 20 20 63 61 6e 20 73 65 70 61 72 61 74 65 20 70 69 70 65 6c 69 6e 65 73 20 77 69 74 68 20 ┆ can separate pipelines with ┆
0x012e0…01300 65 69 74 68 65 72 20 60 7c 7c 27 20 6f 72 20 60 26 26 27 20 74 6f 20 69 6e 64 69 63 61 74 65 2c ┆either `||' or `&&' to indicate,┆
0x01300…01320 0a 20 20 20 20 20 61 73 20 69 6e 20 74 68 65 20 43 20 6c 61 6e 67 75 61 67 65 2c 20 74 68 61 74 ┆ as in the C language, that┆
0x01320…01340 20 74 68 65 20 73 65 63 6f 6e 64 20 65 78 65 63 75 74 65 73 20 6f 6e 6c 79 20 69 66 20 74 68 65 ┆ the second executes only if the┆
0x01340…01360 0a 20 20 20 20 20 66 69 72 73 74 20 66 61 69 6c 73 20 6f 72 20 73 75 63 63 65 65 64 73 2c 20 72 ┆ first fails or succeeds, r┆
0x01360…01380 65 73 70 65 63 74 69 76 65 6c 79 2e 20 28 53 65 65 20 5f 08 45 5f 08 78 5f 08 70 5f 08 72 5f 08 ┆espectively. (See _ E_ x_ p_ r_ ┆
0x01380…013a0 65 5f 08 73 5f 08 73 5f 08 69 5f 08 6f 5f 08 6e 5f 08 73 2e 29 0a 0a 20 20 20 20 20 48 08 48 08 ┆e_ s_ s_ i_ o_ n_ s.) H H ┆
0x013a0…013c0 48 08 48 69 08 69 08 69 08 69 73 08 73 08 73 08 73 74 08 74 08 74 08 74 6f 08 6f 08 6f 08 6f 72 ┆H Hi i i is s s st t t to o o or┆
0x013c0…013e0 08 72 08 72 08 72 79 08 79 08 79 08 79 0a 0a 20 20 20 20 20 48 69 73 74 6f 72 79 20 63 68 72 6f ┆ r r ry y y y History chro┆
0x013e0…01400 6e 6f 6c 6f 67 69 63 61 6c 6c 79 20 72 65 63 6f 72 64 73 20 61 6c 6c 20 63 6f 6d 6d 61 6e 64 73 ┆nologically records all commands┆
0x01400…01420 20 67 69 76 65 6e 20 74 6f 20 74 68 65 0a 20 20 20 20 20 73 68 65 6c 6c 2e 20 54 6f 20 69 6e 69 ┆ given to the shell. To ini┆
0x01420…01440 74 69 61 6c 69 7a 65 20 74 68 65 20 68 69 73 74 6f 72 79 20 76 61 72 69 61 62 6c 65 2c 20 61 64 ┆tialize the history variable, ad┆
0x01440…01460 64 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 0a 20 20 20 20 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e ┆d the following command lin┆
0x01460…01480 65 20 74 6f 20 2e 63 73 68 72 63 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 73 65 74 20 68 69 73 74 ┆e to .cshrc: set hist┆
0x01480…014a0 6f 72 79 3d 5f 08 6e 0a 0a 20 20 20 20 20 77 68 65 72 65 20 5f 08 6e 20 72 65 70 72 65 73 65 6e ┆ory=_ n where _ n represen┆
0x014a0…014c0 74 73 20 74 68 65 20 6d 61 78 69 6d 75 6d 20 6e 75 6d 62 65 72 20 6f 66 20 63 6f 6d 6d 61 6e 64 ┆ts the maximum number of command┆
0x014c0…014e0 73 20 72 65 63 6f 72 64 65 64 0a 20 20 20 20 20 69 6e 20 6f 6e 65 20 6c 6f 67 69 6e 20 73 65 73 ┆s recorded in one login ses┆
0x014e0…01500 73 69 6f 6e 2c 20 6c 69 6d 69 74 65 64 20 6f 6e 6c 79 20 62 79 20 74 68 65 20 61 6d 6f 75 6e 74 ┆sion, limited only by the amount┆
0x01500…01520 20 6f 66 20 6d 65 6d 6f 72 79 0a 20 20 20 20 20 61 76 61 69 6c 61 62 6c 65 2e 0a 0a 20 20 20 20 ┆ of memory available. ┆
0x01520…01540 20 54 6f 20 75 73 65 20 68 69 73 74 6f 72 79 2c 20 74 79 70 65 20 68 69 73 74 6f 72 79 20 28 63 ┆ To use history, type history (c┆
0x01540…01560 6f 6d 6d 6f 6e 6c 79 20 61 6c 69 61 73 65 64 20 74 6f 20 68 29 20 61 74 20 74 68 65 0a 20 20 20 ┆ommonly aliased to h) at the ┆
0x01560…01580 20 20 73 79 73 74 65 6d 20 70 72 6f 6d 70 74 2e 20 20 54 68 65 20 6f 75 74 70 75 74 20 63 68 72 ┆ system prompt. The output chr┆
0x01580…015a0 6f 6e 6f 6c 6f 67 69 63 61 6c 6c 79 20 6c 69 73 74 73 20 61 6c 6c 20 63 6f 6d 6d 61 6e 64 0a 20 ┆onologically lists all command ┆
0x015a0…015c0 20 20 20 20 6c 69 6e 65 73 20 65 6e 74 65 72 65 64 20 74 6f 20 5f 08 63 5f 08 73 5f 08 68 2e 20 ┆ lines entered to _ c_ s_ h. ┆
0x015c0…015e0 57 68 65 6e 20 76 69 65 77 69 6e 67 20 68 69 73 74 6f 72 79 20 6f 75 74 70 75 74 2c 20 79 6f 75 ┆When viewing history output, you┆
0x015e0…01600 20 73 65 65 0a 20 20 20 20 20 74 68 61 74 20 61 20 6e 75 6d 62 65 72 20 70 72 65 63 65 64 65 73 ┆ see that a number precedes┆
0x01600…01620 20 65 61 63 68 20 65 6e 74 72 79 2e 20 20 54 68 65 73 65 20 6e 75 6d 62 65 72 73 20 63 6f 72 72 ┆ each entry. These numbers corr┆
0x01620…01640 65 73 70 6f 6e 64 0a 20 20 20 20 20 74 6f 20 74 68 65 20 6f 72 64 65 72 20 74 68 61 74 20 74 68 ┆espond to the order that th┆
0x01640…01660 65 20 63 6f 6d 6d 61 6e 64 73 20 77 65 72 65 20 74 79 70 65 64 2e 20 20 41 20 74 79 70 69 63 61 ┆e commands were typed. A typica┆
0x01660…01680 6c 20 68 69 73 2d 0a 20 20 20 20 20 74 6f 72 79 20 6f 75 70 75 74 20 6c 6f 6f 6b 73 20 6c 69 6b ┆l his- tory ouput looks lik┆
0x01680…016a0 65 20 74 68 69 73 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 31 20 20 20 20 70 75 73 68 64 20 7e 2f ┆e this: 1 pushd ~/┆
0x016a0…016c0 73 75 62 64 69 72 0a 20 20 20 20 20 20 20 20 20 20 32 20 20 20 20 76 69 20 6f 6c 64 66 69 6c 65 ┆subdir 2 vi oldfile┆
0x016c0…016e0 2e 63 0a 20 20 20 20 20 20 20 20 20 20 33 20 20 20 20 68 0a 20 20 20 20 20 20 20 20 20 20 34 20 ┆.c 3 h 4 ┆
0x016e0…01700 20 20 20 6e 72 6f 66 66 20 2d 6d 65 20 2f 62 2f 67 72 6f 75 70 2f 64 69 72 2f 74 65 78 74 66 69 ┆ nroff -me /b/group/dir/textfi┆
0x01700…01720 6c 65 20 26 0a 20 20 20 20 20 20 20 20 20 20 35 20 20 20 20 6d 6f 72 65 20 2f 62 2f 67 72 6f 75 ┆le & 5 more /b/grou┆
0x01720…01740 70 2f 64 69 72 32 2f 61 6e 79 66 69 6c 65 2e 63 0a 20 20 20 20 20 20 20 20 20 20 36 20 20 20 20 ┆p/dir2/anyfile.c 6 ┆
0x01740…01760 70 73 0a 20 20 20 20 20 20 20 20 20 20 37 20 20 20 20 70 6f 70 64 0a 20 20 20 20 20 20 20 20 20 ┆ps 7 popd ┆
0x01760…01780 20 38 20 20 20 20 70 77 64 0a 20 20 20 20 20 20 20 20 20 31 30 20 20 20 20 6c 73 20 2d 6c 20 2e ┆ 8 pwd 10 ls -l .┆
0x01780…017a0 0a 20 20 20 20 20 20 20 20 20 31 31 20 20 20 20 6c 73 20 2d 6c 20 2f 62 2f 7e 2f 73 74 61 74 75 ┆ 11 ls -l /b/~/statu┆
0x017a0…017c0 73 0a 20 20 20 20 20 20 20 20 20 32 30 20 20 20 20 72 6d 20 21 24 2f 73 74 61 74 75 73 2e 6e 6f ┆s 20 rm !$/status.no┆
0x017c0…017e0 76 65 6d 62 65 72 0a 0a 0a 20 20 20 20 20 45 61 63 68 20 74 69 6d 65 20 61 20 75 73 65 72 20 6c ┆vember Each time a user l┆
0x017e0…01800 6f 67 73 20 6f 75 74 20 6f 72 20 63 68 61 6e 67 65 73 20 74 6f 20 61 6e 6f 74 68 65 72 20 73 68 ┆ogs out or changes to another sh┆
0x01800…01820 65 6c 6c 2c 20 5f 08 63 5f 08 73 5f 08 68 0a 20 20 20 20 20 72 65 73 65 74 73 20 74 68 65 20 68 ┆ell, _ c_ s_ h resets the h┆
0x01820…01840 69 73 74 6f 72 79 20 76 61 72 69 61 62 6c 65 2c 20 61 6e 64 20 74 68 65 20 68 69 73 74 6f 72 79 ┆istory variable, and the history┆
0x01840…01860 20 6f 75 74 70 75 74 20 73 74 61 72 74 73 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 6e 75 6d 62 65 72 ┆ output starts number┆
0x01860…01880 69 6e 67 20 61 67 61 69 6e 20 61 74 20 31 2e 0a 0a 20 20 20 20 20 4a 08 4a 08 4a 08 4a 6f 08 6f ┆ing again at 1. J J J Jo o┆
0x01880…018a0 08 6f 08 6f 62 08 62 08 62 08 62 73 08 73 08 73 08 73 0a 0a 20 20 20 20 20 54 68 65 20 73 68 65 ┆ o ob b b bs s s s The she┆
0x018a0…018c0 6c 6c 20 61 73 73 6f 63 69 61 74 65 73 20 61 20 5f 08 6a 5f 08 6f 5f 08 62 20 77 69 74 68 20 65 ┆ll associates a _ j_ o_ b with e┆
0x018c0…018e0 61 63 68 20 70 69 70 65 6c 69 6e 65 2e 20 20 54 68 65 20 73 68 65 6c 6c 0a 20 20 20 20 20 6b 65 ┆ach pipeline. The shell ke┆
0x018e0…01900 65 70 73 20 61 20 74 61 62 6c 65 20 6f 66 20 63 75 72 72 65 6e 74 20 6a 6f 62 73 20 61 6e 64 20 ┆eps a table of current jobs and ┆
0x01900…01920 61 73 73 69 67 6e 73 20 74 6f 20 74 68 65 6d 20 73 6d 61 6c 6c 0a 20 20 20 20 20 69 6e 74 65 67 ┆assigns to them small integ┆
[…truncated at 200 lines…]