home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Tools / nShell™ 1.0.3 / nShell / bin / man < prev    next >
MacBinary  |  1994-09-24  |  12.5 KB  |  [NSHC/NSHA]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: man

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Sat Sep 24 03:22:45 1994, modified Sat Sep 24 03:22:51 1994, creator 'NSHA', type 'NSHC' "man", at 0x80 12605 bytes resource Apple HFS/HFS+ resource fork, map offset 0x2e96, map length 0x2a7, data length 0x2d96, at 16 0x15050b47, nextResourceMap 0x51ca2c, fileRef 0xaa8, list offset 0x1c, name offset 0x14a, 3 types, 0x4e534843 'NSHC' * 1 resource offset 0x1a default (weak)
99% file Adobe Photoshop Color swatch, version 0, 256 colors; 1st RGB space (0), w 0x2e96, x 0, y 0x2d96, z 0 ; 2nd space (679), w 0x1505, x 0xb47, y 0x1b66, z 0x1d2 default (weak)
98% file data default
98% TrID MacBinary 2 default (weak)
1% TrID Sybase iAnywhere database files default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[NSHC]
macFileCreator[NSHA]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 03 6d 61 6e 00 00 00 | 00 00 00 00 00 00 00 00 |..man...|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4e 53 48 43 4e 53 48 | 41 01 00 00 00 00 00 00 |.NSHCNSH|A.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 31 3d aa a9 84 45 aa |........|.1=...E.|
|00000060| a9 84 4b 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..K.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 eb c5 00 00 |........|........|
|00000080| 00 00 01 00 00 00 2e 96 | 00 00 2d 96 00 00 02 a7 |........|..-.....|
|00000090| 15 05 0b 47 1b 66 01 d2 | 16 75 0b 48 03 d9 1b 66 |...G.f..|.u.H...f|
|000000a0| 01 1c 16 75 0b 49 03 da | 1b 66 01 60 16 75 0b 4a |...u.I..|.f.`.u.J|
|000000b0| 03 6d 61 6e 02 00 00 00 | 4e 53 48 43 4e 53 48 41 |.man....|NSHCNSHA|
|000000c0| 01 00 00 9c 00 c0 00 00 | 00 00 16 eb 00 00 00 00 |........|........|
|000000d0| 00 00 4e 53 48 43 4e 53 | 48 41 01 00 00 9c 00 c0 |..NSHCNS|HA......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 aa a9 84 45 00 00 | 00 00 00 00 31 3d 0b 54 |.....E..|....1=.T|
|00000100| 17 04 15 02 0b 55 17 05 | 15 02 0b 56 17 01 15 02 |.....U..|...V....|
|00000110| 0b 57 17 02 15 9b 01 61 | 1a 10 15 66 01 60 1a 10 |.W.....a|...f.`..|
|00000120| 15 66 01 5f 1a 10 15 66 | 01 5e 1a 10 15 66 01 5d |.f._...f|.^...f.]|
|00000130| 1a 10 15 66 01 5c 1a 10 | 15 7b 01 5b 1a 10 15 75 |...f.\..|.{.[...u|
|00000140| 01 5a 1a 10 15 09 01 59 | 1a 10 15 5c 0b 5c 1a 30 |.Z.....Y|...\.\.0|
|00000150| 3c 01 00 00 01 00 00 01 | 76 d2 00 01 75 d2 00 00 |<.......|v...u...|
|00000160| 00 32 00 5f 94 f8 08 74 | 00 00 00 1c 00 32 00 00 |.2._...t|.....2..|
|00000170| 48 45 41 44 00 00 00 0a | 00 05 ff ff 00 00 00 00 |HEAD....|........|
|00000180| 00 00 06 50 60 0e 00 00 | 4e 53 48 43 3e 80 00 00 |...P`...|NSHC>...|
|00000190| 00 00 00 00 41 fa ff ee | 4e 71 4e 71 60 00 01 7c |....A...|NqNq`..||
|000001a0| 20 6f 00 04 20 2f 00 08 | 42 67 a9 ee 20 5f 50 4f | o.. /..|Bg.. _PO|
|000001b0| 4e d0 4e 56 00 00 48 e7 | 01 30 26 6e 00 0c 42 a7 |N.NV..H.|.0&n..B.|
|000001c0| 2f 0b a9 a5 2e 1f 20 07 | 54 80 20 4b a0 24 20 4b |/..... .|T. K.$ K|
|000001d0| a0 29 24 53 0c 32 00 0d | 78 ff 67 0c 15 bc 00 0d |.)$S.2..|x.g.....|
|000001e0| 78 00 42 32 78 01 60 04 | 42 32 78 00 2f 0a 20 6e |x.B2x.`.|B2x./. n|
|000001f0| 00 08 20 68 00 14 4e 90 | 20 4b a0 2a 2e 8b a9 a3 |.. h..N.| K.*....|
|00000200| 4c df 0c 80 4e 5e 4e 75 | 6d 61 6e 5f 64 69 73 70 |L...N^Nu|man_disp|
|00000210| 4e 56 fe 00 48 e7 03 30 | 26 6e 00 08 7c 00 30 2e |NV..H..0|&n..|.0.|
|00000220| 00 10 48 c0 d0 80 30 33 | 08 08 20 4b d0 c0 48 68 |..H...03|.. K..Hh|
|00000230| 00 d0 48 6e fe 00 4e ba | 03 7c 7e ff 48 6e fe 00 |..Hn..N.|.|~.Hn..|
|00000240| 20 6e 00 0c 20 68 00 40 | 4e 90 4a 40 4f ef 00 0c | n.. h.@|N.J@O...|
|00000250| 66 0a 42 67 48 6e fe 00 | a9 97 3e 1f 4a 47 6c 06 |f.BgHn..|..>.JGl.|
|00000260| 70 01 60 00 00 96 48 7a | 00 ac 48 6e ff 00 4e ba |p.`...Hz|..Hn..N.|
|00000270| 03 44 4a 6e 00 10 50 8f | 66 24 30 2b 00 0a 20 4b |.DJn..P.|f$0+.. K|
|00000280| d0 c0 48 68 00 d0 48 6e | ff 00 4e ba 03 fc 48 7a |..Hh..Hn|..N...Hz|
|00000290| 00 82 48 6e ff 00 4e ba | 03 f0 4f ef 00 10 0c 6b |..Hn..N.|..O....k|
|000002a0| 00 02 00 06 6f 18 30 2b | 00 0c 20 4b d0 c0 48 68 |....o.0+|.. K..Hh|
|000002b0| 00 d0 48 6e ff 00 4e ba | 03 d0 50 8f 60 0e 48 7a |..Hn..N.|..P.`.Hz|
|000002c0| 00 4a 48 6e ff 00 4e ba | 03 c0 50 8f 42 a7 2f 3c |.JHn..N.|..P.B./<|
|000002d0| 54 45 58 54 48 6e ff 00 | a9 a1 24 5f 20 0a 66 04 |TEXTHn..|..$_ .f.|
|000002e0| 7c 02 60 0c 2f 0a 2f 2e | 00 0c 4e ba fe c6 50 8f ||.`././.|..N...P.|
|000002f0| 4a 47 67 04 3f 07 a9 9a | 30 06 4c df 0c c0 4e 5e |JGg.?...|0.L...N^|
|00000300| 4e 75 6d 61 6e 5f 67 65 | 74 20 67 65 6e 65 72 61 |Numan_ge|t genera|
|00000310| 6c 00 20 00 6d 61 6e 20 | 00 00 4e 56 00 00 48 e7 |l. .man |..NV..H.|
|00000320| 03 30 26 6e 00 08 24 6e | 00 0c 42 2b 00 02 7e 01 |.0&n..$n|..B+..~.|
|00000330| 3f 3c 00 0a 2f 0a 2f 0b | 4e ba 00 ae 4a 40 4f ef |?<.././.|N...J@O.|
|00000340| 00 0a 66 56 3c 2b 00 06 | 0c 46 00 02 6d 06 0c 46 |..fV<+..|.F..m..F|
|00000350| 00 03 6f 0e 48 7a 00 72 | 20 52 4e 90 7e fd 58 8f |..o.Hz.r| RN.~.X.|
|00000360| 60 30 3f 3c 00 01 2f 0a | 2f 0b 4e ba fe a4 3e 00 |`0?<../.|/.N...>.|
|00000370| 4f ef 00 0a 67 1c 42 67 | 2f 0a 2f 0b 4e ba fe 92 |O...g.Bg|/./.N...|
|00000380| 3e 00 4f ef 00 0a 67 0a | 48 7a 00 20 20 52 4e 90 |>.O...g.|Hz. RN.|
|00000390| 58 8f 37 47 00 04 42 2b | 00 02 4c df 0c c0 4e 5e |X.7G..B+|..L...N^|
|000003a0| 4e 75 6d 61 69 6e 20 20 | 20 20 1c 6d 61 6e 3a 20 |Numain | .man: |
|000003b0| 4d 61 6e 75 61 6c 20 50 | 61 67 65 20 4e 6f 74 20 |Manual P|age Not |
|000003c0| 46 6f 75 6e 64 2e 0d 00 | 1e 55 73 61 67 65 3a 20 |Found...|.Usage: |
|000003d0| 6d 61 6e 20 63 6f 6d 6d | 61 6e 64 20 5b 73 65 63 |man comm|and [sec|
|000003e0| 74 69 6f 6e 5d 2e 0d 00 | 4e 56 00 00 20 6e 00 08 |tion]...|NV.. n..|
|000003f0| 30 10 b0 6e 00 10 67 1e | 48 7a 00 2a 20 6e 00 0c |0..n..g.|Hz.* n..|
|00000400| 20 50 4e 90 20 6e 00 08 | 31 7c ff fe 00 04 42 28 | PN. n..|1|....B(|
|00000410| 00 02 70 01 60 02 70 00 | 4e 5e 4e 75 6e 73 68 63 |..p.`.p.|N^Nunshc|
|00000420| 5f 62 61 64 2d 54 68 69 | 73 20 63 6f 6d 6d 61 6e |_bad-Thi|s comman|
|00000430| 64 20 69 73 20 6e 6f 74 | 20 6f 66 20 61 20 63 6f |d is not| of a co|
|00000440| 6d 70 61 74 69 62 6c 65 | 20 76 65 72 73 69 6f 6e |mpatible| version|
|00000450| 2e 0d 4e 56 00 00 48 e7 | 1f 10 26 6e 00 08 7a 01 |..NV..H.|..&n..z.|
|00000460| 78 00 60 54 20 4b d0 c5 | 3c 30 50 08 30 06 52 46 |x.`T K..|<0P.0.RF|
|00000470| 20 4b d0 c0 0c 28 00 2d | 00 d0 66 34 76 00 60 22 | K...(.-|..f4v.`"|
|00000480| be 2e 00 0c 66 02 38 05 | 0c 07 00 61 6d 06 0c 07 |....f.8.|...am...|
|00000490| 00 7a 6f 0e 0c 07 00 41 | 6d 06 0c 07 00 5a 6f 02 |.zo....A|m....Zo.|
|000004a0| 76 01 30 06 52 46 20 4b | d0 c0 1e 28 00 d0 66 d0 |v.0.RF K|...(..f.|
|000004b0| 4a 43 67 02 78 00 52 45 | 4a 44 66 06 ba 6b 00 06 |JCg.x.RE|JDf..k..|
|000004c0| 6d a2 30 04 4c df 08 f8 | 4e 5e 4e 75 6e 73 68 63 |m.0.L...|N^Nunshc|
|000004d0| 5f 67 6f 74 4e 56 00 00 | 48 e7 07 10 26 6e 00 08 |_gotNV..|H...&n..|
|000004e0| 7e 01 30 2e 00 0c 48 c0 | d0 80 3c 33 08 08 20 4b |~.0...H.|..<3.. K|
|000004f0| d0 c6 0c 28 00 2d 00 d0 | 66 12 52 46 60 0e 0c 05 |...(.-..|f.RF`...|
|00000500| 00 30 6d 06 0c 05 00 39 | 6f 02 7e 00 4a 47 67 0e |.0m....9|o.~.JGg.|
|00000510| 30 06 52 46 20 4b d0 c0 | 1a 28 00 d0 66 e0 30 07 |0.RF K..|.(..f.0.|
|00000520| 4c df 08 e0 4e 5e 4e 75 | 6e 73 68 63 5f 69 73 5f |L...N^Nu|nshc_is_|
|00000530| 4e 56 00 00 48 e7 03 00 | 30 6e 00 0c d1 c8 d1 ee |NV..H...|0n......|
|00000540| 00 08 3e 28 00 08 30 07 | 52 47 20 6e 00 08 d0 c0 |..>(..0.|RG n....|
|00000550| 1c 28 00 d0 0c 06 00 2d | 56 c0 44 00 48 80 4c df |.(.....-|V.D.H.L.|
|00000560| 00 c0 4e 5e 4e 75 6e 73 | 68 63 5f 69 73 5f 4e 56 |..N^Nuns|hc_is_NV|
|00000570| 00 00 48 e7 03 00 7c 01 | dc 6e 00 0c 7e 00 60 14 |..H...|.|.n..~.`.|
|00000580| 3f 06 2f 2e 00 08 4e ba | ff a8 4a 40 5c 8f 67 02 |?./...N.|..J@\.g.|
|00000590| 3e 06 52 46 4a 47 66 0a | 20 6e 00 08 bc 68 00 06 |>.RFJGf.| n...h..|
|000005a0| 6d de 30 07 4c df 00 c0 | 4e 5e 4e 75 6e 73 68 63 |m.0.L...|N^Nunshc|
|000005b0| 5f 6e 65 78 4e 56 00 00 | 48 e7 03 00 7e 00 60 0a |_nexNV..|H...~.`.|
|000005c0| 52 47 20 6e 00 08 11 86 | 70 00 20 6e 00 0c 52 ae |RG n....|p. n..R.|
|000005d0| 00 0c 1c 10 66 ea 20 6e | 00 08 10 87 4c df 00 c0 |....f. n|....L...|
|000005e0| 4e 5e 4e 75 70 53 74 72 | 46 72 6f 6d 4e 56 00 00 |N^NupStr|FromNV..|
|000005f0| 2f 07 20 6e 00 0c 52 ae | 00 0c 22 6e 00 08 52 ae |/. n..R.|.."n..R.|
|00000600| 00 08 1e 10 12 87 70 00 | 10 07 3e 00 60 12 20 6e |......p.|..>.`. n|
|00000610| 00 0c 52 ae 00 0c 22 6e | 00 08 52 ae 00 08 12 90 |..R..."n|..R.....|
|00000620| 53 47 4a 47 6c e8 2e 1f | 4e 5e 4e 75 70 53 74 72 |SGJGl...|N^NupStr|
|00000630| 43 6f 70 79 4e 56 00 00 | 48 e7 07 10 26 6e 00 08 |CopyNV..|H...&n..|
|00000640| 7e 00 1e 13 20 6e 00 0c | 7c 00 1c 10 4a 46 67 28 |~... n..||...JFg(|
|00000650| 30 07 d0 46 0c 40 01 00 | 6c 1e 7a 01 60 10 20 6e |0..F.@..|l.z.`. n|
|00000660| 00 0c 30 07 d0 45 17 b0 | 50 00 00 00 52 45 bc 45 |..0..E..|P...RE.E|
|00000670| 6c ec 10 07 d0 06 16 80 | 4c df 08 e0 4e 5e 4e 75 |l.......|L...N^Nu|
|00000680| 70 53 74 72 41 70 70 65 | 4e 56 00 00 48 e7 03 10 |pStrAppe|NV..H...|
|00000690| 26 6e 00 08 7e 00 1e 13 | 60 06 52 47 17 86 70 00 |&n..~...|`.RG..p.|
|000006a0| 20 6e 00 0c 52 ae 00 0c | 1c 10 66 ee 0c 47 01 00 | n..R...|..f..G..|
|000006b0| 6c 02 16 87 4c df 08 c0 | 4e 5e 4e 75 70 53 74 72 |l...L...|N^NupStr|
|000006c0| 41 70 70 65 4e 56 00 00 | 2f 07 20 6e 00 08 7e 00 |AppeNV..|/. n..~.|
|000006d0| 1e 10 22 6e 00 0c 70 00 | 10 11 b0 47 67 1c 70 00 |.."n..p.|...Gg.p.|
|000006e0| 60 1e 20 6e 00 08 22 6e | 00 0c 10 30 70 00 b0 31 |`. n.."n|...0p..1|
|000006f0| 70 00 67 04 70 00 60 08 | 53 47 4a 47 66 e4 70 01 |p.g.p.`.|SGJGf.p.|
|00000700| 2e 1f 4e 5e 4e 75 70 53 | 74 72 45 71 75 61 4e 56 |..N^NupS|trEquaNV|
|00000710| 00 00 2f 07 20 6e 00 08 | 52 ae 00 08 1e 10 20 6e |../. n..|R..... n|
|00000720| 00 0c 52 ae 00 0c be 10 | 67 04 70 00 60 06 4a 07 |..R.....|g.p.`.J.|
|00000730| 66 e2 70 01 2e 1f 4e 5e | 4e 75 63 53 74 72 45 71 |f.p...N^|NucStrEq|
|00000740| 75 61 4e 56 00 00 2f 07 | 7e 00 60 02 52 47 20 6e |uaNV../.|~.`.RG n|
|00000750| 00 08 52 ae 00 08 4a 10 | 66 f2 30 07 2e 1f 4e 5e |..R...J.|f.0...N^|
|00000760| 4e 75 63 53 74 72 4c 65 | 6e 20 4e 56 ff de 48 e7 |NucStrLe|n NV..H.|
|00000770| 07 10 3e 2e 00 0c 26 6e | 00 08 30 6e 00 0e 2f 08 |..>...&n|..0n../.|
|00000780| 48 6e ff de 4e ba fa 1a | 7a 00 1a 2e ff de be 45 |Hn..N...|z......E|
|00000790| 6c 10 7c 00 60 08 17 bc | 00 2a 60 00 52 46 be 46 |l.|.`...|.*`.RF.F|
|000007a0| 6e f4 3c 07 60 1a 4a 45 | 67 0e 30 05 53 45 53 46 |n.<.`.JE|g.0.SESF|
|000007b0| 17 b6 00 de 60 00 60 08 | 53 46 17 bc 00 20 60 00 |....`.`.|SF... `.|
|000007c0| 4a 46 66 e2 4c df 08 e0 | 4e 5e 4e 75 63 53 74 72 |JFf.L...|N^NucStr|
|000007d0| 46 72 6f 6d 00 00 00 37 | 01 03 80 00 00 00 05 31 |From...7|.......1|
|000007e0| 2e 30 2e 33 2a 31 2e 30 | 2e 33 2c 20 a9 20 4e 65 |.0.3*1.0|.3, . Ne|
|000007f0| 77 70 6f 72 74 20 53 6f | 66 74 77 61 72 65 20 44 |wport So|ftware D|
|00000800| 65 76 65 6c 6f 70 6d 65 | 6e 74 20 31 39 39 34 00 |evelopme|nt 1994.|
|00000810| 00 00 27 01 03 80 00 00 | 00 05 31 2e 30 2e 33 1a |..'.....|..1.0.3.|
|00000820| 31 2e 30 2e 33 20 28 41 | 6e 20 6e 53 68 65 6c 6c |1.0.3 (A|n nShell|
|00000830| aa 20 43 6f 6d 6d 61 6e | 64 29 00 00 02 03 0d 4e |. Comman|d).....N|
|00000840| 41 4d 45 0d 0d 6d 61 6e | 20 2d 20 63 6f 6d 6d 61 |AME..man| - comma|
|00000850| 6e 64 20 6c 69 6e 65 20 | 6d 61 6e 75 61 6c 0d 0d |nd line |manual..|
|00000860| 53 59 4e 4f 50 53 49 53 | 0d 0d 6d 61 6e 20 63 6f |SYNOPSIS|..man co|
|00000870| 6d 6d 61 6e 64 20 5b 73 | 65 63 74 69 6f 6e 5d 0d |mmand [s|ection].|
|00000880| 0d 44 45 53 43 52 49 50 | 54 49 4f 4e 0d 0d 54 68 |.DESCRIP|TION..Th|
|00000890| 65 20 22 6d 61 6e 22 20 | 70 72 6f 67 72 61 6d 20 |e "man" |program |
|000008a0| 72 65 61 64 73 20 61 20 | 64 65 73 63 72 69 70 74 |reads a |descript|
|000008b0| 69 76 65 20 74 65 78 74 | 20 72 65 73 6f 75 72 63 |ive text| resourc|
|000008c0| 65 20 66 72 6f 6d 20 77 | 69 74 68 69 6e 20 61 20 |e from w|ithin a |
|000008d0| 73 65 6c 65 63 74 65 64 | 20 63 6f 6d 6d 61 6e 64 |selected| command|
|000008e0| 20 61 6e 64 20 77 72 69 | 74 65 73 20 74 68 61 74 | and wri|tes that|
|000008f0| 20 74 65 78 74 20 74 6f | 20 73 74 61 6e 64 61 72 | text to| standar|
|00000900| 64 20 6f 75 74 70 75 74 | 2e 0d 0d 4e 6f 74 65 3a |d output|...Note:|
|00000910| 20 4d 61 6e 20 70 61 67 | 65 73 20 61 72 65 20 61 | Man pag|es are a|
|00000920| 76 61 69 6c 61 62 6c 65 | 20 66 6f 72 20 66 6c 6f |vailable| for flo|
|00000930| 77 2d 6f 66 2d 63 6f 6e | 74 72 6f 6c 20 73 74 61 |w-of-con|trol sta|
|00000940| 74 65 6d 65 6e 74 73 2c | 20 62 75 74 20 74 68 65 |tements,| but the|
|00000950| 79 20 6d 75 73 74 20 62 | 65 20 71 75 6f 74 65 64 |y must b|e quoted|
|00000960| 20 73 6f 20 74 68 61 74 | 20 74 68 65 20 73 68 65 | so that| the she|
|00000970| 6c 6c 20 6b 6e 6f 77 73 | 20 68 6f 77 20 74 6f 20 |ll knows| how to |
|00000980| 65 78 65 63 75 74 65 20 | 74 68 65 6d 3a 0d 0d 6d |execute |them:..m|
|00000990| 61 6e 20 22 69 66 22 0d | 6d 61 6e 20 22 77 68 69 |an "if".|man "whi|
|000009a0| 6c 65 22 0d 0d 52 45 54 | 55 52 4e 20 43 4f 44 45 |le"..RET|URN CODE|
|000009b0| 53 0d 0d 3c 30 09 45 72 | 72 6f 72 0d 30 09 53 75 |S..<0.Er|ror.0.Su|
|000009c0| 63 63 65 73 73 0d 0d 53 | 45 45 20 41 4c 53 4f 0d |ccess..S|EE ALSO.|
|000009d0| 0d 74 72 79 20 22 6d 61 | 6e 20 6d 61 6e 20 72 65 |.try "ma|n man re|
|000009e0| 73 6f 75 72 63 65 73 22 | 0d 0d 54 68 65 20 6e 53 |sources"|..The nS|
|000009f0| 68 65 6c 6c 20 50 72 6f | 67 72 61 6d 6d 65 72 27 |hell Pro|grammer'|
|00000a00| 73 20 47 75 69 64 65 20 | 63 6f 6e 74 61 69 6e 73 |s Guide |contains|
|00000a10| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 69 6e 66 6f | additio|nal info|
|00000a20| 72 6d 61 74 69 6f 6e 20 | 6f 6e 20 77 72 69 74 69 |rmation |on writi|
|00000a30| 6e 67 20 6d 61 6e 20 72 | 65 73 6f 75 72 63 65 73 |ng man r|esources|
|00000a40| 2e 00 00 01 1c 0d 4d 41 | 4e 20 52 45 53 4f 55 52 |......MA|N RESOUR|
|00000a50| 43 45 53 0d 0d 54 6f 20 | 63 72 65 61 74 65 20 6d |CES..To |create m|
|00000a60| 61 6e 20 70 61 67 65 73 | 20 66 6f 72 20 79 6f 75 |an pages| for you|
|00000a70| 72 20 6f 77 6e 20 63 6f | 6d 6d 61 6e 64 73 2c 20 |r own co|mmands, |
|00000a80| 63 72 65 61 74 65 20 54 | 45 58 54 20 72 65 73 6f |create T|EXT reso|
|00000a90| 75 72 63 65 73 20 77 69 | 74 68 3a 0d 0d 31 2e 20 |urces wi|th:..1. |
|00000aa0| 20 20 20 20 52 65 73 6f | 75 72 63 65 20 49 44 73 | Reso|urce IDs|
|00000ab0| 20 61 62 6f 76 65 20 73 | 69 78 74 65 65 6e 20 74 | above s|ixteen t|
|00000ac0| 68 6f 75 73 61 6e 64 2e | 0d 32 2e 20 20 20 20 20 |housand.|.2. |
|00000ad0| 52 65 73 6f 75 72 63 65 | 20 6e 61 6d 65 73 20 6f |Resource| names o|
|00000ae0| 66 20 74 68 65 20 66 6f | 72 6d 61 74 20 22 6d 61 |f the fo|rmat "ma|
|00000af0| 6e 20 73 75 62 6a 65 63 | 74 22 0d 0d 4e 6f 74 65 |n subjec|t"..Note|
|00000b00| 20 74 68 61 74 20 74 68 | 65 20 72 65 73 6f 75 72 | that th|e resour|
|00000b10| 63 65 20 77 69 74 68 20 | 74 68 65 20 6e 61 6d 65 |ce with |the name|
|00000b20| 20 22 6d 61 6e 20 67 65 | 6e 65 72 61 6c 22 20 69 | "man ge|neral" i|
|00000b30| 73 20 75 73 65 64 20 77 | 68 65 6e 20 74 68 65 20 |s used w|hen the |
|00000b40| 75 73 65 72 20 64 6f 65 | 73 20 6e 6f 74 20 73 70 |user doe|s not sp|
|00000b50| 65 63 69 66 79 20 61 20 | 73 75 62 6a 65 63 74 2e |ecify a |subject.|
|00000b60| 0d 00 00 02 34 0d 4e 41 | 4d 45 0d 0d 73 65 74 20 |....4.NA|ME..set |
|00000b70| 2d 20 73 65 74 20 65 6e | 76 69 72 6f 6e 6d 65 6e |- set en|vironmen|
|00000b80| 74 61 6c 20 76 61 72 69 | 61 62 6c 65 73 0d 0d 53 |tal vari|ables..S|
|00000b90| 59 4e 4f 50 53 49 53 0d | 0d 73 65 74 20 6e 61 6d |YNOPSIS.|.set nam|
|00000ba0| 65 20 5b 76 61 6c 75 65 | 5d 0d 0d 44 45 53 43 52 |e [value|]..DESCR|
|00000bb0| 49 50 54 49 4f 4e 0d 0d | 54 68 65 20 22 73 65 74 |IPTION..|The "set|
|00000bc0| 22 20 63 6f 6d 6d 61 6e | 64 20 61 6c 6c 6f 77 73 |" comman|d allows|
|00000bd0| 20 74 68 65 20 6f 70 65 | 72 61 74 6f 72 20 74 6f | the ope|rator to|
|00000be0| 20 73 65 74 20 76 61 72 | 69 61 62 6c 65 73 20 77 | set var|iables w|
|00000bf0| 69 74 68 69 6e 20 74 68 | 65 20 73 68 65 6c 6c 20 |ithin th|e shell |
|00000c00| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 2e 20 20 54 68 |environm|ent. Th|
|00000c10| 65 20 6e 6f 72 6d 61 6c | 20 73 79 6e 74 61 78 20 |e normal| syntax |
|00000c20| 69 6e 63 6c 75 64 65 73 | 20 61 20 22 76 61 6c 75 |includes| a "valu|
|00000c30| 65 22 20 73 74 72 69 6e | 67 2e 20 20 49 66 20 6e |e" strin|g. If n|
|00000c40| 6f 20 76 61 6c 75 65 20 | 69 73 20 67 69 76 65 6e |o value |is given|
|00000c50| 2c 20 74 68 65 20 73 68 | 65 6c 6c 20 76 61 72 69 |, the sh|ell vari|
|00000c60| 61 62 6c 65 20 69 73 20 | 73 65 74 20 65 71 75 61 |able is |set equa|
|00000c70| 6c 20 74 6f 20 61 20 6e | 75 6c 6c 20 73 74 72 69 |l to a n|ull stri|
|00000c80| 6e 67 2e 0d 0d 56 61 72 | 69 61 62 6c 65 20 6e 61 |ng...Var|iable na|
|00000c90| 6d 65 73 20 61 72 65 20 | 6c 69 6d 69 74 65 64 20 |mes are |limited |
|00000ca0| 74 6f 20 74 68 65 20 63 | 68 61 72 61 63 74 65 72 |to the c|haracter|
|00000cb0| 73 20 61 2d 7a 2c 20 41 | 2d 5a 2c 20 30 2d 39 2c |s a-z, A|-Z, 0-9,|
|00000cc0| 20 5f 20 61 6e 64 20 6d | 61 79 20 62 65 20 33 31 | _ and m|ay be 31|
|00000cd0| 20 63 68 61 72 61 63 74 | 65 72 73 20 69 6e 20 6c | charact|ers in l|
|00000ce0| 65 6e 67 74 68 2e 20 20 | 54 68 65 20 76 61 6c 75 |ength. |The valu|
|00000cf0| 65 20 73 74 72 69 6e 67 | 20 6d 61 79 20 63 6f 6e |e string| may con|
|00000d00| 74 61 69 6e 20 61 6e 79 | 20 63 68 61 72 61 63 74 |tain any| charact|
|00000d10| 65 72 20 61 6e 64 20 6d | 61 79 20 62 65 20 32 35 |er and m|ay be 25|
|00000d20| 35 20 63 68 61 72 61 63 | 74 65 72 73 20 69 6e 20 |5 charac|ters in |
|00000d30| 6c 65 6e 67 74 68 2e 0d | 0d 52 45 54 55 52 4e 20 |length..|.RETURN |
|00000d40| 43 4f 44 45 53 0d 0d 3c | 30 09 41 6e 20 65 72 72 |CODES..<|0.An err|
|00000d50| 6f 72 20 70 72 65 76 65 | 6e 74 65 64 20 74 68 65 |or preve|nted the|
|00000d60| 20 61 73 73 69 67 6e 6d | 65 6e 74 0d 30 09 53 75 | assignm|ent.0.Su|
|00000d70| 63 63 65 73 73 66 75 6c | 20 61 73 73 69 67 6e 6d |ccessful| assignm|
|00000d80| 65 6e 74 0d 0d 53 45 45 | 20 41 4c 53 4f 0d 0d 75 |ent..SEE| ALSO..u|
|00000d90| 6e 73 65 74 2c 20 65 6e | 76 00 00 01 64 0d 4e 41 |nset, en|v...d.NA|
|00000da0| 4d 45 0d 0d 75 6e 73 65 | 74 20 2d 20 72 65 6d 6f |ME..unse|t - remo|
|00000db0| 76 65 20 61 20 73 68 65 | 6c 6c 20 76 61 72 69 61 |ve a she|ll varia|
|00000dc0| 62 6c 65 0d 0d 53 59 4e | 4f 50 53 49 53 0d 0d 75 |ble..SYN|OPSIS..u|
|00000dd0| 6e 73 65 74 20 6e 61 6d | 65 0d 0d 44 45 53 43 52 |nset nam|e..DESCR|
|00000de0| 49 50 54 49 4f 4e 0d 0d | 54 68 65 20 22 75 6e 73 |IPTION..|The "uns|
|00000df0| 65 74 22 20 63 6f 6d 6d | 61 6e 64 20 72 65 6d 6f |et" comm|and remo|
|00000e00| 76 65 73 20 74 68 65 20 | 6e 61 6d 65 64 20 76 61 |ves the |named va|
|00000e10| 72 69 61 62 6c 65 20 66 | 72 6f 6d 20 74 68 65 20 |riable f|rom the |
|00000e20| 73 68 65 6c 6c 20 65 6e | 76 69 72 6f 6e 6d 65 6e |shell en|vironmen|
|00000e30| 74 2e 0d 0d 56 61 72 69 | 61 62 6c 65 20 6e 61 6d |t...Vari|able nam|
|00000e40| 65 73 20 61 72 65 20 6c | 69 6d 69 74 65 64 20 74 |es are l|imited t|
|00000e50| 6f 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 73 |o the ch|aracters|
|00000e60| 20 61 2d 7a 2c 20 41 2d | 5a 2c 20 30 2d 39 2c 20 | a-z, A-|Z, 0-9, |
|00000e70| 5f 20 61 6e 64 20 6d 61 | 79 20 62 65 20 33 31 20 |_ and ma|y be 31 |
|00000e80| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 6c 65 |characte|rs in le|
|00000e90| 6e 67 74 68 2e 0d 0d 52 | 45 54 55 52 4e 20 43 4f |ngth...R|ETURN CO|
|00000ea0| 44 45 53 0d 0d 3c 30 09 | 41 6e 20 65 72 72 6f 72 |DES..<0.|An error|
|00000eb0| 20 70 72 65 76 65 6e 74 | 65 64 20 74 68 65 20 72 | prevent|ed the r|
|00000ec0| 65 6d 6f 76 61 6c 0d 30 | 09 53 75 63 63 65 73 73 |emoval.0|.Success|
|00000ed0| 66 75 6c 20 72 65 6d 6f | 76 61 6c 20 6f 72 20 6e |ful remo|val or n|
|00000ee0| 61 6d 65 20 6e 6f 74 20 | 66 6f 75 6e 64 0d 0d 53 |ame not |found..S|
|00000ef0| 45 45 20 41 4c 53 4f 0d | 0d 73 65 74 2c 20 65 6e |EE ALSO.|.set, en|
|00000f00| 76 00 00 01 d0 0d 4e 41 | 4d 45 0d 0d 65 6e 76 20 |v.....NA|ME..env |
|00000f10| 2d 20 6c 69 73 74 20 73 | 68 65 6c 6c 20 76 61 72 |- list s|hell var|
|00000f20| 69 61 62 6c 65 73 0d 0d | 53 59 4e 4f 50 53 49 53 |iables..|SYNOPSIS|
|00000f30| 0d 0d 65 6e 76 20 5b 6e | 61 6d 65 31 5d 20 5b 6e |..env [n|ame1] [n|
|00000f40| 61 6d 65 32 5d 20 2e 20 | 2e 20 2e 20 0d 0d 44 45 |ame2] . |. . ..DE|
|00000f50| 53 43 52 49 50 54 49 4f | 4e 0d 0d 54 68 65 20 22 |SCRIPTIO|N..The "|
|00000f60| 65 6e 76 22 20 63 6f 6d | 6d 61 6e 64 20 77 69 6c |env" com|mand wil|
|00000f70| 6c 20 6c 69 73 74 20 74 | 68 65 20 63 75 72 72 65 |l list t|he curre|
|00000f80| 6e 74 20 73 68 65 6c 6c | 20 65 6e 76 69 72 6f 6e |nt shell| environ|
|00000f90| 6d 65 6e 74 2e 20 20 56 | 61 72 69 61 62 6c 65 73 |ment. V|ariables|
|00000fa0| 20 61 72 65 20 6c 69 73 | 74 65 64 20 77 69 74 68 | are lis|ted with|
|00000fb0| 20 74 68 65 69 72 20 76 | 61 6c 75 65 73 2e 20 20 | their v|alues. |
|00000fc0| 49 66 20 6e 6f 20 70 61 | 72 61 6d 65 74 65 72 73 |If no pa|rameters|
|00000fd0| 20 61 72 65 20 67 69 76 | 65 6e 2c 20 61 6c 6c 20 | are giv|en, all |
|00000fe0| 61 63 74 69 76 65 20 73 | 68 65 6c 6c 20 76 61 72 |active s|hell var|
|00000ff0| 69 61 62 6c 65 73 20 61 | 72 65 20 6c 69 73 74 65 |iables a|re liste|
|00001000| 64 2e 0d 0d 56 61 72 69 | 61 62 6c 65 20 6e 61 6d |d...Vari|able nam|
|00001010| 65 73 20 61 72 65 20 6c | 69 6d 69 74 65 64 20 74 |es are l|imited t|
|00001020| 6f 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 73 |o the ch|aracters|
|00001030| 20 61 2d 7a 2c 20 41 2d | 5a 2c 20 30 2d 39 2c 20 | a-z, A-|Z, 0-9, |
|00001040| 5f 20 61 6e 64 20 6d 61 | 79 20 62 65 20 33 31 20 |_ and ma|y be 31 |
|00001050| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 6c 65 |characte|rs in le|
|00001060| 6e 67 74 68 2e 0d 0d 52 | 45 54 55 52 4e 20 43 4f |ngth...R|ETURN CO|
|00001070| 44 45 53 0d 0d 3c 30 09 | 41 6e 20 65 72 72 6f 72 |DES..<0.|An error|
|00001080| 20 70 72 65 76 65 6e 74 | 65 64 20 74 68 65 20 73 | prevent|ed the s|
|00001090| 65 61 72 63 68 0d 30 09 | 53 75 63 63 65 73 73 66 |earch.0.|Successf|
|000010a0| 75 6c 20 73 65 61 72 63 | 68 20 28 69 6e 63 2e 20 |ul searc|h (inc. |
|000010b0| 6e 61 6d 65 20 6e 6f 74 | 20 66 6f 75 6e 64 29 0d |name not| found).|
|000010c0| 0d 53 45 45 20 41 4c 53 | 4f 0d 0d 73 65 74 2c 20 |.SEE ALS|O..set, |
|000010d0| 75 6e 73 65 74 00 00 01 | d8 0d 4e 41 4d 45 0d 0d |unset...|..NAME..|
|000010e0| 70 61 74 68 63 68 6b 20 | 2d 20 65 76 61 6c 75 61 |pathchk |- evalua|
|000010f0| 74 65 73 20 61 20 66 75 | 6c 6c 20 6f 72 20 70 61 |tes a fu|ll or pa|
|00001100| 72 74 69 61 6c 20 70 61 | 74 68 6e 61 6d 65 0d 0d |rtial pa|thname..|
|00001110| 53 59 4e 4f 50 53 49 53 | 0d 0d 70 61 74 68 63 68 |SYNOPSIS|..pathch|
|00001120| 6b 20 70 61 74 68 6e 61 | 6d 65 0d 0d 44 45 53 43 |k pathna|me..DESC|
|00001130| 52 49 50 54 49 4f 4e 0d | 0d 54 68 65 20 6e 53 68 |RIPTION.|.The nSh|
|00001140| 65 6c 6c 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |ell envi|ronment |
|00001150| 75 73 65 73 20 74 72 61 | 64 69 74 69 6f 6e 61 6c |uses tra|ditional|
|00001160| 20 4d 61 63 69 6e 74 6f | 73 68 20 70 61 74 68 6e | Macinto|sh pathn|
|00001170| 61 6d 65 73 2e 20 20 54 | 68 65 20 22 70 61 74 68 |ames. T|he "path|
|00001180| 63 68 6b 22 20 63 6f 6d | 6d 61 6e 64 20 69 73 20 |chk" com|mand is |
|00001190| 69 6e 63 6c 75 64 65 64 | 20 74 6f 20 61 6c 6c 6f |included| to allo|
|000011a0| 77 20 74 68 65 20 75 73 | 65 72 20 74 6f 20 65 78 |w the us|er to ex|
|000011b0| 70 65 72 69 6d 65 6e 74 | 20 77 69 74 68 20 74 68 |periment| with th|
|000011c0| 6f 73 65 20 70 61 74 68 | 6e 61 6d 65 73 2e 0d 0d |ose path|names...|
|000011d0| 47 69 76 65 6e 20 61 20 | 66 75 6c 6c 20 6f 72 20 |Given a |full or |
|000011e0| 70 61 72 74 69 61 6c 20 | 70 61 74 68 6e 61 6d 65 |partial |pathname|
|000011f0| 2c 20 70 61 74 68 63 68 | 6b 20 77 69 6c 6c 20 65 |, pathch|k will e|
|00001200| 63 68 6f 20 74 68 65 20 | 65 71 75 69 76 61 6c 65 |cho the |equivale|
|00001210| 6e 74 20 66 75 6c 6c 20 | 70 61 74 68 6e 61 6d 65 |nt full |pathname|
|00001220| 2e 0d 0d 50 61 74 68 63 | 68 6b 20 64 6f 65 73 20 |...Pathc|hk does |
|00001230| 6e 6f 74 20 63 68 65 63 | 6b 20 74 6f 20 73 65 65 |not chec|k to see|
|00001240| 20 69 66 20 61 6e 79 20 | 6f 66 20 74 68 65 20 73 | if any |of the s|
|00001250| 70 65 63 69 66 69 65 64 | 20 76 6f 6c 75 6d 65 73 |pecified| volumes|
|00001260| 2c 20 64 69 72 65 63 74 | 6f 72 69 65 73 2c 20 6f |, direct|ories, o|
|00001270| 72 20 66 69 6c 65 73 20 | 65 78 69 73 74 2e 0d 0d |r files |exist...|
|00001280| 52 45 54 55 52 4e 20 43 | 4f 44 45 53 0d 0d 3c 30 |RETURN C|ODES..<0|
|00001290| 09 45 72 72 6f 72 0d 30 | 09 53 75 63 63 65 73 73 |.Error.0|.Success|
|000012a0| 0d 0d 53 45 45 20 41 4c | 53 4f 0d 0d 77 68 69 63 |..SEE AL|SO..whic|
|000012b0| 68 00 00 02 44 0d 4e 41 | 4d 45 0d 0d 77 68 69 63 |h...D.NA|ME..whic|
|000012c0| 68 20 2d 20 77 68 69 63 | 68 20 63 6f 70 79 20 6f |h - whic|h copy o|
|000012d0| 66 20 61 20 63 6f 6d 6d | 61 6e 64 20 77 69 6c 6c |f a comm|and will|
|000012e0| 20 62 65 20 75 73 65 64 | 0d 0d 53 59 4e 4f 50 53 | be used|..SYNOPS|
|000012f0| 49 53 0d 0d 77 68 69 63 | 68 20 63 6f 6d 6d 61 6e |IS..whic|h comman|
|00001300| 64 0d 0d 44 45 53 43 52 | 49 50 54 49 4f 4e 0d 0d |d..DESCR|IPTION..|
|00001310| 22 77 68 69 63 68 22 20 | 65 78 61 6d 69 6e 65 73 |"which" |examines|
|00001320| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 2d 73 65 61 | the com|mand-sea|
|00001330| 72 63 68 2d 70 61 74 68 | 2c 20 61 6e 64 20 72 65 |rch-path|, and re|
|00001340| 74 75 72 6e 73 20 74 68 | 65 20 6c 6f 63 61 74 69 |turns th|e locati|
|00001350| 6f 6e 20 6f 66 20 74 68 | 65 20 63 6f 6d 6d 61 6e |on of th|e comman|
|00001360| 64 20 77 68 69 63 68 20 | 77 6f 75 6c 64 20 62 65 |d which |would be|
|00001370| 20 65 78 65 63 75 74 65 | 64 2e 0d 0d 54 68 65 20 | execute|d...The |
|00001380| 77 68 69 63 68 20 63 6f | 6d 6d 61 6e 64 20 66 69 |which co|mmand fi|
|00001390| 72 73 74 20 63 68 65 63 | 6b 73 20 74 6f 20 73 65 |rst chec|ks to se|
|000013a0| 65 20 69 66 20 74 68 65 | 20 73 70 65 63 69 66 69 |e if the| specifi|
|000013b0| 65 64 20 63 6f 6d 6d 61 | 6e 64 20 69 73 20 69 6e |ed comma|nd is in|
|000013c0| 74 65 72 6e 61 6c 20 74 | 6f 20 74 68 65 20 6e 53 |ternal t|o the nS|
|000013d0| 68 65 6c 6c 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |hell app|lication|
|000013e0| 2e 20 20 45 61 63 68 20 | 64 69 72 65 63 74 6f 72 |. Each |director|
|000013f0| 79 20 69 6e 20 74 68 65 | 20 73 65 61 72 63 68 20 |y in the| search |
|00001400| 70 61 74 68 20 69 73 20 | 74 68 65 6e 20 65 78 61 |path is |then exa|
|00001410| 6d 69 6e 65 64 20 74 6f | 20 73 65 65 20 69 66 20 |mined to| see if |
|00001420| 69 74 20 63 6f 6e 74 61 | 69 6e 73 20 61 6e 20 65 |it conta|ins an e|
|00001430| 78 74 65 72 6e 61 6c 20 | 63 6f 6d 6d 61 6e 64 20 |xternal |command |
|00001440| 6f 72 20 73 68 65 6c 6c | 20 73 63 72 69 70 74 20 |or shell| script |
|00001450| 6f 66 20 74 68 65 20 67 | 69 76 65 6e 20 6e 61 6d |of the g|iven nam|
|00001460| 65 2e 20 20 41 6e 79 20 | 27 54 45 58 54 27 20 66 |e. Any |'TEXT' f|
|00001470| 69 6c 65 20 77 69 74 68 | 20 61 20 6d 61 74 63 68 |ile with| a match|
|00001480| 69 6e 67 20 6e 61 6d 65 | 20 69 73 20 61 73 73 75 |ing name| is assu|
|00001490| 6d 65 64 20 74 6f 20 62 | 65 20 61 20 73 68 65 6c |med to b|e a shel|
|000014a0| 6c 20 73 63 72 69 70 74 | 2e 0d 0d 52 45 54 55 52 |l script|...RETUR|
|000014b0| 4e 20 43 4f 44 45 53 0d | 0d 3c 30 09 45 72 72 6f |N CODES.|.<0.Erro|
|000014c0| 72 20 6f 72 20 63 6f 6d | 6d 61 6e 64 20 6e 6f 74 |r or com|mand not|
|000014d0| 20 66 6f 75 6e 64 0d 30 | 09 53 75 63 63 65 73 73 | found.0|.Success|
|000014e0| 0d 0d 53 45 45 20 41 4c | 53 4f 0d 0d 70 61 74 68 |..SEE AL|SO..path|
|000014f0| 2c 20 70 61 74 68 63 68 | 6b 00 00 02 e1 0d 4e 41 |, pathch|k.....NA|
|00001500| 4d 45 0d 0d 70 61 74 68 | 20 2d 20 64 65 66 69 6e |ME..path| - defin|
|00001510| 65 20 61 20 63 6f 6d 6d | 61 6e 64 20 73 65 61 72 |e a comm|and sear|
|00001520| 63 68 20 70 61 74 68 0d | 0d 53 59 4e 4f 50 53 49 |ch path.|.SYNOPSI|
|00001530| 53 0d 0d 70 61 74 68 20 | 22 74 68 69 73 3a 69 73 |S..path |"this:is|
|00001540| 3a 70 61 74 68 3a 6f 6e | 65 2f 74 68 69 73 3a 69 |:path:on|e/this:i|
|00001550| 73 3a 70 61 74 68 3a 74 | 77 6f 22 0d 0d 44 45 53 |s:path:t|wo"..DES|
|00001560| 43 52 49 50 54 49 4f 4e | 0d 0d 54 68 65 20 22 70 |CRIPTION|..The "p|
|00001570| 61 74 68 22 20 63 6f 6d | 6d 61 6e 64 20 61 6c 6c |ath" com|mand all|
|00001580| 6f 77 73 20 74 68 65 20 | 75 73 65 72 20 74 6f 20 |ows the |user to |
|00001590| 73 70 65 63 69 66 79 20 | 61 20 63 6f 6d 6d 61 6e |specify |a comman|
|000015a0| 64 20 73 65 61 72 63 68 | 20 70 61 74 68 2e 20 20 |d search| path. |
|000015b0| 54 68 65 20 70 61 74 68 | 20 69 73 20 73 74 6f 72 |The path| is stor|
|000015c0| 65 64 20 69 6e 20 74 68 | 65 20 24 50 41 54 48 20 |ed in th|e $PATH |
|000015d0| 73 68 65 6c 6c 20 76 61 | 72 69 61 62 6c 65 2e 20 |shell va|riable. |
|000015e0| 20 44 69 72 65 63 74 6f | 72 69 65 73 20 61 72 65 | Directo|ries are|
|000015f0| 20 73 65 70 61 72 61 74 | 65 64 20 62 79 20 22 3a | separat|ed by ":|
|00001600| 22 2c 20 61 6e 64 20 70 | 61 74 68 73 20 61 72 65 |", and p|aths are|
|00001610| 20 73 65 70 61 72 61 74 | 65 64 20 62 79 20 22 2f | separat|ed by "/|
|00001620| 22 2e 20 20 41 20 73 69 | 6e 67 6c 65 20 22 3a 22 |". A si|ngle ":"|
|00001630| 20 6d 61 79 20 62 65 20 | 75 73 65 64 20 74 6f 20 | may be |used to |
|00001640| 73 70 65 63 69 66 79 20 | 74 68 65 20 63 75 72 72 |specify |the curr|
|00001650| 65 6e 74 20 64 69 72 65 | 63 74 6f 72 79 2c 20 61 |ent dire|ctory, a|
|00001660| 73 20 69 6e 20 22 70 61 | 74 68 20 3a 2f 74 68 69 |s in "pa|th :/thi|
|00001670| 73 3a 69 73 3a 70 61 74 | 68 3a 74 77 6f 22 20 2e |s:is:pat|h:two" .|
|00001680| 0d 0d 41 6e 79 20 76 61 | 72 69 61 62 6c 65 73 20 |..Any va|riables |
|00001690| 75 73 65 64 20 69 6e 20 | 74 68 65 20 70 61 74 68 |used in |the path|
|000016a0| 20 61 72 65 20 65 76 61 | 6c 75 61 74 65 64 20 77 | are eva|luated w|
|000016b0| 68 65 6e 20 79 6f 75 20 | 69 73 73 75 65 20 74 68 |hen you |issue th|
|000016c0| 65 20 70 61 74 68 20 63 | 6f 6d 6d 61 6e 64 2e 20 |e path c|ommand. |
|000016d0| 20 49 6e 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | In the |command |
|000016e0| 22 70 61 74 68 20 24 48 | 4f 4d 45 3a 62 69 6e 22 |"path $H|OME:bin"|
|000016f0| 2c 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 24 |, the va|lue of $|
|00001700| 48 4f 4d 45 20 69 73 20 | 65 76 61 6c 75 61 74 65 |HOME is |evaluate|
|00001710| 64 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 2e 20 20 |d immedi|ately. |
|00001720| 49 66 20 79 6f 75 20 63 | 68 61 6e 67 65 20 74 68 |If you c|hange th|
|00001730| 65 20 76 61 6c 75 65 20 | 6f 66 20 24 48 4f 4d 45 |e value |of $HOME|
|00001740| 20 6c 61 74 65 72 2c 20 | 74 68 65 20 70 61 74 68 | later, |the path|
|00001750| 20 77 69 6c 6c 20 63 6f | 6e 74 69 6e 75 65 20 74 | will co|ntinue t|
|00001760| 6f 20 70 6f 69 6e 74 20 | 74 6f 20 74 68 65 20 6f |o point |to the o|
|00001770| 72 69 67 69 6e 61 6c 20 | 3a 62 69 6e 20 64 69 72 |riginal |:bin dir|
|00001780| 65 63 74 6f 72 79 2e 0d | 0d 54 68 65 20 64 65 66 |ectory..|.The def|
|00001790| 61 75 6c 74 20 70 61 74 | 68 20 69 73 20 22 3a 2f |ault pat|h is ":/|
|000017a0| 24 48 4f 4d 45 3a 62 69 | 6e 22 2e 0d 0d 52 45 54 |$HOME:bi|n"...RET|
|000017b0| 55 52 4e 20 43 4f 44 45 | 53 0d 0d 3c 30 09 45 72 |URN CODE|S..<0.Er|
|000017c0| 72 6f 72 0d 30 09 53 75 | 63 63 65 73 73 0d 0d 53 |ror.0.Su|ccess..S|
|000017d0| 45 45 20 41 4c 53 4f 0d | 0d 77 68 69 63 68 00 00 |EE ALSO.|.which..|
|000017e0| 00 f7 0d 4e 41 4d 45 0d | 0d 70 77 64 20 2d 20 70 |...NAME.|.pwd - p|
|000017f0| 72 69 6e 74 20 77 6f 72 | 6b 69 6e 67 20 64 69 72 |rint wor|king dir|
|00001800| 65 63 74 6f 72 79 0d 0d | 53 59 4e 4f 50 53 49 53 |ectory..|SYNOPSIS|
|00001810| 0d 0d 70 77 64 0d 0d 44 | 45 53 43 52 49 50 54 49 |..pwd..D|ESCRIPTI|
|00001820| 4f 4e 0d 0d 54 68 65 20 | 22 70 77 64 22 20 63 6f |ON..The |"pwd" co|
|00001830| 6d 6d 61 6e 64 20 70 72 | 69 6e 74 73 20 74 68 65 |mmand pr|ints the|
|00001840| 20 66 75 6c 6c 20 70 61 | 74 68 20 6f 66 20 74 68 | full pa|th of th|
|00001850| 65 20 63 75 72 72 65 6e | 74 20 77 6f 72 6b 69 6e |e curren|t workin|
|00001860| 67 20 64 69 72 65 63 74 | 6f 72 79 2e 20 20 54 68 |g direct|ory. Th|
|00001870| 65 20 77 6f 72 6b 69 6e | 67 20 64 69 72 65 63 74 |e workin|g direct|
|00001880| 6f 72 79 20 69 73 20 73 | 74 6f 72 65 64 20 69 6e |ory is s|tored in|
|00001890| 20 74 68 65 20 24 50 57 | 44 20 73 68 65 6c 6c 20 | the $PW|D shell |
|000018a0| 76 61 72 69 61 62 6c 65 | 2e 0d 0d 52 45 54 55 52 |variable|...RETUR|
|000018b0| 4e 20 43 4f 44 45 53 0d | 0d 3c 30 09 45 72 72 6f |N CODES.|.<0.Erro|
|000018c0| 72 0d 30 09 53 75 63 63 | 65 73 73 0d 0d 53 45 45 |r.0.Succ|ess..SEE|
|000018d0| 20 41 4c 53 4f 0d 0d 63 | 64 00 00 02 30 0d 4e 41 | ALSO..c|d...0.NA|
|000018e0| 4d 45 0d 0d 63 64 20 2d | 20 63 68 61 6e 67 65 20 |ME..cd -| change |
|000018f0| 77 6f 72 6b 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |working |director|
|00001900| 79 0d 0d 53 59 4e 4f 50 | 53 49 53 0d 0d 63 64 20 |y..SYNOP|SIS..cd |
|00001910| 22 74 68 69 73 3a 69 73 | 3a 6d 79 20 6e 65 77 3a |"this:is|:my new:|
|00001920| 70 61 74 68 22 0d 0d 44 | 45 53 43 52 49 50 54 49 |path"..D|ESCRIPTI|
|00001930| 4f 4e 0d 0d 54 68 65 20 | 22 63 64 22 20 63 6f 6d |ON..The |"cd" com|
|00001940| 6d 61 6e 64 20 61 6c 6c | 6f 77 73 20 74 68 65 20 |mand all|ows the |
|00001950| 75 73 65 72 20 74 6f 20 | 73 70 65 63 69 66 79 20 |user to |specify |
|00001960| 61 20 6e 65 77 20 77 6f | 72 6b 69 6e 67 20 64 69 |a new wo|rking di|
|00001970| 72 65 63 74 6f 72 79 2e | 20 20 54 68 65 20 77 6f |rectory.| The wo|
|00001980| 72 6b 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 20 |rking di|rectory |
|00001990| 69 73 20 68 65 6c 64 20 | 69 6e 20 74 68 65 20 24 |is held |in the $|
|000019a0| 50 57 44 20 73 68 65 6c | 6c 20 76 61 72 69 61 62 |PWD shel|l variab|
|000019b0| 6c 65 2e 20 20 49 66 20 | 61 20 70 61 72 74 69 61 |le. If |a partia|
|000019c0| 6c 20 70 61 74 68 6e 61 | 6d 65 20 69 73 20 67 69 |l pathna|me is gi|
|000019d0| 76 65 6e 2c 20 61 20 66 | 75 6c 6c 20 70 61 74 68 |ven, a f|ull path|
|000019e0| 20 69 73 20 67 65 6e 65 | 72 61 74 65 64 20 75 73 | is gene|rated us|
|000019f0| 69 6e 67 20 74 68 65 20 | 65 78 69 73 74 69 6e 67 |ing the |existing|
|00001a00| 20 24 50 57 44 20 76 61 | 72 69 61 62 6c 65 2e 20 | $PWD va|riable. |
|00001a10| 20 49 66 20 6e 6f 20 70 | 61 74 68 6e 61 6d 65 20 | If no p|athname |
|00001a20| 69 73 20 67 69 76 65 6e | 2c 20 74 68 65 20 75 73 |is given|, the us|
|00001a30| 65 72 20 69 73 20 72 65 | 74 75 72 6e 65 64 20 74 |er is re|turned t|
|00001a40| 6f 20 74 68 65 20 24 48 | 4f 4d 45 20 64 69 72 65 |o the $H|OME dire|
|00001a50| 63 74 6f 72 79 2e 0d 0d | 50 61 74 68 6e 61 6d 65 |ctory...|Pathname|
|00001a60| 73 20 63 6f 6e 73 69 73 | 74 20 6f 66 20 76 6f 6c |s consis|t of vol|
|00001a70| 75 6d 65 20 61 6e 64 20 | 64 69 72 65 63 74 6f 72 |ume and |director|
|00001a80| 79 20 6e 61 6d 65 73 20 | 73 65 70 61 72 61 74 65 |y names |separate|
|00001a90| 64 20 62 79 20 27 3a 27 | 20 63 68 61 72 61 63 74 |d by ':'| charact|
|00001aa0| 65 72 73 2e 20 20 50 61 | 74 68 6e 61 6d 65 73 20 |ers. Pa|thnames |
|00001ab0| 6d 61 79 20 62 65 20 22 | 71 75 6f 74 65 64 22 2c |may be "|quoted",|
|00001ac0| 20 61 6e 64 20 6d 75 73 | 74 20 62 65 20 77 68 65 | and mus|t be whe|
|00001ad0| 6e 20 61 20 76 6f 6c 75 | 6d 65 20 6f 72 20 64 69 |n a volu|me or di|
|00001ae0| 72 65 63 74 6f 72 79 20 | 6e 61 6d 65 20 63 6f 6e |rectory |name con|
|00001af0| 74 61 69 6e 73 20 61 20 | 73 70 61 63 65 2e 0d 0d |tains a |space...|
|00001b00| 53 45 45 20 41 4c 53 4f | 0d 0d 70 77 64 00 00 02 |SEE ALSO|..pwd...|
|00001b10| 4e 0d 4e 41 4d 45 0d 0d | 74 68 65 6e 20 2d 20 63 |N.NAME..|then - c|
|00001b20| 6f 6e 64 69 74 69 6f 6e | 61 6c 20 65 78 65 63 75 |ondition|al execu|
|00001b30| 74 69 6f 6e 0d 0d 53 59 | 4e 4f 50 53 49 53 0d 0d |tion..SY|NOPSIS..|
|00001b40| 69 66 20 3c 63 6f 6d 6d | 61 6e 64 73 31 3e 20 74 |if <comm|ands1> t|
|00001b50| 68 65 6e 20 3c 63 6f 6d | 6d 61 6e 64 73 32 3e 20 |hen <com|mands2> |
|00001b60| 5b 65 6c 73 65 20 3c 63 | 6f 6d 6d 61 6e 64 73 33 |[else <c|ommands3|
|00001b70| 3e 5d 20 65 6e 64 69 66 | 0d 0d 44 45 53 43 52 49 |>] endif|..DESCRI|
|00001b80| 50 54 49 4f 4e 0d 0d 49 | 66 20 74 68 65 20 72 65 |PTION..I|f the re|
|00001b90| 73 75 6c 74 20 6f 66 20 | 74 68 65 20 6c 61 73 74 |sult of |the last|
|00001ba0| 20 63 6f 6d 6d 61 6e 64 | 20 6f 66 20 74 68 65 20 | command| of the |
|00001bb0| 73 65 74 20 3c 63 6f 6d | 6d 61 6e 64 73 31 3e 20 |set <com|mands1> |
|00001bc0| 63 6f 6d 70 6c 65 74 65 | 73 20 77 69 74 68 6f 75 |complete|s withou|
|00001bd0| 74 20 65 72 72 6f 72 20 | 28 72 65 73 75 6c 74 20 |t error |(result |
|00001be0| 3d 20 7a 65 72 6f 29 2c | 20 74 68 65 6e 20 74 68 |= zero),| then th|
|00001bf0| 65 20 3c 63 6f 6d 6d 61 | 6e 64 73 32 3e 20 63 6c |e <comma|nds2> cl|
|00001c00| 61 75 73 65 20 77 69 6c | 6c 20 62 65 20 65 78 65 |ause wil|l be exe|
|00001c10| 63 75 74 65 64 2e 0d 0d | 49 66 20 74 68 65 20 72 |cuted...|If the r|
|00001c20| 65 73 75 6c 74 20 6f 66 | 20 74 68 65 20 6c 61 73 |esult of| the las|
|00001c30| 74 20 63 6f 6d 6d 61 6e | 64 20 6f 66 20 74 68 65 |t comman|d of the|
|00001c40| 20 73 65 74 20 3c 63 6f | 6d 6d 61 6e 64 73 31 3e | set <co|mmands1>|
|00001c50| 20 70 72 6f 64 75 63 65 | 73 20 61 6e 20 65 72 72 | produce|s an err|
|00001c60| 6f 72 20 28 72 65 73 75 | 6c 74 20 3c 3e 20 7a 65 |or (resu|lt <> ze|
|00001c70| 72 6f 29 2c 20 61 6e 64 | 20 61 6e 20 65 6c 73 65 |ro), and| an else|
|00001c80| 2d 63 6c 61 75 73 65 20 | 69 73 20 70 72 65 73 65 |-clause |is prese|
|00001c90| 6e 74 2c 20 74 68 61 74 | 20 63 6c 61 75 73 65 20 |nt, that| clause |
|00001ca0| 77 69 6c 6c 20 65 78 65 | 63 75 74 65 2e 0d 0d 46 |will exe|cute...F|
|00001cb0| 6c 6f 77 20 6f 66 20 63 | 6f 6e 74 72 6f 6c 20 73 |low of c|ontrol s|
|00001cc0| 74 61 74 65 6d 65 6e 74 | 73 20 61 72 65 20 61 76 |tatement|s are av|
|00001cd0| 61 69 6c 61 62 6c 65 20 | 69 6e 20 6e 53 68 65 6c |ailable |in nShel|
|00001ce0| 6c 2d 50 72 6f 28 74 6d | 29 0d 0d 52 45 54 55 52 |l-Pro(tm|)..RETUR|
|00001cf0| 4e 20 43 4f 44 45 53 0d | 0d 3c 30 09 45 72 72 6f |N CODES.|.<0.Erro|
|00001d00| 72 0d 30 09 53 75 63 63 | 65 73 73 0d 0d 53 45 45 |r.0.Succ|ess..SEE|
|00001d10| 20 41 4c 53 4f 0d 0d 77 | 68 69 6c 65 2c 20 75 6e | ALSO..w|hile, un|
|00001d20| 74 69 6c 0d 0d 45 58 41 | 4d 50 4c 45 53 0d 0d 69 |til..EXA|MPLES..i|
|00001d30| 66 20 79 65 73 6e 6f 20 | 22 53 68 6f 75 6c 64 20 |f yesno |"Should |
|00001d40| 49 20 73 61 79 20 68 65 | 6c 6c 6f 3f 22 20 74 68 |I say he|llo?" th|
|00001d50| 65 6e 20 68 65 6c 6c 6f | 20 65 6e 64 69 66 0d 00 |en hello| endif..|
|00001d60| 00 02 4b 0d 4e 41 4d 45 | 0d 0d 69 66 20 2d 20 63 |..K.NAME|..if - c|
|00001d70| 6f 6e 64 69 74 69 6f 6e | 61 6c 20 65 78 65 63 75 |ondition|al execu|
|00001d80| 74 69 6f 6e 0d 0d 53 59 | 4e 4f 50 53 49 53 0d 0d |tion..SY|NOPSIS..|
|00001d90| 69 66 20 3c 63 6f 6d 6d | 61 6e 64 73 31 3e 20 74 |if <comm|ands1> t|
|00001da0| 68 65 6e 20 3c 63 6f 6d | 6d 61 6e 64 73 32 3e 20 |hen <com|mands2> |
|00001db0| 5b 65 6c 73 65 20 3c 63 | 6f 6d 6d 61 6e 64 73 33 |[else <c|ommands3|
|00001dc0| 3e 5d 20 65 6e 64 69 66 | 0d 0d 44 45 53 43 52 49 |>] endif|..DESCRI|
|00001dd0| 50 54 49 4f 4e 0d 0d 49 | 66 20 74 68 65 20 72 65 |PTION..I|f the re|
|00001de0| 73 75 6c 74 20 6f 66 20 | 74 68 65 20 6c 61 73 74 |sult of |the last|
|00001df0| 20 63 6f 6d 6d 61 6e 64 | 20 6f 66 20 74 68 65 20 | command| of the |
|00001e00| 73 65 74 20 3c 63 6f 6d | 6d 61 6e 64 73 31 3e 20 |set <com|mands1> |
|00001e10| 63 6f 6d 70 6c 65 74 65 | 73 20 77 69 74 68 6f 75 |complete|s withou|
|00001e20| 74 20 65 72 72 6f 72 20 | 28 72 65 73 75 6c 74 20 |t error |(result |
|00001e30| 3d 20 7a 65 72 6f 29 2c | 20 74 68 65 6e 20 74 68 |= zero),| then th|
|00001e40| 65 20 3c 63 6f 6d 6d 61 | 6e 64 73 32 3e 20 63 6c |e <comma|nds2> cl|
|00001e50| 61 75 73 65 20 77 69 6c | 6c 20 62 65 20 65 78 65 |ause wil|l be exe|
|00001e60| 63 75 74 65 64 2e 0d 0d | 49 66 20 74 68 65 20 72 |cuted...|If the r|
|00001e70| 65 73 75 6c 74 20 6f 66 | 20 74 68 65 20 6c 61 73 |esult of| the las|
|00001e80| 74 20 63 6f 6d 6d 61 6e | 64 20 6f 66 20 74 68 65 |t comman|d of the|
|00001e90| 20 73 65 74 20 3c 63 6f | 6d 6d 61 6e 64 73 31 3e | set <co|mmands1>|
|00001ea0| 20 70 72 6f 64 75 63 65 | 73 20 61 6e 20 65 72 72 | produce|s an err|
|00001eb0| 6f 72 20 28 72 65 73 75 | 6c 74 20 3c 3e 20 7a 65 |or (resu|lt <> ze|
|00001ec0| 72 6f 29 2c 20 61 6e 64 | 20 61 6e 20 65 6c 73 65 |ro), and| an else|
|00001ed0| 2d 63 6c 61 75 73 65 20 | 69 73 20 70 72 65 73 65 |-clause |is prese|
|00001ee0| 6e 74 2c 20 74 68 61 74 | 20 63 6c 61 75 73 65 20 |nt, that| clause |
|00001ef0| 77 69 6c 6c 20 65 78 65 | 63 75 74 65 2e 0d 0d 46 |will exe|cute...F|
|00001f00| 6c 6f 77 20 6f 66 20 63 | 6f 6e 74 72 6f 6c 20 73 |low of c|ontrol s|
|00001f10| 74 61 74 65 6d 65 6e 74 | 73 20 61 72 65 20 61 76 |tatement|s are av|
|00001f20| 61 69 6c 61 62 6c 65 20 | 69 6e 20 6e 53 68 65 6c |ailable |in nShel|
|00001f30| 6c 2d 50 72 6f 28 74 6d | 29 0d 0d 52 45 54 55 52 |l-Pro(tm|)..RETUR|
|00001f40| 4e 20 43 4f 44 45 53 0d | 0d 3c 30 09 45 72 72 6f |N CODES.|.<0.Erro|
|00001f50| 72 0d 30 09 53 75 63 63 | 65 73 73 0d 0d 53 45 45 |r.0.Succ|ess..SEE|
|00001f60| 20 41 4c 53 4f 0d 0d 77 | 68 69 6c 65 2c 20 75 6e | ALSO..w|hile, un|
|00001f70| 74 69 6c 0d 0d 45 58 41 | 4d 50 4c 45 53 0d 0d 69 |til..EXA|MPLES..i|
|00001f80| 66 20 79 65 73 6e 6f 20 | 22 53 68 6f 75 6c 64 20 |f yesno |"Should |
|00001f90| 49 20 73 61 79 20 68 65 | 6c 6c 6f 3f 22 20 74 68 |I say he|llo?" th|
|00001fa0| 65 6e 20 68 65 6c 6c 6f | 20 65 6e 64 69 66 00 00 |en hello| endif..|
|00001fb0| 02 4e 0d 4e 41 4d 45 0d | 0d 65 6c 73 65 20 2d 20 |.N.NAME.|.else - |
|00001fc0| 63 6f 6e 64 69 74 69 6f | 6e 61 6c 20 65 78 65 63 |conditio|nal exec|
|00001fd0| 75 74 69 6f 6e 0d 0d 53 | 59 4e 4f 50 53 49 53 0d |ution..S|YNOPSIS.|
|00001fe0| 0d 69 66 20 3c 63 6f 6d | 6d 61 6e 64 73 31 3e 20 |.if <com|mands1> |
|00001ff0| 74 68 65 6e 20 3c 63 6f | 6d 6d 61 6e 64 73 32 3e |then <co|mmands2>|
|00002000| 20 5b 65 6c 73 65 20 3c | 63 6f 6d 6d 61 6e 64 73 | [else <|commands|
|00002010| 33 3e 5d 20 65 6e 64 69 | 66 0d 0d 44 45 53 43 52 |3>] endi|f..DESCR|
|00002020| 49 50 54 49 4f 4e 0d 0d | 49 66 20 74 68 65 20 72 |IPTION..|If the r|
|00002030| 65 73 75 6c 74 20 6f 66 | 20 74 68 65 20 6c 61 73 |esult of| the las|
|00002040| 74 20 63 6f 6d 6d 61 6e | 64 20 6f 66 20 74 68 65 |t comman|d of the|
|00002050| 20 73 65 74 20 3c 63 6f | 6d 6d 61 6e 64 73 31 3e | set <co|mmands1>|
|00002060| 20 63 6f 6d 70 6c 65 74 | 65 73 20 77 69 74 68 6f | complet|es witho|
|00002070| 75 74 20 65 72 72 6f 72 | 20 28 72 65 73 75 6c 74 |ut error| (result|
|00002080| 20 3d 20 7a 65 72 6f 29 | 2c 20 74 68 65 6e 20 74 | = zero)|, then t|
|00002090| 68 65 20 3c 63 6f 6d 6d | 61 6e 64 73 32 3e 20 63 |he <comm|ands2> c|
|000020a0| 6c 61 75 73 65 20 77 69 | 6c 6c 20 62 65 20 65 78 |lause wi|ll be ex|
|000020b0| 65 63 75 74 65 64 2e 0d | 0d 49 66 20 74 68 65 20 |ecuted..|.If the |
|000020c0| 72 65 73 75 6c 74 20 6f | 66 20 74 68 65 20 6c 61 |result o|f the la|
|000020d0| 73 74 20 63 6f 6d 6d 61 | 6e 64 20 6f 66 20 74 68 |st comma|nd of th|
|000020e0| 65 20 73 65 74 20 3c 63 | 6f 6d 6d 61 6e 64 73 31 |e set <c|ommands1|
|000020f0| 3e 20 70 72 6f 64 75 63 | 65 73 20 61 6e 20 65 72 |> produc|es an er|
|00002100| 72 6f 72 20 28 72 65 73 | 75 6c 74 20 3c 3e 20 7a |ror (res|ult <> z|
|00002110| 65 72 6f 29 2c 20 61 6e | 64 20 61 6e 20 65 6c 73 |ero), an|d an els|
|00002120| 65 2d 63 6c 61 75 73 65 | 20 69 73 20 70 72 65 73 |e-clause| is pres|
|00002130| 65 6e 74 2c 20 74 68 61 | 74 20 63 6c 61 75 73 65 |ent, tha|t clause|
|00002140| 20 77 69 6c 6c 20 65 78 | 65 63 75 74 65 2e 0d 0d | will ex|ecute...|
|00002150| 46 6c 6f 77 20 6f 66 20 | 63 6f 6e 74 72 6f 6c 20 |Flow of |control |
|00002160| 73 74 61 74 65 6d 65 6e | 74 73 20 61 72 65 20 61 |statemen|ts are a|
|00002170| 76 61 69 6c 61 62 6c 65 | 20 69 6e 20 6e 53 68 65 |vailable| in nShe|
|00002180| 6c 6c 2d 50 72 6f 28 74 | 6d 29 0d 0d 52 45 54 55 |ll-Pro(t|m)..RETU|
|00002190| 52 4e 20 43 4f 44 45 53 | 0d 0d 3c 30 09 45 72 72 |RN CODES|..<0.Err|
|000021a0| 6f 72 0d 30 09 53 75 63 | 63 65 73 73 0d 0d 53 45 |or.0.Suc|cess..SE|
|000021b0| 45 20 41 4c 53 4f 0d 0d | 77 68 69 6c 65 2c 20 75 |E ALSO..|while, u|
|000021c0| 6e 74 69 6c 0d 0d 45 58 | 41 4d 50 4c 45 53 0d 0d |ntil..EX|AMPLES..|
|000021d0| 69 66 20 79 65 73 6e 6f | 20 22 53 68 6f 75 6c 64 |if yesno| "Should|
|000021e0| 20 49 20 73 61 79 20 68 | 65 6c 6c 6f 3f 22 20 74 | I say h|ello?" t|
|000021f0| 68 65 6e 20 68 65 6c 6c | 6f 20 65 6e 64 69 66 0d |hen hell|o endif.|
|00002200| 00 00 02 4f 0d 4e 41 4d | 45 0d 0d 65 6e 64 69 66 |...O.NAM|E..endif|
|00002210| 20 2d 20 63 6f 6e 64 69 | 74 69 6f 6e 61 6c 20 65 | - condi|tional e|
|00002220| 78 65 63 75 74 69 6f 6e | 0d 0d 53 59 4e 4f 50 53 |xecution|..SYNOPS|
|00002230| 49 53 0d 0d 69 66 20 3c | 63 6f 6d 6d 61 6e 64 73 |IS..if <|commands|
|00002240| 31 3e 20 74 68 65 6e 20 | 3c 63 6f 6d 6d 61 6e 64 |1> then |<command|
|00002250| 73 32 3e 20 5b 65 6c 73 | 65 20 3c 63 6f 6d 6d 61 |s2> [els|e <comma|
|00002260| 6e 64 73 33 3e 5d 20 65 | 6e 64 69 66 0d 0d 44 45 |nds3>] e|ndif..DE|
|00002270| 53 43 52 49 50 54 49 4f | 4e 0d 0d 49 66 20 74 68 |SCRIPTIO|N..If th|
|00002280| 65 20 72 65 73 75 6c 74 | 20 6f 66 20 74 68 65 20 |e result| of the |
|00002290| 6c 61 73 74 20 63 6f 6d | 6d 61 6e 64 20 6f 66 20 |last com|mand of |
|000022a0| 74 68 65 20 73 65 74 20 | 3c 63 6f 6d 6d 61 6e 64 |the set |<command|
|000022b0| 73 31 3e 20 63 6f 6d 70 | 6c 65 74 65 73 20 77 69 |s1> comp|letes wi|
|000022c0| 74 68 6f 75 74 20 65 72 | 72 6f 72 20 28 72 65 73 |thout er|ror (res|
|000022d0| 75 6c 74 20 3d 20 7a 65 | 72 6f 29 2c 20 74 68 65 |ult = ze|ro), the|
|000022e0| 6e 20 74 68 65 20 3c 63 | 6f 6d 6d 61 6e 64 73 32 |n the <c|ommands2|
|000022f0| 3e 20 63 6c 61 75 73 65 | 20 77 69 6c 6c 20 62 65 |> clause| will be|
|00002300| 20 65 78 65 63 75 74 65 | 64 2e 0d 0d 49 66 20 74 | execute|d...If t|
|00002310| 68 65 20 72 65 73 75 6c | 74 20 6f 66 20 74 68 65 |he resul|t of the|
|00002320| 20 6c 61 73 74 20 63 6f | 6d 6d 61 6e 64 20 6f 66 | last co|mmand of|
|00002330| 20 74 68 65 20 73 65 74 | 20 3c 63 6f 6d 6d 61 6e | the set| <comman|
|00002340| 64 73 31 3e 20 70 72 6f | 64 75 63 65 73 20 61 6e |ds1> pro|duces an|
|00002350| 20 65 72 72 6f 72 20 28 | 72 65 73 75 6c 74 20 3c | error (|result <|
|00002360| 3e 20 7a 65 72 6f 29 2c | 20 61 6e 64 20 61 6e 20 |> zero),| and an |
|00002370| 65 6c 73 65 2d 63 6c 61 | 75 73 65 20 69 73 20 70 |else-cla|use is p|
|00002380| 72 65 73 65 6e 74 2c 20 | 74 68 61 74 20 63 6c 61 |resent, |that cla|
|00002390| 75 73 65 20 77 69 6c 6c | 20 65 78 65 63 75 74 65 |use will| execute|
|000023a0| 2e 0d 0d 46 6c 6f 77 20 | 6f 66 20 63 6f 6e 74 72 |...Flow |of contr|
|000023b0| 6f 6c 20 73 74 61 74 65 | 6d 65 6e 74 73 20 61 72 |ol state|ments ar|
|000023c0| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 69 6e 20 6e |e availa|ble in n|
|000023d0| 53 68 65 6c 6c 2d 50 72 | 6f 28 74 6d 29 0d 0d 52 |Shell-Pr|o(tm)..R|
|000023e0| 45 54 55 52 4e 20 43 4f | 44 45 53 0d 0d 3c 30 09 |ETURN CO|DES..<0.|
|000023f0| 45 72 72 6f 72 0d 30 09 | 53 75 63 63 65 73 73 0d |Error.0.|Success.|
|00002400| 0d 53 45 45 20 41 4c 53 | 4f 0d 0d 77 68 69 6c 65 |.SEE ALS|O..while|
|00002410| 2c 20 75 6e 74 69 6c 0d | 0d 45 58 41 4d 50 4c 45 |, until.|.EXAMPLE|
|00002420| 53 0d 0d 69 66 20 79 65 | 73 6e 6f 20 22 53 68 6f |S..if ye|sno "Sho|
|00002430| 75 6c 64 20 49 20 73 61 | 79 20 68 65 6c 6c 6f 3f |uld I sa|y hello?|
|00002440| 22 20 74 68 65 6e 20 68 | 65 6c 6c 6f 20 65 6e 64 |" then h|ello end|
|00002450| 69 66 0d 00 00 02 6c 0d | 4e 41 4d 45 0d 0d 77 68 |if....l.|NAME..wh|
|00002460| 69 6c 65 20 2d 20 63 6f | 6e 64 69 74 69 6f 6e 61 |ile - co|nditiona|
|00002470| 6c 20 65 78 65 63 75 74 | 69 6f 6e 0d 0d 53 59 4e |l execut|ion..SYN|
|00002480| 4f 50 53 49 53 0d 0d 77 | 68 69 6c 65 20 3c 63 6f |OPSIS..w|hile <co|
|00002490| 6d 6d 61 6e 64 73 31 3e | 20 64 6f 20 3c 63 6f 6d |mmands1>| do <com|
|000024a0| 6d 61 6e 64 73 32 3e 20 | 64 6f 6e 65 0d 0d 44 45 |mands2> |done..DE|
|000024b0| 53 43 52 49 50 54 49 4f | 4e 0d 0d 49 6e 20 74 68 |SCRIPTIO|N..In th|
|000024c0| 69 73 20 73 74 72 75 63 | 74 75 72 65 2c 20 74 68 |is struc|ture, th|
|000024d0| 65 20 3c 63 6f 6d 6d 61 | 6e 64 73 31 3e 20 63 6c |e <comma|nds1> cl|
|000024e0| 61 75 73 65 20 77 69 6c | 6c 20 61 6c 77 61 79 73 |ause wil|l always|
|000024f0| 20 65 78 65 63 75 74 65 | 2e 20 20 49 66 20 74 68 | execute|. If th|
|00002500| 65 20 72 65 73 75 6c 74 | 20 6f 66 20 74 68 65 20 |e result| of the |
|00002510| 6c 61 73 74 20 63 6f 6d | 6d 61 6e 64 20 6f 66 20 |last com|mand of |
|00002520| 74 68 65 20 73 65 74 20 | 63 6f 6d 70 6c 65 74 65 |the set |complete|
|00002530| 73 20 77 69 74 68 6f 75 | 74 20 65 72 72 6f 72 20 |s withou|t error |
|00002540| 28 72 65 73 75 6c 74 20 | 3d 20 7a 65 72 6f 29 2c |(result |= zero),|
|00002550| 20 74 68 65 6e 20 74 68 | 65 20 3c 63 6f 6d 6d 61 | then th|e <comma|
|00002560| 6e 64 73 32 3e 20 63 6c | 61 75 73 65 20 77 69 6c |nds2> cl|ause wil|
|00002570| 6c 20 62 65 20 65 78 65 | 63 75 74 65 64 2e 20 20 |l be exe|cuted. |
|00002580| 43 6f 6e 74 72 6f 6c 20 | 77 69 6c 6c 20 74 68 65 |Control |will the|
|00002590| 6e 20 72 65 74 75 72 6e | 20 74 6f 20 74 68 65 20 |n return| to the |
|000025a0| 3c 63 6f 6d 6d 61 6e 64 | 73 31 3e 20 63 6c 61 75 |<command|s1> clau|
|000025b0| 73 65 2c 20 61 6e 64 20 | 74 68 65 20 70 72 6f 63 |se, and |the proc|
|000025c0| 65 73 73 20 77 69 6c 6c | 20 63 6f 6e 74 69 6e 75 |ess will| continu|
|000025d0| 65 20 75 6e 74 69 6c 20 | 74 68 65 20 6c 61 73 74 |e until |the last|
|000025e0| 20 63 6f 6d 6d 61 6e 64 | 20 6f 66 20 74 68 69 73 | command| of this|
|000025f0| 20 73 65 74 20 70 72 6f | 64 75 63 65 73 20 61 6e | set pro|duces an|
|00002600| 20 65 72 72 6f 72 20 28 | 72 65 73 75 6c 74 20 3c | error (|result <|
|00002610| 3e 20 30 29 2e 0d 0d 46 | 6c 6f 77 20 6f 66 20 63 |> 0)...F|low of c|
|00002620| 6f 6e 74 72 6f 6c 20 73 | 74 61 74 65 6d 65 6e 74 |ontrol s|tatement|
|00002630| 73 20 61 72 65 20 61 76 | 61 69 6c 61 62 6c 65 20 |s are av|ailable |
|00002640| 69 6e 20 6e 53 68 65 6c | 6c 2d 50 72 6f 28 74 6d |in nShel|l-Pro(tm|
|00002650| 29 0d 0d 52 45 54 55 52 | 4e 20 43 4f 44 45 53 0d |)..RETUR|N CODES.|
|00002660| 0d 3c 30 09 45 72 72 6f | 72 0d 30 09 53 75 63 63 |.<0.Erro|r.0.Succ|
|00002670| 65 73 73 0d 0d 53 45 45 | 20 41 4c 53 4f 0d 0d 75 |ess..SEE| ALSO..u|
|00002680| 6e 74 69 6c 2c 20 69 66 | 0d 0d 45 58 41 4d 50 4c |ntil, if|..EXAMPL|
|00002690| 45 53 0d 0d 77 68 69 6c | 65 20 79 65 73 6e 6f 20 |ES..whil|e yesno |
|000026a0| 22 53 68 6f 75 6c 64 20 | 49 20 73 61 79 20 68 65 |"Should |I say he|
|000026b0| 6c 6c 6f 3f 22 20 64 6f | 20 68 65 6c 6c 6f 20 64 |llo?" do| hello d|
|000026c0| 6f 6e 65 00 00 02 74 0d | 4e 41 4d 45 0d 0d 75 6e |one...t.|NAME..un|
|000026d0| 74 69 6c 20 2d 20 63 6f | 6e 64 69 74 69 6f 6e 61 |til - co|nditiona|
|000026e0| 6c 20 65 78 65 63 75 74 | 69 6f 6e 0d 0d 53 59 4e |l execut|ion..SYN|
|000026f0| 4f 50 53 49 53 0d 0d 75 | 6e 74 69 6c 20 3c 63 6f |OPSIS..u|ntil <co|
|00002700| 6d 6d 61 6e 64 73 31 3e | 20 64 6f 20 3c 63 6f 6d |mmands1>| do <com|
|00002710| 6d 61 6e 64 73 32 3e 20 | 64 6f 6e 65 0d 0d 44 45 |mands2> |done..DE|
|00002720| 53 43 52 49 50 54 49 4f | 4e 0d 0d 49 6e 20 74 68 |SCRIPTIO|N..In th|
|00002730| 69 73 20 73 74 72 75 63 | 74 75 72 65 2c 20 74 68 |is struc|ture, th|
|00002740| 65 20 3c 63 6f 6d 6d 61 | 6e 64 73 31 3e 20 63 6c |e <comma|nds1> cl|
|00002750| 61 75 73 65 20 77 69 6c | 6c 20 61 6c 77 61 79 73 |ause wil|l always|
|00002760| 20 65 78 65 63 75 74 65 | 2e 20 20 49 66 20 74 68 | execute|. If th|
|00002770| 65 20 72 65 73 75 6c 74 | 20 6f 66 20 74 68 65 20 |e result| of the |
|00002780| 6c 61 73 74 20 63 6f 6d | 6d 61 6e 64 20 6f 66 20 |last com|mand of |
|00002790| 74 68 65 20 73 65 74 20 | 70 72 6f 64 75 63 65 73 |the set |produces|
|000027a0| 20 61 6e 20 65 72 72 6f | 72 20 28 72 65 73 75 6c | an erro|r (resul|
|000027b0| 74 20 3c 3e 20 7a 65 72 | 6f 29 2c 20 74 68 65 6e |t <> zer|o), then|
|000027c0| 20 74 68 65 20 3c 63 6f | 6d 6d 61 6e 64 73 32 3e | the <co|mmands2>|
|000027d0| 20 63 6c 61 75 73 65 20 | 77 69 6c 6c 20 62 65 20 | clause |will be |
|000027e0| 65 78 65 63 75 74 65 64 | 2e 20 20 43 6f 6e 74 72 |executed|. Contr|
|000027f0| 6f 6c 20 77 69 6c 6c 20 | 74 68 65 6e 20 72 65 74 |ol will |then ret|
|00002800| 75 72 6e 20 74 6f 20 74 | 68 65 20 3c 63 6f 6d 6d |urn to t|he <comm|
|00002810| 61 6e 64 73 31 3e 20 63 | 6c 61 75 73 65 2c 20 61 |ands1> c|lause, a|
|00002820| 6e 64 20 74 68 65 20 70 | 72 6f 63 65 73 73 20 77 |nd the p|rocess w|
|00002830| 69 6c 6c 20 63 6f 6e 74 | 69 6e 75 65 20 75 6e 74 |ill cont|inue unt|
|00002840| 69 6c 20 74 68 65 20 6c | 61 73 74 20 63 6f 6d 6d |il the l|ast comm|
|00002850| 61 6e 64 20 6f 66 20 74 | 68 69 73 20 73 65 74 20 |and of t|his set |
|00002860| 63 6f 6d 70 6c 65 74 65 | 73 20 77 69 74 68 6f 75 |complete|s withou|
|00002870| 74 20 65 72 72 6f 72 20 | 28 72 65 73 75 6c 74 20 |t error |(result |
|00002880| 3d 20 30 29 2e 0d 0d 46 | 6c 6f 77 20 6f 66 20 63 |= 0)...F|low of c|
|00002890| 6f 6e 74 72 6f 6c 20 73 | 74 61 74 65 6d 65 6e 74 |ontrol s|tatement|
|000028a0| 73 20 61 72 65 20 61 76 | 61 69 6c 61 62 6c 65 20 |s are av|ailable |
|000028b0| 69 6e 20 6e 53 68 65 6c | 6c 2d 50 72 6f 28 74 6d |in nShel|l-Pro(tm|
|000028c0| 29 0d 0d 52 45 54 55 52 | 4e 20 43 4f 44 45 53 0d |)..RETUR|N CODES.|
|000028d0| 0d 3c 30 09 45 72 72 6f | 72 0d 30 09 53 75 63 63 |.<0.Erro|r.0.Succ|
|000028e0| 65 73 73 0d 0d 53 45 45 | 20 41 4c 53 4f 0d 0d 77 |ess..SEE| ALSO..w|
|000028f0| 68 69 6c 65 2c 20 69 66 | 0d 0d 45 58 41 4d 50 4c |hile, if|..EXAMPL|
|00002900| 45 53 0d 0d 75 6e 74 69 | 6c 20 79 65 73 6e 6f 20 |ES..unti|l yesno |
|00002910| 22 53 68 6f 75 6c 64 20 | 49 20 53 54 4f 50 20 73 |"Should |I STOP s|
|00002920| 61 79 69 6e 67 20 68 65 | 6c 6c 6f 3f 22 20 64 6f |aying he|llo?" do|
|00002930| 20 68 65 6c 6c 6f 20 64 | 6f 6e 65 00 00 00 ca 0d | hello d|one.....|
|00002940| 4e 41 4d 45 0d 0d 64 6f | 20 2d 20 63 6f 6e 64 69 |NAME..do| - condi|
|00002950| 74 69 6f 6e 61 6c 20 65 | 78 65 63 75 74 69 6f 6e |tional e|xecution|
|00002960| 0d 0d 53 59 4e 4f 50 53 | 49 53 0d 0d 77 68 69 6c |..SYNOPS|IS..whil|
|00002970| 65 20 3c 63 6f 6d 6d 61 | 6e 64 73 31 3e 20 64 6f |e <comma|nds1> do|
|00002980| 20 3c 63 6f 6d 6d 61 6e | 64 73 32 3e 20 64 6f 6e | <comman|ds2> don|
|00002990| 65 0d 0d 6f 72 0d 0d 75 | 6e 74 69 6c 20 3c 63 6f |e..or..u|ntil <co|
|000029a0| 6d 6d 61 6e 64 73 31 3e | 20 64 6f 20 3c 63 6f 6d |mmands1>| do <com|
|000029b0| 6d 61 6e 64 73 32 3e 20 | 64 6f 6e 65 0d 0d 44 45 |mands2> |done..DE|
|000029c0| 53 43 52 49 50 54 49 4f | 4e 0d 0d 53 65 65 20 74 |SCRIPTIO|N..See t|
|000029d0| 68 65 20 6d 61 6e 20 70 | 61 67 65 20 66 6f 72 20 |he man p|age for |
|000029e0| 22 77 68 69 6c 65 22 20 | 6f 72 20 22 75 6e 74 69 |"while" |or "unti|
|000029f0| 6c 22 20 66 6f 72 20 6d | 6f 72 65 20 69 6e 66 6f |l" for m|ore info|
|00002a00| 72 6d 61 74 69 6f 6e 2e | 0d 00 00 00 cc 0d 4e 41 |rmation.|......NA|
|00002a10| 4d 45 0d 0d 64 6f 6e 65 | 20 2d 20 63 6f 6e 64 69 |ME..done| - condi|
|00002a20| 74 69 6f 6e 61 6c 20 65 | 78 65 63 75 74 69 6f 6e |tional e|xecution|
|00002a30| 0d 0d 53 59 4e 4f 50 53 | 49 53 0d 0d 77 68 69 6c |..SYNOPS|IS..whil|
|00002a40| 65 20 3c 63 6f 6d 6d 61 | 6e 64 73 31 3e 20 64 6f |e <comma|nds1> do|
|00002a50| 20 3c 63 6f 6d 6d 61 6e | 64 73 32 3e 20 64 6f 6e | <comman|ds2> don|
|00002a60| 65 0d 0d 6f 72 0d 0d 75 | 6e 74 69 6c 20 3c 63 6f |e..or..u|ntil <co|
|00002a70| 6d 6d 61 6e 64 73 31 3e | 20 64 6f 20 3c 63 6f 6d |mmands1>| do <com|
|00002a80| 6d 61 6e 64 73 32 3e 20 | 64 6f 6e 65 0d 0d 44 45 |mands2> |done..DE|
|00002a90| 53 43 52 49 50 54 49 4f | 4e 0d 0d 53 65 65 20 74 |SCRIPTIO|N..See t|
|00002aa0| 68 65 20 6d 61 6e 20 70 | 61 67 65 20 66 6f 72 20 |he man p|age for |
|00002ab0| 22 77 68 69 6c 65 22 20 | 6f 72 20 22 75 6e 74 69 |"while" |or "unti|
|00002ac0| 6c 22 20 66 6f 72 20 6d | 6f 72 65 20 69 6e 66 6f |l" for m|ore info|
|00002ad0| 72 6d 61 74 69 6f 6e 2e | 0d 00 00 01 e0 0d 4e 41 |rmation.|......NA|
|00002ae0| 4d 45 0d 0d 65 78 69 74 | 20 2d 20 65 78 69 74 20 |ME..exit| - exit |
|00002af0| 73 63 72 69 70 74 0d 0d | 53 59 4e 4f 50 53 49 53 |script..|SYNOPSIS|
|00002b00| 0d 0d 65 78 69 74 20 5b | 72 65 74 75 72 6e 20 63 |..exit [|return c|
|00002b10| 6f 64 65 5d 0d 0d 44 45 | 53 43 52 49 50 54 49 4f |ode]..DE|SCRIPTIO|
|00002b20| 4e 0d 0d 54 68 65 20 22 | 65 78 69 74 22 20 63 6f |N..The "|exit" co|
|00002b30| 6d 6d 61 6e 64 20 63 61 | 75 73 65 73 20 61 6e 20 |mmand ca|uses an |
|00002b40| 69 6d 6d 65 64 69 61 74 | 65 20 72 65 74 75 72 6e |immediat|e return|
|00002b50| 20 66 72 6f 6d 20 61 20 | 73 63 72 69 70 74 2e 20 | from a |script. |
|00002b60| 20 41 6e 20 69 6e 74 65 | 67 65 72 20 72 65 74 75 | An inte|ger retu|
|00002b70| 72 6e 20 63 6f 64 65 20 | 6d 61 79 20 62 65 20 73 |rn code |may be s|
|00002b80| 65 74 20 61 6e 64 20 6c | 61 74 65 72 20 61 63 63 |et and l|ater acc|
|00002b90| 65 73 73 65 64 20 75 73 | 69 6e 67 20 74 68 65 20 |essed us|ing the |
|00002ba0| 24 3f 20 70 73 65 75 64 | 6f 20 76 61 72 69 61 62 |$? pseud|o variab|
|00002bb0| 6c 65 2e 20 20 57 68 65 | 6e 20 6e 6f 20 70 61 72 |le. Whe|n no par|
|00002bc0| 61 6d 65 74 65 72 20 69 | 73 20 67 69 76 65 6e 2c |ameter i|s given,|
|00002bd0| 20 61 20 63 6f 64 65 20 | 6f 66 20 30 20 69 73 20 | a code |of 0 is |
|00002be0| 72 65 74 75 72 6e 65 64 | 2e 0d 0d 57 68 65 6e 20 |returned|...When |
|00002bf0| 74 68 65 20 22 65 78 69 | 74 22 20 63 6f 6d 6d 61 |the "exi|t" comma|
|00002c00| 6e 64 20 69 73 20 75 73 | 65 64 20 6f 6e 20 74 68 |nd is us|ed on th|
|00002c10| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 2c 20 |e comman|d line, |
|00002c20| 69 74 20 63 61 6e 63 65 | 6c 73 20 61 6c 6c 20 70 |it cance|ls all p|
|00002c30| 72 6f 63 65 73 73 69 6e | 67 20 61 6e 64 20 73 65 |rocessin|g and se|
|00002c40| 74 73 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |ts the s|pecified|
|00002c50| 20 72 65 74 75 72 6e 20 | 63 6f 64 65 2e 0d 0d 45 | return |code...E|
|00002c60| 58 41 4d 50 4c 45 53 0d | 0d 23 0d 23 20 74 65 73 |XAMPLES.|.#.# tes|
|00002c70| 74 20 75 73 61 67 65 0d | 23 0d 69 66 20 2e 6e 65 |t usage.|#.if .ne|
|00002c80| 2e 20 24 23 20 32 20 74 | 68 65 6e 0d 20 20 20 20 |. $# 2 t|hen. |
|00002c90| 65 63 68 6f 20 22 55 73 | 61 67 65 3a 20 63 6d 64 |echo "Us|age: cmd|
|00002ca0| 20 66 69 6c 65 6e 61 6d | 65 22 0d 20 20 20 20 65 | filenam|e". e|
|00002cb0| 78 69 74 20 2d 31 0d 65 | 6e 64 69 66 0d 00 00 02 |xit -1.e|ndif....|
|00002cc0| 55 0d 4e 41 4d 45 0d 0d | 65 78 70 6f 72 74 20 2d |U.NAME..|export -|
|00002cd0| 20 65 78 70 6f 72 74 20 | 61 20 73 68 65 6c 6c 20 | export |a shell |
|00002ce0| 76 61 72 69 61 62 6c 65 | 20 66 72 6f 6d 20 61 20 |variable| from a |
|00002cf0| 73 63 72 69 70 74 0d 0d | 53 59 4e 4f 50 53 49 53 |script..|SYNOPSIS|
|00002d00| 0d 0d 65 78 70 6f 72 74 | 20 76 61 72 69 61 62 6c |..export| variabl|
|00002d10| 65 5f 6e 61 6d 65 0d 0d | 44 45 53 43 52 49 50 54 |e_name..|DESCRIPT|
|00002d20| 49 4f 4e 0d 0d 54 68 65 | 20 22 65 78 70 6f 72 74 |ION..The| "export|
|00002d30| 22 20 63 6f 6d 6d 61 6e | 64 20 63 6f 70 69 65 73 |" comman|d copies|
|00002d40| 20 61 20 73 68 65 6c 6c | 20 76 61 72 69 61 62 6c | a shell| variabl|
|00002d50| 65 20 66 72 6f 6d 20 74 | 68 65 20 63 75 72 72 65 |e from t|he curre|
|00002d60| 6e 74 20 73 63 72 69 70 | 74 20 65 6e 76 69 72 6f |nt scrip|t enviro|
|00002d70| 6e 6d 65 6e 74 20 74 6f | 20 74 68 61 74 20 6f 66 |nment to| that of|
|00002d80| 20 74 68 65 20 70 61 72 | 65 6e 74 2e 20 20 54 68 | the par|ent. Th|
|00002d90| 65 20 22 65 78 70 6f 72 | 74 22 20 6f 70 65 72 61 |e "expor|t" opera|
|00002da0| 74 69 6f 6e 20 63 6f 70 | 69 65 73 20 76 61 72 69 |tion cop|ies vari|
|00002db0| 61 62 6c 65 73 20 75 70 | 20 61 20 73 69 6e 67 6c |ables up| a singl|
|00002dc0| 65 20 6c 65 76 65 6c 2e | 20 20 54 6f 20 65 78 70 |e level.| To exp|
|00002dd0| 6f 72 74 20 76 61 72 69 | 61 62 6c 65 73 20 66 72 |ort vari|ables fr|
|00002de0| 6f 6d 20 6e 65 73 74 65 | 64 20 73 63 72 69 70 74 |om neste|d script|
|00002df0| 73 2c 20 61 20 73 65 72 | 69 65 73 20 6f 66 20 22 |s, a ser|ies of "|
|00002e00| 65 78 70 6f 72 74 22 20 | 63 6f 6d 6d 61 6e 64 73 |export" |commands|
|00002e10| 20 77 6f 75 6c 64 20 62 | 65 20 72 65 71 75 69 72 | would b|e requir|
|00002e20| 65 64 2e 0d 0d 54 68 65 | 20 22 65 78 70 6f 72 74 |ed...The| "export|
|00002e30| 22 20 63 6f 6d 6d 61 6e | 64 20 73 68 6f 75 6c 64 |" comman|d should|
|00002e40| 20 6f 6e 6c 79 20 62 65 | 20 75 73 65 64 20 66 72 | only be| used fr|
|00002e50| 6f 6d 20 77 69 74 68 69 | 6e 20 73 63 72 69 70 74 |om withi|n script|
|00002e60| 73 2c 20 61 6e 64 20 66 | 61 69 6c 73 20 77 68 65 |s, and f|ails whe|
|00002e70| 6e 20 74 79 70 65 64 20 | 64 69 72 65 63 74 6c 79 |n typed |directly|
|00002e80| 20 6f 6e 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | on the |command |
|00002e90| 6c 69 6e 65 2e 0d 0d 45 | 58 41 4d 50 4c 45 53 0d |line...E|XAMPLES.|
|00002ea0| 0d 23 0d 23 20 73 65 74 | 20 74 68 65 20 77 6f 72 |.#.# set| the wor|
|00002eb0| 6b 69 6e 67 20 64 69 72 | 65 63 74 6f 72 79 20 61 |king dir|ectory a|
|00002ec0| 6e 64 20 65 78 70 6f 72 | 74 20 74 68 65 20 63 6f |nd expor|t the co|
|00002ed0| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 76 61 72 69 |rrespond|ing vari|
|00002ee0| 61 62 6c 65 0d 23 0d 63 | 64 20 22 6d 79 20 64 69 |able.#.c|d "my di|
|00002ef0| 73 6b 3a 6d 79 20 66 61 | 76 6f 72 69 74 65 20 74 |sk:my fa|vorite t|
|00002f00| 6f 6f 6c 73 3a 74 6f 6f | 6c 73 22 0d 65 78 70 6f |ools:too|ls".expo|
|00002f10| 72 74 20 50 57 44 00 00 | 01 00 00 00 2e 96 00 00 |rt PWD..|........|
|00002f20| 2d 96 00 00 02 a7 00 51 | ca 2c 0a a8 00 00 00 1c |-......Q|.,......|
|00002f30| 01 4a 00 02 4e 53 48 43 | 00 00 00 1a 76 65 72 73 |.J..NSHC|....vers|
|00002f40| 00 01 00 26 54 45 58 54 | 00 13 00 3e 3e 80 00 00 |...&TEXT|...>>...|
|00002f50| 20 00 00 00 00 51 c9 9c | 00 01 ff ff 00 00 06 54 | ....Q..|.......T|
|00002f60| 00 51 c9 98 00 02 ff ff | 00 00 06 8f 00 00 00 00 |.Q......|........|
|00002f70| 3e 80 00 08 00 00 06 ba | 00 51 ca d4 3e 8a 00 18 |>.......|.Q..>...|
|00002f80| 00 00 08 c1 00 00 00 00 | 3e 94 00 2a 00 00 09 e1 |........|>..*....|
|00002f90| 00 00 00 00 3e 9e 00 3a | 00 00 0c 19 00 00 00 00 |....>..:|........|
|00002fa0| 3e a8 00 4c 00 00 0d 81 | 00 00 00 00 3e d0 00 5c |>..L....|....>..\|
|00002fb0| 00 00 0f 55 00 00 00 00 | 3e da 00 70 00 00 11 31 |...U....|>..p...1|
|00002fc0| 00 00 00 00 3e c6 00 82 | 00 00 13 79 00 00 00 00 |....>...|...y....|
|00002fd0| 3e bc 00 93 00 00 16 5e | 00 00 00 00 3e b2 00 a3 |>......^|....>...|
|00002fe0| 00 00 17 59 00 00 00 00 | 3f 02 00 b2 00 00 19 8d |...Y....|?.......|
|00002ff0| 00 00 00 00 3e f8 00 c3 | 00 00 1b df 00 00 00 00 |....>...|........|
|00003000| 3f 0c 00 d2 00 00 1e 2e | 00 00 00 00 3f 16 00 e3 |?.......|....?...|
|00003010| 00 00 20 80 00 00 00 00 | 3f 20 00 f5 00 00 22 d3 |.. .....|? ....".|
|00003020| 00 00 00 00 3f 2a 01 07 | 00 00 25 43 00 00 00 00 |....?*..|..%C....|
|00003030| 3f 34 01 19 00 00 27 bb | 00 00 00 00 3f 3e 01 28 |?4....'.|....?>.(|
|00003040| 00 00 28 89 00 00 00 00 | 3e e4 01 39 00 00 29 59 |..(.....|>..9..)Y|
|00003050| 00 00 00 00 3e ee 01 4a | 00 00 2b 3d 00 00 00 00 |....>..J|..+=....|
|00003060| 07 63 6f 6d 6d 61 6e 64 | 0f 6d 61 6e 20 6d 61 6e |.command|.man man|
|00003070| 20 67 65 6e 65 72 61 6c | 11 6d 61 6e 20 6d 61 6e | general|.man man|
|00003080| 20 72 65 73 6f 75 72 63 | 65 73 0f 6d 61 6e 20 73 | resourc|es.man s|
|00003090| 65 74 20 67 65 6e 65 72 | 61 6c 11 6d 61 6e 20 75 |et gener|al.man u|
|000030a0| 6e 73 65 74 20 67 65 6e | 65 72 61 6c 0f 6d 61 6e |nset gen|eral.man|
|000030b0| 20 65 6e 76 20 67 65 6e | 65 72 61 6c 13 6d 61 6e | env gen|eral.man|
|000030c0| 20 70 61 74 68 63 68 6b | 20 67 65 6e 65 72 61 6c | pathchk| general|
|000030d0| 11 6d 61 6e 20 77 68 69 | 63 68 20 67 65 6e 65 72 |.man whi|ch gener|
|000030e0| 61 6c 10 6d 61 6e 20 70 | 61 74 68 20 67 65 6e 65 |al.man p|ath gene|
|000030f0| 72 61 6c 0f 6d 61 6e 20 | 70 77 64 20 67 65 6e 65 |ral.man |pwd gene|
|00003100| 72 61 6c 0e 6d 61 6e 20 | 63 64 20 67 65 6e 65 72 |ral.man |cd gener|
|00003110| 61 6c 10 6d 61 6e 20 74 | 68 65 6e 20 67 65 6e 65 |al.man t|hen gene|
|00003120| 72 61 6c 0e 6d 61 6e 20 | 69 66 20 67 65 6e 65 72 |ral.man |if gener|
|00003130| 61 6c 10 6d 61 6e 20 65 | 6c 73 65 20 67 65 6e 65 |al.man e|lse gene|
|00003140| 72 61 6c 11 6d 61 6e 20 | 65 6e 64 69 66 20 67 65 |ral.man |endif ge|
|00003150| 6e 65 72 61 6c 11 6d 61 | 6e 20 77 68 69 6c 65 20 |neral.ma|n while |
|00003160| 67 65 6e 65 72 61 6c 11 | 6d 61 6e 20 75 6e 74 69 |general.|man unti|
|00003170| 6c 20 67 65 6e 65 72 61 | 6c 0e 6d 61 6e 20 64 6f |l genera|l.man do|
|00003180| 20 67 65 6e 65 72 61 6c | 10 6d 61 6e 20 64 6f 6e | general|.man don|
|00003190| 65 20 67 65 6e 65 72 61 | 6c 10 6d 61 6e 20 65 78 |e genera|l.man ex|
|000031a0| 69 74 20 67 65 6e 65 72 | 61 6c 12 6d 61 6e 20 65 |it gener|al.man e|
|000031b0| 78 70 6f 72 74 20 67 65 | 6e 65 72 61 6c 00 00 00 |xport ge|neral...|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+