home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Tools / nShell™ 1.0.3 / MoreSource / man.π.rsrc / man.π.rsrc.rsrc
MacOS Resource Fork  |  1994-09-22  |  10.8 KB  |  [rsrc/RSED]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacOS Resource Fork (archive/rsrc).

You can browse this item here: man.π.rsrc.rsrc

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Resource Fork (archive/rsrc) magic Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert BeOS Resource Data (archive/beOSResourceData) ext Unsupported
1% dexvert AppleSingle (archive/appleSingle) fallback Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file AppleDouble encoded Macintosh file default
99% file data default
66% TrID Mac AppleDouble encoded default
33% TrID TTComp archive compressed (bin-2K) default (weak)
100% lsar AppleSingle default


id metadata
keyvalue
macFileType[rsrc]
macFileCreator[RSED]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 00 |.2... ..|.....R..|
|00000030| 2a cd 72 73 72 63 52 53 | 45 44 01 00 00 00 00 00 |*.rsrcRS|ED......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 00 | 28 42 00 00 27 42 00 00 |........|(B..'B..|
|00000060| 02 8b 00 00 00 01 0e 42 | 6f 6f 6b 6d 61 72 6b 20 |.......B|ookmark |
|00000070| 43 44 20 31 35 00 00 00 | 00 00 00 00 00 00 00 00 |CD 15...|........|
|00000080| 00 00 0a 6d 61 6e 2e b9 | 2e 72 73 72 63 00 02 00 |...man..|.rsrc...|
|00000090| 00 00 72 73 72 63 52 53 | 45 44 01 00 00 00 01 e0 |..rsrcRS|ED......|
|000000a0| 00 00 00 00 72 73 72 63 | 52 53 45 44 01 00 00 00 |....rsrc|RSED....|
|000000b0| 01 e0 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 a8 f1 cc 9e | 00 00 00 00 00 00 2a cd |........|......*.|
|000000d0| 69 6e 67 20 33 32 2d 42 | 69 74 00 00 08 f0 25 00 |ing 32-B|it....%.|
|000000e0| 00 00 19 9b 13 55 49 6e | 66 6f 72 6d 61 74 69 6f |.....UIn|formatio|
|000000f0| 6e 56 69 65 77 2e 63 70 | 00 00 00 00 00 00 00 00 |nView.cp|........|
|00000100| 00 00 00 00 00 00 0d fe | 25 00 00 00 22 0d 00 00 |........|%..."...|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 75 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.u......|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 01 1c 0d 4d | 41 4e 20 52 45 53 4f 55 |.......M|AN RESOU|
|00000160| 52 43 45 53 0d 0d 54 6f | 20 63 72 65 61 74 65 20 |RCES..To| create |
|00000170| 6d 61 6e 20 70 61 67 65 | 73 20 66 6f 72 20 79 6f |man page|s for yo|
|00000180| 75 72 20 6f 77 6e 20 63 | 6f 6d 6d 61 6e 64 73 2c |ur own c|ommands,|
|00000190| 20 63 72 65 61 74 65 20 | 54 45 58 54 20 72 65 73 | create |TEXT res|
|000001a0| 6f 75 72 63 65 73 20 77 | 69 74 68 3a 0d 0d 31 2e |ources w|ith:..1.|
|000001b0| 20 20 20 20 20 52 65 73 | 6f 75 72 63 65 20 49 44 | Res|ource ID|
|000001c0| 73 20 61 62 6f 76 65 20 | 73 69 78 74 65 65 6e 20 |s above |sixteen |
|000001d0| 74 68 6f 75 73 61 6e 64 | 2e 0d 32 2e 20 20 20 20 |thousand|..2. |
|000001e0| 20 52 65 73 6f 75 72 63 | 65 20 6e 61 6d 65 73 20 | Resourc|e names |
|000001f0| 6f 66 20 74 68 65 20 66 | 6f 72 6d 61 74 20 22 6d |of the f|ormat "m|
|00000200| 61 6e 20 73 75 62 6a 65 | 63 74 22 0d 0d 4e 6f 74 |an subje|ct"..Not|
|00000210| 65 20 74 68 61 74 20 74 | 68 65 20 72 65 73 6f 75 |e that t|he resou|
|00000220| 72 63 65 20 77 69 74 68 | 20 74 68 65 20 6e 61 6d |rce with| the nam|
|00000230| 65 20 22 6d 61 6e 20 67 | 65 6e 65 72 61 6c 22 20 |e "man g|eneral" |
|00000240| 69 73 20 75 73 65 64 20 | 77 68 65 6e 20 74 68 65 |is used |when the|
|00000250| 20 75 73 65 72 20 64 6f | 65 73 20 6e 6f 74 20 73 | user do|es not s|
|00000260| 70 65 63 69 66 79 20 61 | 20 73 75 62 6a 65 63 74 |pecify a| subject|
|00000270| 2e 0d 00 00 00 37 01 03 | 80 00 00 00 05 31 2e 30 |.....7..|.....1.0|
|00000280| 2e 33 2a 31 2e 30 2e 33 | 2c 20 a9 20 4e 65 77 70 |.3*1.0.3|, . Newp|
|00000290| 6f 72 74 20 53 6f 66 74 | 77 61 72 65 20 44 65 76 |ort Soft|ware Dev|
|000002a0| 65 6c 6f 70 6d 65 6e 74 | 20 31 39 39 34 00 00 00 |elopment| 1994...|
|000002b0| 27 01 03 80 00 00 00 05 | 31 2e 30 2e 33 1a 31 2e |'.......|1.0.3.1.|
|000002c0| 30 2e 33 20 28 41 6e 20 | 6e 53 68 65 6c 6c aa 20 |0.3 (An |nShell. |
|000002d0| 43 6f 6d 6d 61 6e 64 29 | 00 00 02 03 0d 4e 41 4d |Command)|.....NAM|
|000002e0| 45 0d 0d 6d 61 6e 20 2d | 20 63 6f 6d 6d 61 6e 64 |E..man -| command|
|000002f0| 20 6c 69 6e 65 20 6d 61 | 6e 75 61 6c 0d 0d 53 59 | line ma|nual..SY|
|00000300| 4e 4f 50 53 49 53 0d 0d | 6d 61 6e 20 63 6f 6d 6d |NOPSIS..|man comm|
|00000310| 61 6e 64 20 5b 73 65 63 | 74 69 6f 6e 5d 0d 0d 44 |and [sec|tion]..D|
|00000320| 45 53 43 52 49 50 54 49 | 4f 4e 0d 0d 54 68 65 20 |ESCRIPTI|ON..The |
|00000330| 22 6d 61 6e 22 20 70 72 | 6f 67 72 61 6d 20 72 65 |"man" pr|ogram re|
|00000340| 61 64 73 20 61 20 64 65 | 73 63 72 69 70 74 69 76 |ads a de|scriptiv|
|00000350| 65 20 74 65 78 74 20 72 | 65 73 6f 75 72 63 65 20 |e text r|esource |
|00000360| 66 72 6f 6d 20 77 69 74 | 68 69 6e 20 61 20 73 65 |from wit|hin a se|
|00000370| 6c 65 63 74 65 64 20 63 | 6f 6d 6d 61 6e 64 20 61 |lected c|ommand a|
|00000380| 6e 64 20 77 72 69 74 65 | 73 20 74 68 61 74 20 74 |nd write|s that t|
|00000390| 65 78 74 20 74 6f 20 73 | 74 61 6e 64 61 72 64 20 |ext to s|tandard |
|000003a0| 6f 75 74 70 75 74 2e 0d | 0d 4e 6f 74 65 3a 20 4d |output..|.Note: M|
|000003b0| 61 6e 20 70 61 67 65 73 | 20 61 72 65 20 61 76 61 |an pages| are ava|
|000003c0| 69 6c 61 62 6c 65 20 66 | 6f 72 20 66 6c 6f 77 2d |ilable f|or flow-|
|000003d0| 6f 66 2d 63 6f 6e 74 72 | 6f 6c 20 73 74 61 74 65 |of-contr|ol state|
|000003e0| 6d 65 6e 74 73 2c 20 62 | 75 74 20 74 68 65 79 20 |ments, b|ut they |
|000003f0| 6d 75 73 74 20 62 65 20 | 71 75 6f 74 65 64 20 73 |must be |quoted s|
|00000400| 6f 20 74 68 61 74 20 74 | 68 65 20 73 68 65 6c 6c |o that t|he shell|
|00000410| 20 6b 6e 6f 77 73 20 68 | 6f 77 20 74 6f 20 65 78 | knows h|ow to ex|
|00000420| 65 63 75 74 65 20 74 68 | 65 6d 3a 0d 0d 6d 61 6e |ecute th|em:..man|
|00000430| 20 22 69 66 22 0d 6d 61 | 6e 20 22 77 68 69 6c 65 | "if".ma|n "while|
|00000440| 22 0d 0d 52 45 54 55 52 | 4e 20 43 4f 44 45 53 0d |"..RETUR|N CODES.|
|00000450| 0d 3c 30 09 45 72 72 6f | 72 0d 30 09 53 75 63 63 |.<0.Erro|r.0.Succ|
|00000460| 65 73 73 0d 0d 53 45 45 | 20 41 4c 53 4f 0d 0d 74 |ess..SEE| ALSO..t|
|00000470| 72 79 20 22 6d 61 6e 20 | 6d 61 6e 20 72 65 73 6f |ry "man |man reso|
|00000480| 75 72 63 65 73 22 0d 0d | 54 68 65 20 6e 53 68 65 |urces"..|The nShe|
|00000490| 6c 6c 20 50 72 6f 67 72 | 61 6d 6d 65 72 27 73 20 |ll Progr|ammer's |
|000004a0| 47 75 69 64 65 20 63 6f | 6e 74 61 69 6e 73 20 61 |Guide co|ntains a|
|000004b0| 64 64 69 74 69 6f 6e 61 | 6c 20 69 6e 66 6f 72 6d |dditiona|l inform|
|000004c0| 61 74 69 6f 6e 20 6f 6e | 20 77 72 69 74 69 6e 67 |ation on| writing|
|000004d0| 20 6d 61 6e 20 72 65 73 | 6f 75 72 63 65 73 2e 00 | man res|ources..|
|000004e0| 00 02 34 0d 4e 41 4d 45 | 0d 0d 73 65 74 20 2d 20 |..4.NAME|..set - |
|000004f0| 73 65 74 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 61 |set envi|ronmenta|
|00000500| 6c 20 76 61 72 69 61 62 | 6c 65 73 0d 0d 53 59 4e |l variab|les..SYN|
|00000510| 4f 50 53 49 53 0d 0d 73 | 65 74 20 6e 61 6d 65 20 |OPSIS..s|et name |
|00000520| 5b 76 61 6c 75 65 5d 0d | 0d 44 45 53 43 52 49 50 |[value].|.DESCRIP|
|00000530| 54 49 4f 4e 0d 0d 54 68 | 65 20 22 73 65 74 22 20 |TION..Th|e "set" |
|00000540| 63 6f 6d 6d 61 6e 64 20 | 61 6c 6c 6f 77 73 20 74 |command |allows t|
|00000550| 68 65 20 6f 70 65 72 61 | 74 6f 72 20 74 6f 20 73 |he opera|tor to s|
|00000560| 65 74 20 76 61 72 69 61 | 62 6c 65 73 20 77 69 74 |et varia|bles wit|
|00000570| 68 69 6e 20 74 68 65 20 | 73 68 65 6c 6c 20 65 6e |hin the |shell en|
|00000580| 76 69 72 6f 6e 6d 65 6e | 74 2e 20 20 54 68 65 20 |vironmen|t. The |
|00000590| 6e 6f 72 6d 61 6c 20 73 | 79 6e 74 61 78 20 69 6e |normal s|yntax in|
|000005a0| 63 6c 75 64 65 73 20 61 | 20 22 76 61 6c 75 65 22 |cludes a| "value"|
|000005b0| 20 73 74 72 69 6e 67 2e | 20 20 49 66 20 6e 6f 20 | string.| If no |
|000005c0| 76 61 6c 75 65 20 69 73 | 20 67 69 76 65 6e 2c 20 |value is| given, |
|000005d0| 74 68 65 20 73 68 65 6c | 6c 20 76 61 72 69 61 62 |the shel|l variab|
|000005e0| 6c 65 20 69 73 20 73 65 | 74 20 65 71 75 61 6c 20 |le is se|t equal |
|000005f0| 74 6f 20 61 20 6e 75 6c | 6c 20 73 74 72 69 6e 67 |to a nul|l string|
|00000600| 2e 0d 0d 56 61 72 69 61 | 62 6c 65 20 6e 61 6d 65 |...Varia|ble name|
|00000610| 73 20 61 72 65 20 6c 69 | 6d 69 74 65 64 20 74 6f |s are li|mited to|
|00000620| 20 74 68 65 20 63 68 61 | 72 61 63 74 65 72 73 20 | the cha|racters |
|00000630| 61 2d 7a 2c 20 41 2d 5a | 2c 20 30 2d 39 2c 20 5f |a-z, A-Z|, 0-9, _|
|00000640| 20 61 6e 64 20 6d 61 79 | 20 62 65 20 33 31 20 63 | and may| be 31 c|
|00000650| 68 61 72 61 63 74 65 72 | 73 20 69 6e 20 6c 65 6e |haracter|s in len|
|00000660| 67 74 68 2e 20 20 54 68 | 65 20 76 61 6c 75 65 20 |gth. Th|e value |
|00000670| 73 74 72 69 6e 67 20 6d | 61 79 20 63 6f 6e 74 61 |string m|ay conta|
|00000680| 69 6e 20 61 6e 79 20 63 | 68 61 72 61 63 74 65 72 |in any c|haracter|
|00000690| 20 61 6e 64 20 6d 61 79 | 20 62 65 20 32 35 35 20 | and may| be 255 |
|000006a0| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 6c 65 |characte|rs in le|
|000006b0| 6e 67 74 68 2e 0d 0d 52 | 45 54 55 52 4e 20 43 4f |ngth...R|ETURN CO|
|000006c0| 44 45 53 0d 0d 3c 30 09 | 41 6e 20 65 72 72 6f 72 |DES..<0.|An error|
|000006d0| 20 70 72 65 76 65 6e 74 | 65 64 20 74 68 65 20 61 | prevent|ed the a|
|000006e0| 73 73 69 67 6e 6d 65 6e | 74 0d 30 09 53 75 63 63 |ssignmen|t.0.Succ|
|000006f0| 65 73 73 66 75 6c 20 61 | 73 73 69 67 6e 6d 65 6e |essful a|ssignmen|
|00000700| 74 0d 0d 53 45 45 20 41 | 4c 53 4f 0d 0d 75 6e 73 |t..SEE A|LSO..uns|
|00000710| 65 74 2c 20 65 6e 76 00 | 00 01 64 0d 4e 41 4d 45 |et, env.|..d.NAME|
|00000720| 0d 0d 75 6e 73 65 74 20 | 2d 20 72 65 6d 6f 76 65 |..unset |- remove|
|00000730| 20 61 20 73 68 65 6c 6c | 20 76 61 72 69 61 62 6c | a shell| variabl|
|00000740| 65 0d 0d 53 59 4e 4f 50 | 53 49 53 0d 0d 75 6e 73 |e..SYNOP|SIS..uns|
|00000750| 65 74 20 6e 61 6d 65 0d | 0d 44 45 53 43 52 49 50 |et name.|.DESCRIP|
|00000760| 54 49 4f 4e 0d 0d 54 68 | 65 20 22 75 6e 73 65 74 |TION..Th|e "unset|
|00000770| 22 20 63 6f 6d 6d 61 6e | 64 20 72 65 6d 6f 76 65 |" comman|d remove|
|00000780| 73 20 74 68 65 20 6e 61 | 6d 65 64 20 76 61 72 69 |s the na|med vari|
|00000790| 61 62 6c 65 20 66 72 6f | 6d 20 74 68 65 20 73 68 |able fro|m the sh|
|000007a0| 65 6c 6c 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 2e |ell envi|ronment.|
|000007b0| 0d 0d 56 61 72 69 61 62 | 6c 65 20 6e 61 6d 65 73 |..Variab|le names|
|000007c0| 20 61 72 65 20 6c 69 6d | 69 74 65 64 20 74 6f 20 | are lim|ited to |
|000007d0| 74 68 65 20 63 68 61 72 | 61 63 74 65 72 73 20 61 |the char|acters a|
|000007e0| 2d 7a 2c 20 41 2d 5a 2c | 20 30 2d 39 2c 20 5f 20 |-z, A-Z,| 0-9, _ |
|000007f0| 61 6e 64 20 6d 61 79 20 | 62 65 20 33 31 20 63 68 |and may |be 31 ch|
|00000800| 61 72 61 63 74 65 72 73 | 20 69 6e 20 6c 65 6e 67 |aracters| in leng|
|00000810| 74 68 2e 0d 0d 52 45 54 | 55 52 4e 20 43 4f 44 45 |th...RET|URN CODE|
|00000820| 53 0d 0d 3c 30 09 41 6e | 20 65 72 72 6f 72 20 70 |S..<0.An| error p|
|00000830| 72 65 76 65 6e 74 65 64 | 20 74 68 65 20 72 65 6d |revented| the rem|
|00000840| 6f 76 61 6c 0d 30 09 53 | 75 63 63 65 73 73 66 75 |oval.0.S|uccessfu|
|00000850| 6c 20 72 65 6d 6f 76 61 | 6c 20 6f 72 20 6e 61 6d |l remova|l or nam|
|00000860| 65 20 6e 6f 74 20 66 6f | 75 6e 64 0d 0d 53 45 45 |e not fo|und..SEE|
|00000870| 20 41 4c 53 4f 0d 0d 73 | 65 74 2c 20 65 6e 76 00 | ALSO..s|et, env.|
|00000880| 00 01 d0 0d 4e 41 4d 45 | 0d 0d 65 6e 76 20 2d 20 |....NAME|..env - |
|00000890| 6c 69 73 74 20 73 68 65 | 6c 6c 20 76 61 72 69 61 |list she|ll varia|
|000008a0| 62 6c 65 73 0d 0d 53 59 | 4e 4f 50 53 49 53 0d 0d |bles..SY|NOPSIS..|
|000008b0| 65 6e 76 20 5b 6e 61 6d | 65 31 5d 20 5b 6e 61 6d |env [nam|e1] [nam|
|000008c0| 65 32 5d 20 2e 20 2e 20 | 2e 20 0d 0d 44 45 53 43 |e2] . . |. ..DESC|
|000008d0| 52 49 50 54 49 4f 4e 0d | 0d 54 68 65 20 22 65 6e |RIPTION.|.The "en|
|000008e0| 76 22 20 63 6f 6d 6d 61 | 6e 64 20 77 69 6c 6c 20 |v" comma|nd will |
|000008f0| 6c 69 73 74 20 74 68 65 | 20 63 75 72 72 65 6e 74 |list the| current|
|00000900| 20 73 68 65 6c 6c 20 65 | 6e 76 69 72 6f 6e 6d 65 | shell e|nvironme|
|00000910| 6e 74 2e 20 20 56 61 72 | 69 61 62 6c 65 73 20 61 |nt. Var|iables a|
|00000920| 72 65 20 6c 69 73 74 65 | 64 20 77 69 74 68 20 74 |re liste|d with t|
|00000930| 68 65 69 72 20 76 61 6c | 75 65 73 2e 20 20 49 66 |heir val|ues. If|
|00000940| 20 6e 6f 20 70 61 72 61 | 6d 65 74 65 72 73 20 61 | no para|meters a|
|00000950| 72 65 20 67 69 76 65 6e | 2c 20 61 6c 6c 20 61 63 |re given|, all ac|
|00000960| 74 69 76 65 20 73 68 65 | 6c 6c 20 76 61 72 69 61 |tive she|ll varia|
|00000970| 62 6c 65 73 20 61 72 65 | 20 6c 69 73 74 65 64 2e |bles are| listed.|
|00000980| 0d 0d 56 61 72 69 61 62 | 6c 65 20 6e 61 6d 65 73 |..Variab|le names|
|00000990| 20 61 72 65 20 6c 69 6d | 69 74 65 64 20 74 6f 20 | are lim|ited to |
|000009a0| 74 68 65 20 63 68 61 72 | 61 63 74 65 72 73 20 61 |the char|acters a|
|000009b0| 2d 7a 2c 20 41 2d 5a 2c | 20 30 2d 39 2c 20 5f 20 |-z, A-Z,| 0-9, _ |
|000009c0| 61 6e 64 20 6d 61 79 20 | 62 65 20 33 31 20 63 68 |and may |be 31 ch|
|000009d0| 61 72 61 63 74 65 72 73 | 20 69 6e 20 6c 65 6e 67 |aracters| in leng|
|000009e0| 74 68 2e 0d 0d 52 45 54 | 55 52 4e 20 43 4f 44 45 |th...RET|URN CODE|
|000009f0| 53 0d 0d 3c 30 09 41 6e | 20 65 72 72 6f 72 20 70 |S..<0.An| error p|
|00000a00| 72 65 76 65 6e 74 65 64 | 20 74 68 65 20 73 65 61 |revented| the sea|
|00000a10| 72 63 68 0d 30 09 53 75 | 63 63 65 73 73 66 75 6c |rch.0.Su|ccessful|
|00000a20| 20 73 65 61 72 63 68 20 | 28 69 6e 63 2e 20 6e 61 | search |(inc. na|
|00000a30| 6d 65 20 6e 6f 74 20 66 | 6f 75 6e 64 29 0d 0d 53 |me not f|ound)..S|
|00000a40| 45 45 20 41 4c 53 4f 0d | 0d 73 65 74 2c 20 75 6e |EE ALSO.|.set, un|
|00000a50| 73 65 74 00 00 01 d8 0d | 4e 41 4d 45 0d 0d 70 61 |set.....|NAME..pa|
|00000a60| 74 68 63 68 6b 20 2d 20 | 65 76 61 6c 75 61 74 65 |thchk - |evaluate|
|00000a70| 73 20 61 20 66 75 6c 6c | 20 6f 72 20 70 61 72 74 |s a full| or part|
|00000a80| 69 61 6c 20 70 61 74 68 | 6e 61 6d 65 0d 0d 53 59 |ial path|name..SY|
|00000a90| 4e 4f 50 53 49 53 0d 0d | 70 61 74 68 63 68 6b 20 |NOPSIS..|pathchk |
|00000aa0| 70 61 74 68 6e 61 6d 65 | 0d 0d 44 45 53 43 52 49 |pathname|..DESCRI|
|00000ab0| 50 54 49 4f 4e 0d 0d 54 | 68 65 20 6e 53 68 65 6c |PTION..T|he nShel|
|00000ac0| 6c 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 75 73 |l enviro|nment us|
|00000ad0| 65 73 20 74 72 61 64 69 | 74 69 6f 6e 61 6c 20 4d |es tradi|tional M|
|00000ae0| 61 63 69 6e 74 6f 73 68 | 20 70 61 74 68 6e 61 6d |acintosh| pathnam|
|00000af0| 65 73 2e 20 20 54 68 65 | 20 22 70 61 74 68 63 68 |es. The| "pathch|
|00000b00| 6b 22 20 63 6f 6d 6d 61 | 6e 64 20 69 73 20 69 6e |k" comma|nd is in|
|00000b10| 63 6c 75 64 65 64 20 74 | 6f 20 61 6c 6c 6f 77 20 |cluded t|o allow |
|00000b20| 74 68 65 20 75 73 65 72 | 20 74 6f 20 65 78 70 65 |the user| to expe|
|00000b30| 72 69 6d 65 6e 74 20 77 | 69 74 68 20 74 68 6f 73 |riment w|ith thos|
|00000b40| 65 20 70 61 74 68 6e 61 | 6d 65 73 2e 0d 0d 47 69 |e pathna|mes...Gi|
|00000b50| 76 65 6e 20 61 20 66 75 | 6c 6c 20 6f 72 20 70 61 |ven a fu|ll or pa|
|00000b60| 72 74 69 61 6c 20 70 61 | 74 68 6e 61 6d 65 2c 20 |rtial pa|thname, |
|00000b70| 70 61 74 68 63 68 6b 20 | 77 69 6c 6c 20 65 63 68 |pathchk |will ech|
|00000b80| 6f 20 74 68 65 20 65 71 | 75 69 76 61 6c 65 6e 74 |o the eq|uivalent|
|00000b90| 20 66 75 6c 6c 20 70 61 | 74 68 6e 61 6d 65 2e 0d | full pa|thname..|
|00000ba0| 0d 50 61 74 68 63 68 6b | 20 64 6f 65 73 20 6e 6f |.Pathchk| does no|
|00000bb0| 74 20 63 68 65 63 6b 20 | 74 6f 20 73 65 65 20 69 |t check |to see i|
|00000bc0| 66 20 61 6e 79 20 6f 66 | 20 74 68 65 20 73 70 65 |f any of| the spe|
|00000bd0| 63 69 66 69 65 64 20 76 | 6f 6c 75 6d 65 73 2c 20 |cified v|olumes, |
|00000be0| 64 69 72 65 63 74 6f 72 | 69 65 73 2c 20 6f 72 20 |director|ies, or |
|00000bf0| 66 69 6c 65 73 20 65 78 | 69 73 74 2e 0d 0d 52 45 |files ex|ist...RE|
|00000c00| 54 55 52 4e 20 43 4f 44 | 45 53 0d 0d 3c 30 09 45 |TURN COD|ES..<0.E|
|00000c10| 72 72 6f 72 0d 30 09 53 | 75 63 63 65 73 73 0d 0d |rror.0.S|uccess..|
|00000c20| 53 45 45 20 41 4c 53 4f | 0d 0d 77 68 69 63 68 00 |SEE ALSO|..which.|
|00000c30| 00 02 44 0d 4e 41 4d 45 | 0d 0d 77 68 69 63 68 20 |..D.NAME|..which |
|00000c40| 2d 20 77 68 69 63 68 20 | 63 6f 70 79 20 6f 66 20 |- which |copy of |
|00000c50| 61 20 63 6f 6d 6d 61 6e | 64 20 77 69 6c 6c 20 62 |a comman|d will b|
|00000c60| 65 20 75 73 65 64 0d 0d | 53 59 4e 4f 50 53 49 53 |e used..|SYNOPSIS|
|00000c70| 0d 0d 77 68 69 63 68 20 | 63 6f 6d 6d 61 6e 64 0d |..which |command.|
|00000c80| 0d 44 45 53 43 52 49 50 | 54 49 4f 4e 0d 0d 22 77 |.DESCRIP|TION.."w|
|00000c90| 68 69 63 68 22 20 65 78 | 61 6d 69 6e 65 73 20 74 |hich" ex|amines t|
|00000ca0| 68 65 20 63 6f 6d 6d 61 | 6e 64 2d 73 65 61 72 63 |he comma|nd-searc|
|00000cb0| 68 2d 70 61 74 68 2c 20 | 61 6e 64 20 72 65 74 75 |h-path, |and retu|
|00000cc0| 72 6e 73 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e |rns the |location|
|00000cd0| 20 6f 66 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | of the |command |
|00000ce0| 77 68 69 63 68 20 77 6f | 75 6c 64 20 62 65 20 65 |which wo|uld be e|
|00000cf0| 78 65 63 75 74 65 64 2e | 0d 0d 54 68 65 20 77 68 |xecuted.|..The wh|
|00000d00| 69 63 68 20 63 6f 6d 6d | 61 6e 64 20 66 69 72 73 |ich comm|and firs|
|00000d10| 74 20 63 68 65 63 6b 73 | 20 74 6f 20 73 65 65 20 |t checks| to see |
|00000d20| 69 66 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |if the s|pecified|
|00000d30| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 69 6e 74 65 | command| is inte|
|00000d40| 72 6e 61 6c 20 74 6f 20 | 74 68 65 20 6e 53 68 65 |rnal to |the nShe|
|00000d50| 6c 6c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 20 |ll appli|cation. |
|00000d60| 20 45 61 63 68 20 64 69 | 72 65 63 74 6f 72 79 20 | Each di|rectory |
|00000d70| 69 6e 20 74 68 65 20 73 | 65 61 72 63 68 20 70 61 |in the s|earch pa|
|00000d80| 74 68 20 69 73 20 74 68 | 65 6e 20 65 78 61 6d 69 |th is th|en exami|
|00000d90| 6e 65 64 20 74 6f 20 73 | 65 65 20 69 66 20 69 74 |ned to s|ee if it|
|00000da0| 20 63 6f 6e 74 61 69 6e | 73 20 61 6e 20 65 78 74 | contain|s an ext|
|00000db0| 65 72 6e 61 6c 20 63 6f | 6d 6d 61 6e 64 20 6f 72 |ernal co|mmand or|
|00000dc0| 20 73 68 65 6c 6c 20 73 | 63 72 69 70 74 20 6f 66 | shell s|cript of|
|00000dd0| 20 74 68 65 20 67 69 76 | 65 6e 20 6e 61 6d 65 2e | the giv|en name.|
|00000de0| 20 20 41 6e 79 20 27 54 | 45 58 54 27 20 66 69 6c | Any 'T|EXT' fil|
|00000df0| 65 20 77 69 74 68 20 61 | 20 6d 61 74 63 68 69 6e |e with a| matchin|
|00000e00| 67 20 6e 61 6d 65 20 69 | 73 20 61 73 73 75 6d 65 |g name i|s assume|
|00000e10| 64 20 74 6f 20 62 65 20 | 61 20 73 68 65 6c 6c 20 |d to be |a shell |
|00000e20| 73 63 72 69 70 74 2e 0d | 0d 52 45 54 55 52 4e 20 |script..|.RETURN |
|00000e30| 43 4f 44 45 53 0d 0d 3c | 30 09 45 72 72 6f 72 20 |CODES..<|0.Error |
|00000e40| 6f 72 20 63 6f 6d 6d 61 | 6e 64 20 6e 6f 74 20 66 |or comma|nd not f|
|00000e50| 6f 75 6e 64 0d 30 09 53 | 75 63 63 65 73 73 0d 0d |ound.0.S|uccess..|
|00000e60| 53 45 45 20 41 4c 53 4f | 0d 0d 70 61 74 68 2c 20 |SEE ALSO|..path, |
|00000e70| 70 61 74 68 63 68 6b 00 | 00 02 e1 0d 4e 41 4d 45 |pathchk.|....NAME|
|00000e80| 0d 0d 70 61 74 68 20 2d | 20 64 65 66 69 6e 65 20 |..path -| define |
|00000e90| 61 20 63 6f 6d 6d 61 6e | 64 20 73 65 61 72 63 68 |a comman|d search|
|00000ea0| 20 70 61 74 68 0d 0d 53 | 59 4e 4f 50 53 49 53 0d | path..S|YNOPSIS.|
|00000eb0| 0d 70 61 74 68 20 22 74 | 68 69 73 3a 69 73 3a 70 |.path "t|his:is:p|
|00000ec0| 61 74 68 3a 6f 6e 65 2f | 74 68 69 73 3a 69 73 3a |ath:one/|this:is:|
|00000ed0| 70 61 74 68 3a 74 77 6f | 22 0d 0d 44 45 53 43 52 |path:two|"..DESCR|
|00000ee0| 49 50 54 49 4f 4e 0d 0d | 54 68 65 20 22 70 61 74 |IPTION..|The "pat|
|00000ef0| 68 22 20 63 6f 6d 6d 61 | 6e 64 20 61 6c 6c 6f 77 |h" comma|nd allow|
|00000f00| 73 20 74 68 65 20 75 73 | 65 72 20 74 6f 20 73 70 |s the us|er to sp|
|00000f10| 65 63 69 66 79 20 61 20 | 63 6f 6d 6d 61 6e 64 20 |ecify a |command |
|00000f20| 73 65 61 72 63 68 20 70 | 61 74 68 2e 20 20 54 68 |search p|ath. Th|
|00000f30| 65 20 70 61 74 68 20 69 | 73 20 73 74 6f 72 65 64 |e path i|s stored|
|00000f40| 20 69 6e 20 74 68 65 20 | 24 50 41 54 48 20 73 68 | in the |$PATH sh|
|00000f50| 65 6c 6c 20 76 61 72 69 | 61 62 6c 65 2e 20 20 44 |ell vari|able. D|
|00000f60| 69 72 65 63 74 6f 72 69 | 65 73 20 61 72 65 20 73 |irectori|es are s|
|00000f70| 65 70 61 72 61 74 65 64 | 20 62 79 20 22 3a 22 2c |eparated| by ":",|
|00000f80| 20 61 6e 64 20 70 61 74 | 68 73 20 61 72 65 20 73 | and pat|hs are s|
|00000f90| 65 70 61 72 61 74 65 64 | 20 62 79 20 22 2f 22 2e |eparated| by "/".|
|00000fa0| 20 20 41 20 73 69 6e 67 | 6c 65 20 22 3a 22 20 6d | A sing|le ":" m|
|00000fb0| 61 79 20 62 65 20 75 73 | 65 64 20 74 6f 20 73 70 |ay be us|ed to sp|
|00000fc0| 65 63 69 66 79 20 74 68 | 65 20 63 75 72 72 65 6e |ecify th|e curren|
|00000fd0| 74 20 64 69 72 65 63 74 | 6f 72 79 2c 20 61 73 20 |t direct|ory, as |
|00000fe0| 69 6e 20 22 70 61 74 68 | 20 3a 2f 74 68 69 73 3a |in "path| :/this:|
|00000ff0| 69 73 3a 70 61 74 68 3a | 74 77 6f 22 20 2e 0d 0d |is:path:|two" ...|
|00001000| 41 6e 79 20 76 61 72 69 | 61 62 6c 65 73 20 75 73 |Any vari|ables us|
|00001010| 65 64 20 69 6e 20 74 68 | 65 20 70 61 74 68 20 61 |ed in th|e path a|
|00001020| 72 65 20 65 76 61 6c 75 | 61 74 65 64 20 77 68 65 |re evalu|ated whe|
|00001030| 6e 20 79 6f 75 20 69 73 | 73 75 65 20 74 68 65 20 |n you is|sue the |
|00001040| 70 61 74 68 20 63 6f 6d | 6d 61 6e 64 2e 20 20 49 |path com|mand. I|
|00001050| 6e 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 22 70 |n the co|mmand "p|
|00001060| 61 74 68 20 24 48 4f 4d | 45 3a 62 69 6e 22 2c 20 |ath $HOM|E:bin", |
|00001070| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 24 48 4f |the valu|e of $HO|
|00001080| 4d 45 20 69 73 20 65 76 | 61 6c 75 61 74 65 64 20 |ME is ev|aluated |
|00001090| 69 6d 6d 65 64 69 61 74 | 65 6c 79 2e 20 20 49 66 |immediat|ely. If|
|000010a0| 20 79 6f 75 20 63 68 61 | 6e 67 65 20 74 68 65 20 | you cha|nge the |
|000010b0| 76 61 6c 75 65 20 6f 66 | 20 24 48 4f 4d 45 20 6c |value of| $HOME l|
|000010c0| 61 74 65 72 2c 20 74 68 | 65 20 70 61 74 68 20 77 |ater, th|e path w|
|000010d0| 69 6c 6c 20 63 6f 6e 74 | 69 6e 75 65 20 74 6f 20 |ill cont|inue to |
|000010e0| 70 6f 69 6e 74 20 74 6f | 20 74 68 65 20 6f 72 69 |point to| the ori|
|000010f0| 67 69 6e 61 6c 20 3a 62 | 69 6e 20 64 69 72 65 63 |ginal :b|in direc|
|00001100| 74 6f 72 79 2e 0d 0d 54 | 68 65 20 64 65 66 61 75 |tory...T|he defau|
|00001110| 6c 74 20 70 61 74 68 20 | 69 73 20 22 3a 2f 24 48 |lt path |is ":/$H|
|00001120| 4f 4d 45 3a 62 69 6e 22 | 2e 0d 0d 52 45 54 55 52 |OME:bin"|...RETUR|
|00001130| 4e 20 43 4f 44 45 53 0d | 0d 3c 30 09 45 72 72 6f |N CODES.|.<0.Erro|
|00001140| 72 0d 30 09 53 75 63 63 | 65 73 73 0d 0d 53 45 45 |r.0.Succ|ess..SEE|
|00001150| 20 41 4c 53 4f 0d 0d 77 | 68 69 63 68 00 00 00 f7 | ALSO..w|hich....|
|00001160| 0d 4e 41 4d 45 0d 0d 70 | 77 64 20 2d 20 70 72 69 |.NAME..p|wd - pri|
|00001170| 6e 74 20 77 6f 72 6b 69 | 6e 67 20 64 69 72 65 63 |nt worki|ng direc|
|00001180| 74 6f 72 79 0d 0d 53 59 | 4e 4f 50 53 49 53 0d 0d |tory..SY|NOPSIS..|
|00001190| 70 77 64 0d 0d 44 45 53 | 43 52 49 50 54 49 4f 4e |pwd..DES|CRIPTION|
|000011a0| 0d 0d 54 68 65 20 22 70 | 77 64 22 20 63 6f 6d 6d |..The "p|wd" comm|
|000011b0| 61 6e 64 20 70 72 69 6e | 74 73 20 74 68 65 20 66 |and prin|ts the f|
|000011c0| 75 6c 6c 20 70 61 74 68 | 20 6f 66 20 74 68 65 20 |ull path| of the |
|000011d0| 63 75 72 72 65 6e 74 20 | 77 6f 72 6b 69 6e 67 20 |current |working |
|000011e0| 64 69 72 65 63 74 6f 72 | 79 2e 20 20 54 68 65 20 |director|y. The |
|000011f0| 77 6f 72 6b 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |working |director|
|00001200| 79 20 69 73 20 73 74 6f | 72 65 64 20 69 6e 20 74 |y is sto|red in t|
|00001210| 68 65 20 24 50 57 44 20 | 73 68 65 6c 6c 20 76 61 |he $PWD |shell va|
|00001220| 72 69 61 62 6c 65 2e 0d | 0d 52 45 54 55 52 4e 20 |riable..|.RETURN |
|00001230| 43 4f 44 45 53 0d 0d 3c | 30 09 45 72 72 6f 72 0d |CODES..<|0.Error.|
|00001240| 30 09 53 75 63 63 65 73 | 73 0d 0d 53 45 45 20 41 |0.Succes|s..SEE A|
|00001250| 4c 53 4f 0d 0d 63 64 00 | 00 02 30 0d 4e 41 4d 45 |LSO..cd.|..0.NAME|
|00001260| 0d 0d 63 64 20 2d 20 63 | 68 61 6e 67 65 20 77 6f |..cd - c|hange wo|
|00001270| 72 6b 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 0d |rking di|rectory.|
|00001280| 0d 53 59 4e 4f 50 53 49 | 53 0d 0d 63 64 20 22 74 |.SYNOPSI|S..cd "t|
|00001290| 68 69 73 3a 69 73 3a 6d | 79 20 6e 65 77 3a 70 61 |his:is:m|y new:pa|
|000012a0| 74 68 22 0d 0d 44 45 53 | 43 52 49 50 54 49 4f 4e |th"..DES|CRIPTION|
|000012b0| 0d 0d 54 68 65 20 22 63 | 64 22 20 63 6f 6d 6d 61 |..The "c|d" comma|
|000012c0| 6e 64 20 61 6c 6c 6f 77 | 73 20 74 68 65 20 75 73 |nd allow|s the us|
|000012d0| 65 72 20 74 6f 20 73 70 | 65 63 69 66 79 20 61 20 |er to sp|ecify a |
|000012e0| 6e 65 77 20 77 6f 72 6b | 69 6e 67 20 64 69 72 65 |new work|ing dire|
|000012f0| 63 74 6f 72 79 2e 20 20 | 54 68 65 20 77 6f 72 6b |ctory. |The work|
|00001300| 69 6e 67 20 64 69 72 65 | 63 74 6f 72 79 20 69 73 |ing dire|ctory is|
|00001310| 20 68 65 6c 64 20 69 6e | 20 74 68 65 20 24 50 57 | held in| the $PW|
|00001320| 44 20 73 68 65 6c 6c 20 | 76 61 72 69 61 62 6c 65 |D shell |variable|
|00001330| 2e 20 20 49 66 20 61 20 | 70 61 72 74 69 61 6c 20 |. If a |partial |
|00001340| 70 61 74 68 6e 61 6d 65 | 20 69 73 20 67 69 76 65 |pathname| is give|
|00001350| 6e 2c 20 61 20 66 75 6c | 6c 20 70 61 74 68 20 69 |n, a ful|l path i|
|00001360| 73 20 67 65 6e 65 72 61 | 74 65 64 20 75 73 69 6e |s genera|ted usin|
|00001370| 67 20 74 68 65 20 65 78 | 69 73 74 69 6e 67 20 24 |g the ex|isting $|
|00001380| 50 57 44 20 76 61 72 69 | 61 62 6c 65 2e 20 20 49 |PWD vari|able. I|
|00001390| 66 20 6e 6f 20 70 61 74 | 68 6e 61 6d 65 20 69 73 |f no pat|hname is|
|000013a0| 20 67 69 76 65 6e 2c 20 | 74 68 65 20 75 73 65 72 | given, |the user|
|000013b0| 20 69 73 20 72 65 74 75 | 72 6e 65 64 20 74 6f 20 | is retu|rned to |
|000013c0| 74 68 65 20 24 48 4f 4d | 45 20 64 69 72 65 63 74 |the $HOM|E direct|
|000013d0| 6f 72 79 2e 0d 0d 50 61 | 74 68 6e 61 6d 65 73 20 |ory...Pa|thnames |
|000013e0| 63 6f 6e 73 69 73 74 20 | 6f 66 20 76 6f 6c 75 6d |consist |of volum|
|000013f0| 65 20 61 6e 64 20 64 69 | 72 65 63 74 6f 72 79 20 |e and di|rectory |
|00001400| 6e 61 6d 65 73 20 73 65 | 70 61 72 61 74 65 64 20 |names se|parated |
|00001410| 62 79 20 27 3a 27 20 63 | 68 61 72 61 63 74 65 72 |by ':' c|haracter|
|00001420| 73 2e 20 20 50 61 74 68 | 6e 61 6d 65 73 20 6d 61 |s. Path|names ma|
|00001430| 79 20 62 65 20 22 71 75 | 6f 74 65 64 22 2c 20 61 |y be "qu|oted", a|
|00001440| 6e 64 20 6d 75 73 74 20 | 62 65 20 77 68 65 6e 20 |nd must |be when |
|00001450| 61 20 76 6f 6c 75 6d 65 | 20 6f 72 20 64 69 72 65 |a volume| or dire|
|00001460| 63 74 6f 72 79 20 6e 61 | 6d 65 20 63 6f 6e 74 61 |ctory na|me conta|
|00001470| 69 6e 73 20 61 20 73 70 | 61 63 65 2e 0d 0d 53 45 |ins a sp|ace...SE|
|00001480| 45 20 41 4c 53 4f 0d 0d | 70 77 64 00 00 02 4e 0d |E ALSO..|pwd...N.|
|00001490| 4e 41 4d 45 0d 0d 74 68 | 65 6e 20 2d 20 63 6f 6e |NAME..th|en - con|
|000014a0| 64 69 74 69 6f 6e 61 6c | 20 65 78 65 63 75 74 69 |ditional| executi|
|000014b0| 6f 6e 0d 0d 53 59 4e 4f | 50 53 49 53 0d 0d 69 66 |on..SYNO|PSIS..if|
|000014c0| 20 3c 63 6f 6d 6d 61 6e | 64 73 31 3e 20 74 68 65 | <comman|ds1> the|
|000014d0| 6e 20 3c 63 6f 6d 6d 61 | 6e 64 73 32 3e 20 5b 65 |n <comma|nds2> [e|
|000014e0| 6c 73 65 20 3c 63 6f 6d | 6d 61 6e 64 73 33 3e 5d |lse <com|mands3>]|
|000014f0| 20 65 6e 64 69 66 0d 0d | 44 45 53 43 52 49 50 54 | endif..|DESCRIPT|
|00001500| 49 4f 4e 0d 0d 49 66 20 | 74 68 65 20 72 65 73 75 |ION..If |the resu|
|00001510| 6c 74 20 6f 66 20 74 68 | 65 20 6c 61 73 74 20 63 |lt of th|e last c|
|00001520| 6f 6d 6d 61 6e 64 20 6f | 66 20 74 68 65 20 73 65 |ommand o|f the se|
|00001530| 74 20 3c 63 6f 6d 6d 61 | 6e 64 73 31 3e 20 63 6f |t <comma|nds1> co|
|00001540| 6d 70 6c 65 74 65 73 20 | 77 69 74 68 6f 75 74 20 |mpletes |without |
|00001550| 65 72 72 6f 72 20 28 72 | 65 73 75 6c 74 20 3d 20 |error (r|esult = |
|00001560| 7a 65 72 6f 29 2c 20 74 | 68 65 6e 20 74 68 65 20 |zero), t|hen the |
|00001570| 3c 63 6f 6d 6d 61 6e 64 | 73 32 3e 20 63 6c 61 75 |<command|s2> clau|
|00001580| 73 65 20 77 69 6c 6c 20 | 62 65 20 65 78 65 63 75 |se will |be execu|
|00001590| 74 65 64 2e 0d 0d 49 66 | 20 74 68 65 20 72 65 73 |ted...If| the res|
|000015a0| 75 6c 74 20 6f 66 20 74 | 68 65 20 6c 61 73 74 20 |ult of t|he last |
|000015b0| 63 6f 6d 6d 61 6e 64 20 | 6f 66 20 74 68 65 20 73 |command |of the s|
|000015c0| 65 74 20 3c 63 6f 6d 6d | 61 6e 64 73 31 3e 20 70 |et <comm|ands1> p|
|000015d0| 72 6f 64 75 63 65 73 20 | 61 6e 20 65 72 72 6f 72 |roduces |an error|
|000015e0| 20 28 72 65 73 75 6c 74 | 20 3c 3e 20 7a 65 72 6f | (result| <> zero|
|000015f0| 29 2c 20 61 6e 64 20 61 | 6e 20 65 6c 73 65 2d 63 |), and a|n else-c|
|00001600| 6c 61 75 73 65 20 69 73 | 20 70 72 65 73 65 6e 74 |lause is| present|
|00001610| 2c 20 74 68 61 74 20 63 | 6c 61 75 73 65 20 77 69 |, that c|lause wi|
|00001620| 6c 6c 20 65 78 65 63 75 | 74 65 2e 0d 0d 46 6c 6f |ll execu|te...Flo|
|00001630| 77 20 6f 66 20 63 6f 6e | 74 72 6f 6c 20 73 74 61 |w of con|trol sta|
|00001640| 74 65 6d 65 6e 74 73 20 | 61 72 65 20 61 76 61 69 |tements |are avai|
|00001650| 6c 61 62 6c 65 20 69 6e | 20 6e 53 68 65 6c 6c 2d |lable in| nShell-|
|00001660| 50 72 6f 28 74 6d 29 0d | 0d 52 45 54 55 52 4e 20 |Pro(tm).|.RETURN |
|00001670| 43 4f 44 45 53 0d 0d 3c | 30 09 45 72 72 6f 72 0d |CODES..<|0.Error.|
|00001680| 30 09 53 75 63 63 65 73 | 73 0d 0d 53 45 45 20 41 |0.Succes|s..SEE A|
|00001690| 4c 53 4f 0d 0d 77 68 69 | 6c 65 2c 20 75 6e 74 69 |LSO..whi|le, unti|
|000016a0| 6c 0d 0d 45 58 41 4d 50 | 4c 45 53 0d 0d 69 66 20 |l..EXAMP|LES..if |
|000016b0| 79 65 73 6e 6f 20 22 53 | 68 6f 75 6c 64 20 49 20 |yesno "S|hould I |
|000016c0| 73 61 79 20 68 65 6c 6c | 6f 3f 22 20 74 68 65 6e |say hell|o?" then|
|000016d0| 20 68 65 6c 6c 6f 20 65 | 6e 64 69 66 0d 00 00 02 | hello e|ndif....|
|000016e0| 4b 0d 4e 41 4d 45 0d 0d | 69 66 20 2d 20 63 6f 6e |K.NAME..|if - con|
|000016f0| 64 69 74 69 6f 6e 61 6c | 20 65 78 65 63 75 74 69 |ditional| executi|
|00001700| 6f 6e 0d 0d 53 59 4e 4f | 50 53 49 53 0d 0d 69 66 |on..SYNO|PSIS..if|
|00001710| 20 3c 63 6f 6d 6d 61 6e | 64 73 31 3e 20 74 68 65 | <comman|ds1> the|
|00001720| 6e 20 3c 63 6f 6d 6d 61 | 6e 64 73 32 3e 20 5b 65 |n <comma|nds2> [e|
|00001730| 6c 73 65 20 3c 63 6f 6d | 6d 61 6e 64 73 33 3e 5d |lse <com|mands3>]|
|00001740| 20 65 6e 64 69 66 0d 0d | 44 45 53 43 52 49 50 54 | endif..|DESCRIPT|
|00001750| 49 4f 4e 0d 0d 49 66 20 | 74 68 65 20 72 65 73 75 |ION..If |the resu|
|00001760| 6c 74 20 6f 66 20 74 68 | 65 20 6c 61 73 74 20 63 |lt of th|e last c|
|00001770| 6f 6d 6d 61 6e 64 20 6f | 66 20 74 68 65 20 73 65 |ommand o|f the se|
|00001780| 74 20 3c 63 6f 6d 6d 61 | 6e 64 73 31 3e 20 63 6f |t <comma|nds1> co|
|00001790| 6d 70 6c 65 74 65 73 20 | 77 69 74 68 6f 75 74 20 |mpletes |without |
|000017a0| 65 72 72 6f 72 20 28 72 | 65 73 75 6c 74 20 3d 20 |error (r|esult = |
|000017b0| 7a 65 72 6f 29 2c 20 74 | 68 65 6e 20 74 68 65 20 |zero), t|hen the |
|000017c0| 3c 63 6f 6d 6d 61 6e 64 | 73 32 3e 20 63 6c 61 75 |<command|s2> clau|
|000017d0| 73 65 20 77 69 6c 6c 20 | 62 65 20 65 78 65 63 75 |se will |be execu|
|000017e0| 74 65 64 2e 0d 0d 49 66 | 20 74 68 65 20 72 65 73 |ted...If| the res|
|000017f0| 75 6c 74 20 6f 66 20 74 | 68 65 20 6c 61 73 74 20 |ult of t|he last |
|00001800| 63 6f 6d 6d 61 6e 64 20 | 6f 66 20 74 68 65 20 73 |command |of the s|
|00001810| 65 74 20 3c 63 6f 6d 6d | 61 6e 64 73 31 3e 20 70 |et <comm|ands1> p|
|00001820| 72 6f 64 75 63 65 73 20 | 61 6e 20 65 72 72 6f 72 |roduces |an error|
|00001830| 20 28 72 65 73 75 6c 74 | 20 3c 3e 20 7a 65 72 6f | (result| <> zero|
|00001840| 29 2c 20 61 6e 64 20 61 | 6e 20 65 6c 73 65 2d 63 |), and a|n else-c|
|00001850| 6c 61 75 73 65 20 69 73 | 20 70 72 65 73 65 6e 74 |lause is| present|
|00001860| 2c 20 74 68 61 74 20 63 | 6c 61 75 73 65 20 77 69 |, that c|lause wi|
|00001870| 6c 6c 20 65 78 65 63 75 | 74 65 2e 0d 0d 46 6c 6f |ll execu|te...Flo|
|00001880| 77 20 6f 66 20 63 6f 6e | 74 72 6f 6c 20 73 74 61 |w of con|trol sta|
|00001890| 74 65 6d 65 6e 74 73 20 | 61 72 65 20 61 76 61 69 |tements |are avai|
|000018a0| 6c 61 62 6c 65 20 69 6e | 20 6e 53 68 65 6c 6c 2d |lable in| nShell-|
|000018b0| 50 72 6f 28 74 6d 29 0d | 0d 52 45 54 55 52 4e 20 |Pro(tm).|.RETURN |
|000018c0| 43 4f 44 45 53 0d 0d 3c | 30 09 45 72 72 6f 72 0d |CODES..<|0.Error.|
|000018d0| 30 09 53 75 63 63 65 73 | 73 0d 0d 53 45 45 20 41 |0.Succes|s..SEE A|
|000018e0| 4c 53 4f 0d 0d 77 68 69 | 6c 65 2c 20 75 6e 74 69 |LSO..whi|le, unti|
|000018f0| 6c 0d 0d 45 58 41 4d 50 | 4c 45 53 0d 0d 69 66 20 |l..EXAMP|LES..if |
|00001900| 79 65 73 6e 6f 20 22 53 | 68 6f 75 6c 64 20 49 20 |yesno "S|hould I |
|00001910| 73 61 79 20 68 65 6c 6c | 6f 3f 22 20 74 68 65 6e |say hell|o?" then|
|00001920| 20 68 65 6c 6c 6f 20 65 | 6e 64 69 66 00 00 02 4e | hello e|ndif...N|
|00001930| 0d 4e 41 4d 45 0d 0d 65 | 6c 73 65 20 2d 20 63 6f |.NAME..e|lse - co|
|00001940| 6e 64 69 74 69 6f 6e 61 | 6c 20 65 78 65 63 75 74 |nditiona|l execut|
|00001950| 69 6f 6e 0d 0d 53 59 4e | 4f 50 53 49 53 0d 0d 69 |ion..SYN|OPSIS..i|
|00001960| 66 20 3c 63 6f 6d 6d 61 | 6e 64 73 31 3e 20 74 68 |f <comma|nds1> th|
|00001970| 65 6e 20 3c 63 6f 6d 6d | 61 6e 64 73 32 3e 20 5b |en <comm|ands2> [|
|00001980| 65 6c 73 65 20 3c 63 6f | 6d 6d 61 6e 64 73 33 3e |else <co|mmands3>|
|00001990| 5d 20 65 6e 64 69 66 0d | 0d 44 45 53 43 52 49 50 |] endif.|.DESCRIP|
|000019a0| 54 49 4f 4e 0d 0d 49 66 | 20 74 68 65 20 72 65 73 |TION..If| the res|
|000019b0| 75 6c 74 20 6f 66 20 74 | 68 65 20 6c 61 73 74 20 |ult of t|he last |
|000019c0| 63 6f 6d 6d 61 6e 64 20 | 6f 66 20 74 68 65 20 73 |command |of the s|
|000019d0| 65 74 20 3c 63 6f 6d 6d | 61 6e 64 73 31 3e 20 63 |et <comm|ands1> c|
|000019e0| 6f 6d 70 6c 65 74 65 73 | 20 77 69 74 68 6f 75 74 |ompletes| without|
|000019f0| 20 65 72 72 6f 72 20 28 | 72 65 73 75 6c 74 20 3d | error (|result =|
|00001a00| 20 7a 65 72 6f 29 2c 20 | 74 68 65 6e 20 74 68 65 | zero), |then the|
|00001a10| 20 3c 63 6f 6d 6d 61 6e | 64 73 32 3e 20 63 6c 61 | <comman|ds2> cla|
|00001a20| 75 73 65 20 77 69 6c 6c | 20 62 65 20 65 78 65 63 |use will| be exec|
|00001a30| 75 74 65 64 2e 0d 0d 49 | 66 20 74 68 65 20 72 65 |uted...I|f the re|
|00001a40| 73 75 6c 74 20 6f 66 20 | 74 68 65 20 6c 61 73 74 |sult of |the last|
|00001a50| 20 63 6f 6d 6d 61 6e 64 | 20 6f 66 20 74 68 65 20 | command| of the |
|00001a60| 73 65 74 20 3c 63 6f 6d | 6d 61 6e 64 73 31 3e 20 |set <com|mands1> |
|00001a70| 70 72 6f 64 75 63 65 73 | 20 61 6e 20 65 72 72 6f |produces| an erro|
|00001a80| 72 20 28 72 65 73 75 6c | 74 20 3c 3e 20 7a 65 72 |r (resul|t <> zer|
|00001a90| 6f 29 2c 20 61 6e 64 20 | 61 6e 20 65 6c 73 65 2d |o), and |an else-|
|00001aa0| 63 6c 61 75 73 65 20 69 | 73 20 70 72 65 73 65 6e |clause i|s presen|
|00001ab0| 74 2c 20 74 68 61 74 20 | 63 6c 61 75 73 65 20 77 |t, that |clause w|
|00001ac0| 69 6c 6c 20 65 78 65 63 | 75 74 65 2e 0d 0d 46 6c |ill exec|ute...Fl|
|00001ad0| 6f 77 20 6f 66 20 63 6f | 6e 74 72 6f 6c 20 73 74 |ow of co|ntrol st|
|00001ae0| 61 74 65 6d 65 6e 74 73 | 20 61 72 65 20 61 76 61 |atements| are ava|
|00001af0| 69 6c 61 62 6c 65 20 69 | 6e 20 6e 53 68 65 6c 6c |ilable i|n nShell|
|00001b00| 2d 50 72 6f 28 74 6d 29 | 0d 0d 52 45 54 55 52 4e |-Pro(tm)|..RETURN|
|00001b10| 20 43 4f 44 45 53 0d 0d | 3c 30 09 45 72 72 6f 72 | CODES..|<0.Error|
|00001b20| 0d 30 09 53 75 63 63 65 | 73 73 0d 0d 53 45 45 20 |.0.Succe|ss..SEE |
|00001b30| 41 4c 53 4f 0d 0d 77 68 | 69 6c 65 2c 20 75 6e 74 |ALSO..wh|ile, unt|
|00001b40| 69 6c 0d 0d 45 58 41 4d | 50 4c 45 53 0d 0d 69 66 |il..EXAM|PLES..if|
|00001b50| 20 79 65 73 6e 6f 20 22 | 53 68 6f 75 6c 64 20 49 | yesno "|Should I|
|00001b60| 20 73 61 79 20 68 65 6c | 6c 6f 3f 22 20 74 68 65 | say hel|lo?" the|
|00001b70| 6e 20 68 65 6c 6c 6f 20 | 65 6e 64 69 66 0d 00 00 |n hello |endif...|
|00001b80| 02 4f 0d 4e 41 4d 45 0d | 0d 65 6e 64 69 66 20 2d |.O.NAME.|.endif -|
|00001b90| 20 63 6f 6e 64 69 74 69 | 6f 6e 61 6c 20 65 78 65 | conditi|onal exe|
|00001ba0| 63 75 74 69 6f 6e 0d 0d | 53 59 4e 4f 50 53 49 53 |cution..|SYNOPSIS|
|00001bb0| 0d 0d 69 66 20 3c 63 6f | 6d 6d 61 6e 64 73 31 3e |..if <co|mmands1>|
|00001bc0| 20 74 68 65 6e 20 3c 63 | 6f 6d 6d 61 6e 64 73 32 | then <c|ommands2|
|00001bd0| 3e 20 5b 65 6c 73 65 20 | 3c 63 6f 6d 6d 61 6e 64 |> [else |<command|
|00001be0| 73 33 3e 5d 20 65 6e 64 | 69 66 0d 0d 44 45 53 43 |s3>] end|if..DESC|
|00001bf0| 52 49 50 54 49 4f 4e 0d | 0d 49 66 20 74 68 65 20 |RIPTION.|.If the |
|00001c00| 72 65 73 75 6c 74 20 6f | 66 20 74 68 65 20 6c 61 |result o|f the la|
|00001c10| 73 74 20 63 6f 6d 6d 61 | 6e 64 20 6f 66 20 74 68 |st comma|nd of th|
|00001c20| 65 20 73 65 74 20 3c 63 | 6f 6d 6d 61 6e 64 73 31 |e set <c|ommands1|
|00001c30| 3e 20 63 6f 6d 70 6c 65 | 74 65 73 20 77 69 74 68 |> comple|tes with|
|00001c40| 6f 75 74 20 65 72 72 6f | 72 20 28 72 65 73 75 6c |out erro|r (resul|
|00001c50| 74 20 3d 20 7a 65 72 6f | 29 2c 20 74 68 65 6e 20 |t = zero|), then |
|00001c60| 74 68 65 20 3c 63 6f 6d | 6d 61 6e 64 73 32 3e 20 |the <com|mands2> |
|00001c70| 63 6c 61 75 73 65 20 77 | 69 6c 6c 20 62 65 20 65 |clause w|ill be e|
|00001c80| 78 65 63 75 74 65 64 2e | 0d 0d 49 66 20 74 68 65 |xecuted.|..If the|
|00001c90| 20 72 65 73 75 6c 74 20 | 6f 66 20 74 68 65 20 6c | result |of the l|
|00001ca0| 61 73 74 20 63 6f 6d 6d | 61 6e 64 20 6f 66 20 74 |ast comm|and of t|
|00001cb0| 68 65 20 73 65 74 20 3c | 63 6f 6d 6d 61 6e 64 73 |he set <|commands|
|00001cc0| 31 3e 20 70 72 6f 64 75 | 63 65 73 20 61 6e 20 65 |1> produ|ces an e|
|00001cd0| 72 72 6f 72 20 28 72 65 | 73 75 6c 74 20 3c 3e 20 |rror (re|sult <> |
|00001ce0| 7a 65 72 6f 29 2c 20 61 | 6e 64 20 61 6e 20 65 6c |zero), a|nd an el|
|00001cf0| 73 65 2d 63 6c 61 75 73 | 65 20 69 73 20 70 72 65 |se-claus|e is pre|
|00001d00| 73 65 6e 74 2c 20 74 68 | 61 74 20 63 6c 61 75 73 |sent, th|at claus|
|00001d10| 65 20 77 69 6c 6c 20 65 | 78 65 63 75 74 65 2e 0d |e will e|xecute..|
|00001d20| 0d 46 6c 6f 77 20 6f 66 | 20 63 6f 6e 74 72 6f 6c |.Flow of| control|
|00001d30| 20 73 74 61 74 65 6d 65 | 6e 74 73 20 61 72 65 20 | stateme|nts are |
|00001d40| 61 76 61 69 6c 61 62 6c | 65 20 69 6e 20 6e 53 68 |availabl|e in nSh|
|00001d50| 65 6c 6c 2d 50 72 6f 28 | 74 6d 29 0d 0d 52 45 54 |ell-Pro(|tm)..RET|
|00001d60| 55 52 4e 20 43 4f 44 45 | 53 0d 0d 3c 30 09 45 72 |URN CODE|S..<0.Er|
|00001d70| 72 6f 72 0d 30 09 53 75 | 63 63 65 73 73 0d 0d 53 |ror.0.Su|ccess..S|
|00001d80| 45 45 20 41 4c 53 4f 0d | 0d 77 68 69 6c 65 2c 20 |EE ALSO.|.while, |
|00001d90| 75 6e 74 69 6c 0d 0d 45 | 58 41 4d 50 4c 45 53 0d |until..E|XAMPLES.|
|00001da0| 0d 69 66 20 79 65 73 6e | 6f 20 22 53 68 6f 75 6c |.if yesn|o "Shoul|
|00001db0| 64 20 49 20 73 61 79 20 | 68 65 6c 6c 6f 3f 22 20 |d I say |hello?" |
|00001dc0| 74 68 65 6e 20 68 65 6c | 6c 6f 20 65 6e 64 69 66 |then hel|lo endif|
|00001dd0| 0d 00 00 02 6c 0d 4e 41 | 4d 45 0d 0d 77 68 69 6c |....l.NA|ME..whil|
|00001de0| 65 20 2d 20 63 6f 6e 64 | 69 74 69 6f 6e 61 6c 20 |e - cond|itional |
|00001df0| 65 78 65 63 75 74 69 6f | 6e 0d 0d 53 59 4e 4f 50 |executio|n..SYNOP|
|00001e00| 53 49 53 0d 0d 77 68 69 | 6c 65 20 3c 63 6f 6d 6d |SIS..whi|le <comm|
|00001e10| 61 6e 64 73 31 3e 20 64 | 6f 20 3c 63 6f 6d 6d 61 |ands1> d|o <comma|
|00001e20| 6e 64 73 32 3e 20 64 6f | 6e 65 0d 0d 44 45 53 43 |nds2> do|ne..DESC|
|00001e30| 52 49 50 54 49 4f 4e 0d | 0d 49 6e 20 74 68 69 73 |RIPTION.|.In this|
|00001e40| 20 73 74 72 75 63 74 75 | 72 65 2c 20 74 68 65 20 | structu|re, the |
|00001e50| 3c 63 6f 6d 6d 61 6e 64 | 73 31 3e 20 63 6c 61 75 |<command|s1> clau|
|00001e60| 73 65 20 77 69 6c 6c 20 | 61 6c 77 61 79 73 20 65 |se will |always e|
|00001e70| 78 65 63 75 74 65 2e 20 | 20 49 66 20 74 68 65 20 |xecute. | If the |
|00001e80| 72 65 73 75 6c 74 20 6f | 66 20 74 68 65 20 6c 61 |result o|f the la|
|00001e90| 73 74 20 63 6f 6d 6d 61 | 6e 64 20 6f 66 20 74 68 |st comma|nd of th|
|00001ea0| 65 20 73 65 74 20 63 6f | 6d 70 6c 65 74 65 73 20 |e set co|mpletes |
|00001eb0| 77 69 74 68 6f 75 74 20 | 65 72 72 6f 72 20 28 72 |without |error (r|
|00001ec0| 65 73 75 6c 74 20 3d 20 | 7a 65 72 6f 29 2c 20 74 |esult = |zero), t|
|00001ed0| 68 65 6e 20 74 68 65 20 | 3c 63 6f 6d 6d 61 6e 64 |hen the |<command|
|00001ee0| 73 32 3e 20 63 6c 61 75 | 73 65 20 77 69 6c 6c 20 |s2> clau|se will |
|00001ef0| 62 65 20 65 78 65 63 75 | 74 65 64 2e 20 20 43 6f |be execu|ted. Co|
|00001f00| 6e 74 72 6f 6c 20 77 69 | 6c 6c 20 74 68 65 6e 20 |ntrol wi|ll then |
|00001f10| 72 65 74 75 72 6e 20 74 | 6f 20 74 68 65 20 3c 63 |return t|o the <c|
|00001f20| 6f 6d 6d 61 6e 64 73 31 | 3e 20 63 6c 61 75 73 65 |ommands1|> clause|
|00001f30| 2c 20 61 6e 64 20 74 68 | 65 20 70 72 6f 63 65 73 |, and th|e proces|
|00001f40| 73 20 77 69 6c 6c 20 63 | 6f 6e 74 69 6e 75 65 20 |s will c|ontinue |
|00001f50| 75 6e 74 69 6c 20 74 68 | 65 20 6c 61 73 74 20 63 |until th|e last c|
|00001f60| 6f 6d 6d 61 6e 64 20 6f | 66 20 74 68 69 73 20 73 |ommand o|f this s|
|00001f70| 65 74 20 70 72 6f 64 75 | 63 65 73 20 61 6e 20 65 |et produ|ces an e|
|00001f80| 72 72 6f 72 20 28 72 65 | 73 75 6c 74 20 3c 3e 20 |rror (re|sult <> |
|00001f90| 30 29 2e 0d 0d 46 6c 6f | 77 20 6f 66 20 63 6f 6e |0)...Flo|w of con|
|00001fa0| 74 72 6f 6c 20 73 74 61 | 74 65 6d 65 6e 74 73 20 |trol sta|tements |
|00001fb0| 61 72 65 20 61 76 61 69 | 6c 61 62 6c 65 20 69 6e |are avai|lable in|
|00001fc0| 20 6e 53 68 65 6c 6c 2d | 50 72 6f 28 74 6d 29 0d | nShell-|Pro(tm).|
|00001fd0| 0d 52 45 54 55 52 4e 20 | 43 4f 44 45 53 0d 0d 3c |.RETURN |CODES..<|
|00001fe0| 30 09 45 72 72 6f 72 0d | 30 09 53 75 63 63 65 73 |0.Error.|0.Succes|
|00001ff0| 73 0d 0d 53 45 45 20 41 | 4c 53 4f 0d 0d 75 6e 74 |s..SEE A|LSO..unt|
|00002000| 69 6c 2c 20 69 66 0d 0d | 45 58 41 4d 50 4c 45 53 |il, if..|EXAMPLES|
|00002010| 0d 0d 77 68 69 6c 65 20 | 79 65 73 6e 6f 20 22 53 |..while |yesno "S|
|00002020| 68 6f 75 6c 64 20 49 20 | 73 61 79 20 68 65 6c 6c |hould I |say hell|
|00002030| 6f 3f 22 20 64 6f 20 68 | 65 6c 6c 6f 20 64 6f 6e |o?" do h|ello don|
|00002040| 65 00 00 02 74 0d 4e 41 | 4d 45 0d 0d 75 6e 74 69 |e...t.NA|ME..unti|
|00002050| 6c 20 2d 20 63 6f 6e 64 | 69 74 69 6f 6e 61 6c 20 |l - cond|itional |
|00002060| 65 78 65 63 75 74 69 6f | 6e 0d 0d 53 59 4e 4f 50 |executio|n..SYNOP|
|00002070| 53 49 53 0d 0d 75 6e 74 | 69 6c 20 3c 63 6f 6d 6d |SIS..unt|il <comm|
|00002080| 61 6e 64 73 31 3e 20 64 | 6f 20 3c 63 6f 6d 6d 61 |ands1> d|o <comma|
|00002090| 6e 64 73 32 3e 20 64 6f | 6e 65 0d 0d 44 45 53 43 |nds2> do|ne..DESC|
|000020a0| 52 49 50 54 49 4f 4e 0d | 0d 49 6e 20 74 68 69 73 |RIPTION.|.In this|
|000020b0| 20 73 74 72 75 63 74 75 | 72 65 2c 20 74 68 65 20 | structu|re, the |
|000020c0| 3c 63 6f 6d 6d 61 6e 64 | 73 31 3e 20 63 6c 61 75 |<command|s1> clau|
|000020d0| 73 65 20 77 69 6c 6c 20 | 61 6c 77 61 79 73 20 65 |se will |always e|
|000020e0| 78 65 63 75 74 65 2e 20 | 20 49 66 20 74 68 65 20 |xecute. | If the |
|000020f0| 72 65 73 75 6c 74 20 6f | 66 20 74 68 65 20 6c 61 |result o|f the la|
|00002100| 73 74 20 63 6f 6d 6d 61 | 6e 64 20 6f 66 20 74 68 |st comma|nd of th|
|00002110| 65 20 73 65 74 20 70 72 | 6f 64 75 63 65 73 20 61 |e set pr|oduces a|
|00002120| 6e 20 65 72 72 6f 72 20 | 28 72 65 73 75 6c 74 20 |n error |(result |
|00002130| 3c 3e 20 7a 65 72 6f 29 | 2c 20 74 68 65 6e 20 74 |<> zero)|, then t|
|00002140| 68 65 20 3c 63 6f 6d 6d | 61 6e 64 73 32 3e 20 63 |he <comm|ands2> c|
|00002150| 6c 61 75 73 65 20 77 69 | 6c 6c 20 62 65 20 65 78 |lause wi|ll be ex|
|00002160| 65 63 75 74 65 64 2e 20 | 20 43 6f 6e 74 72 6f 6c |ecuted. | Control|
|00002170| 20 77 69 6c 6c 20 74 68 | 65 6e 20 72 65 74 75 72 | will th|en retur|
|00002180| 6e 20 74 6f 20 74 68 65 | 20 3c 63 6f 6d 6d 61 6e |n to the| <comman|
|00002190| 64 73 31 3e 20 63 6c 61 | 75 73 65 2c 20 61 6e 64 |ds1> cla|use, and|
|000021a0| 20 74 68 65 20 70 72 6f | 63 65 73 73 20 77 69 6c | the pro|cess wil|
|000021b0| 6c 20 63 6f 6e 74 69 6e | 75 65 20 75 6e 74 69 6c |l contin|ue until|
|000021c0| 20 74 68 65 20 6c 61 73 | 74 20 63 6f 6d 6d 61 6e | the las|t comman|
|000021d0| 64 20 6f 66 20 74 68 69 | 73 20 73 65 74 20 63 6f |d of thi|s set co|
|000021e0| 6d 70 6c 65 74 65 73 20 | 77 69 74 68 6f 75 74 20 |mpletes |without |
|000021f0| 65 72 72 6f 72 20 28 72 | 65 73 75 6c 74 20 3d 20 |error (r|esult = |
|00002200| 30 29 2e 0d 0d 46 6c 6f | 77 20 6f 66 20 63 6f 6e |0)...Flo|w of con|
|00002210| 74 72 6f 6c 20 73 74 61 | 74 65 6d 65 6e 74 73 20 |trol sta|tements |
|00002220| 61 72 65 20 61 76 61 69 | 6c 61 62 6c 65 20 69 6e |are avai|lable in|
|00002230| 20 6e 53 68 65 6c 6c 2d | 50 72 6f 28 74 6d 29 0d | nShell-|Pro(tm).|
|00002240| 0d 52 45 54 55 52 4e 20 | 43 4f 44 45 53 0d 0d 3c |.RETURN |CODES..<|
|00002250| 30 09 45 72 72 6f 72 0d | 30 09 53 75 63 63 65 73 |0.Error.|0.Succes|
|00002260| 73 0d 0d 53 45 45 20 41 | 4c 53 4f 0d 0d 77 68 69 |s..SEE A|LSO..whi|
|00002270| 6c 65 2c 20 69 66 0d 0d | 45 58 41 4d 50 4c 45 53 |le, if..|EXAMPLES|
|00002280| 0d 0d 75 6e 74 69 6c 20 | 79 65 73 6e 6f 20 22 53 |..until |yesno "S|
|00002290| 68 6f 75 6c 64 20 49 20 | 53 54 4f 50 20 73 61 79 |hould I |STOP say|
|000022a0| 69 6e 67 20 68 65 6c 6c | 6f 3f 22 20 64 6f 20 68 |ing hell|o?" do h|
|000022b0| 65 6c 6c 6f 20 64 6f 6e | 65 00 00 00 ca 0d 4e 41 |ello don|e.....NA|
|000022c0| 4d 45 0d 0d 64 6f 20 2d | 20 63 6f 6e 64 69 74 69 |ME..do -| conditi|
|000022d0| 6f 6e 61 6c 20 65 78 65 | 63 75 74 69 6f 6e 0d 0d |onal exe|cution..|
|000022e0| 53 59 4e 4f 50 53 49 53 | 0d 0d 77 68 69 6c 65 20 |SYNOPSIS|..while |
|000022f0| 3c 63 6f 6d 6d 61 6e 64 | 73 31 3e 20 64 6f 20 3c |<command|s1> do <|
|00002300| 63 6f 6d 6d 61 6e 64 73 | 32 3e 20 64 6f 6e 65 0d |commands|2> done.|
|00002310| 0d 6f 72 0d 0d 75 6e 74 | 69 6c 20 3c 63 6f 6d 6d |.or..unt|il <comm|
|00002320| 61 6e 64 73 31 3e 20 64 | 6f 20 3c 63 6f 6d 6d 61 |ands1> d|o <comma|
|00002330| 6e 64 73 32 3e 20 64 6f | 6e 65 0d 0d 44 45 53 43 |nds2> do|ne..DESC|
|00002340| 52 49 50 54 49 4f 4e 0d | 0d 53 65 65 20 74 68 65 |RIPTION.|.See the|
|00002350| 20 6d 61 6e 20 70 61 67 | 65 20 66 6f 72 20 22 77 | man pag|e for "w|
|00002360| 68 69 6c 65 22 20 6f 72 | 20 22 75 6e 74 69 6c 22 |hile" or| "until"|
|00002370| 20 66 6f 72 20 6d 6f 72 | 65 20 69 6e 66 6f 72 6d | for mor|e inform|
|00002380| 61 74 69 6f 6e 2e 0d 00 | 00 00 cc 0d 4e 41 4d 45 |ation...|....NAME|
|00002390| 0d 0d 64 6f 6e 65 20 2d | 20 63 6f 6e 64 69 74 69 |..done -| conditi|
|000023a0| 6f 6e 61 6c 20 65 78 65 | 63 75 74 69 6f 6e 0d 0d |onal exe|cution..|
|000023b0| 53 59 4e 4f 50 53 49 53 | 0d 0d 77 68 69 6c 65 20 |SYNOPSIS|..while |
|000023c0| 3c 63 6f 6d 6d 61 6e 64 | 73 31 3e 20 64 6f 20 3c |<command|s1> do <|
|000023d0| 63 6f 6d 6d 61 6e 64 73 | 32 3e 20 64 6f 6e 65 0d |commands|2> done.|
|000023e0| 0d 6f 72 0d 0d 75 6e 74 | 69 6c 20 3c 63 6f 6d 6d |.or..unt|il <comm|
|000023f0| 61 6e 64 73 31 3e 20 64 | 6f 20 3c 63 6f 6d 6d 61 |ands1> d|o <comma|
|00002400| 6e 64 73 32 3e 20 64 6f | 6e 65 0d 0d 44 45 53 43 |nds2> do|ne..DESC|
|00002410| 52 49 50 54 49 4f 4e 0d | 0d 53 65 65 20 74 68 65 |RIPTION.|.See the|
|00002420| 20 6d 61 6e 20 70 61 67 | 65 20 66 6f 72 20 22 77 | man pag|e for "w|
|00002430| 68 69 6c 65 22 20 6f 72 | 20 22 75 6e 74 69 6c 22 |hile" or| "until"|
|00002440| 20 66 6f 72 20 6d 6f 72 | 65 20 69 6e 66 6f 72 6d | for mor|e inform|
|00002450| 61 74 69 6f 6e 2e 0d 00 | 00 01 e0 0d 4e 41 4d 45 |ation...|....NAME|
|00002460| 0d 0d 65 78 69 74 20 2d | 20 65 78 69 74 20 73 63 |..exit -| exit sc|
|00002470| 72 69 70 74 0d 0d 53 59 | 4e 4f 50 53 49 53 0d 0d |ript..SY|NOPSIS..|
|00002480| 65 78 69 74 20 5b 72 65 | 74 75 72 6e 20 63 6f 64 |exit [re|turn cod|
|00002490| 65 5d 0d 0d 44 45 53 43 | 52 49 50 54 49 4f 4e 0d |e]..DESC|RIPTION.|
|000024a0| 0d 54 68 65 20 22 65 78 | 69 74 22 20 63 6f 6d 6d |.The "ex|it" comm|
|000024b0| 61 6e 64 20 63 61 75 73 | 65 73 20 61 6e 20 69 6d |and caus|es an im|
|000024c0| 6d 65 64 69 61 74 65 20 | 72 65 74 75 72 6e 20 66 |mediate |return f|
|000024d0| 72 6f 6d 20 61 20 73 63 | 72 69 70 74 2e 20 20 41 |rom a sc|ript. A|
|000024e0| 6e 20 69 6e 74 65 67 65 | 72 20 72 65 74 75 72 6e |n intege|r return|
|000024f0| 20 63 6f 64 65 20 6d 61 | 79 20 62 65 20 73 65 74 | code ma|y be set|
|00002500| 20 61 6e 64 20 6c 61 74 | 65 72 20 61 63 63 65 73 | and lat|er acces|
|00002510| 73 65 64 20 75 73 69 6e | 67 20 74 68 65 20 24 3f |sed usin|g the $?|
|00002520| 20 70 73 65 75 64 6f 20 | 76 61 72 69 61 62 6c 65 | pseudo |variable|
|00002530| 2e 20 20 57 68 65 6e 20 | 6e 6f 20 70 61 72 61 6d |. When |no param|
|00002540| 65 74 65 72 20 69 73 20 | 67 69 76 65 6e 2c 20 61 |eter is |given, a|
|00002550| 20 63 6f 64 65 20 6f 66 | 20 30 20 69 73 20 72 65 | code of| 0 is re|
|00002560| 74 75 72 6e 65 64 2e 0d | 0d 57 68 65 6e 20 74 68 |turned..|.When th|
|00002570| 65 20 22 65 78 69 74 22 | 20 63 6f 6d 6d 61 6e 64 |e "exit"| command|
|00002580| 20 69 73 20 75 73 65 64 | 20 6f 6e 20 74 68 65 20 | is used| on the |
|00002590| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 2c 20 69 74 |command |line, it|
|000025a0| 20 63 61 6e 63 65 6c 73 | 20 61 6c 6c 20 70 72 6f | cancels| all pro|
|000025b0| 63 65 73 73 69 6e 67 20 | 61 6e 64 20 73 65 74 73 |cessing |and sets|
|000025c0| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 72 | the spe|cified r|
|000025d0| 65 74 75 72 6e 20 63 6f | 64 65 2e 0d 0d 45 58 41 |eturn co|de...EXA|
|000025e0| 4d 50 4c 45 53 0d 0d 23 | 0d 23 20 74 65 73 74 20 |MPLES..#|.# test |
|000025f0| 75 73 61 67 65 0d 23 0d | 69 66 20 2e 6e 65 2e 20 |usage.#.|if .ne. |
|00002600| 24 23 20 32 20 74 68 65 | 6e 0d 20 20 20 20 65 63 |$# 2 the|n. ec|
|00002610| 68 6f 20 22 55 73 61 67 | 65 3a 20 63 6d 64 20 66 |ho "Usag|e: cmd f|
|00002620| 69 6c 65 6e 61 6d 65 22 | 0d 20 20 20 20 65 78 69 |ilename"|. exi|
|00002630| 74 20 2d 31 0d 65 6e 64 | 69 66 0d 00 00 02 55 0d |t -1.end|if....U.|
|00002640| 4e 41 4d 45 0d 0d 65 78 | 70 6f 72 74 20 2d 20 65 |NAME..ex|port - e|
|00002650| 78 70 6f 72 74 20 61 20 | 73 68 65 6c 6c 20 76 61 |xport a |shell va|
|00002660| 72 69 61 62 6c 65 20 66 | 72 6f 6d 20 61 20 73 63 |riable f|rom a sc|
|00002670| 72 69 70 74 0d 0d 53 59 | 4e 4f 50 53 49 53 0d 0d |ript..SY|NOPSIS..|
|00002680| 65 78 70 6f 72 74 20 76 | 61 72 69 61 62 6c 65 5f |export v|ariable_|
|00002690| 6e 61 6d 65 0d 0d 44 45 | 53 43 52 49 50 54 49 4f |name..DE|SCRIPTIO|
|000026a0| 4e 0d 0d 54 68 65 20 22 | 65 78 70 6f 72 74 22 20 |N..The "|export" |
|000026b0| 63 6f 6d 6d 61 6e 64 20 | 63 6f 70 69 65 73 20 61 |command |copies a|
|000026c0| 20 73 68 65 6c 6c 20 76 | 61 72 69 61 62 6c 65 20 | shell v|ariable |
|000026d0| 66 72 6f 6d 20 74 68 65 | 20 63 75 72 72 65 6e 74 |from the| current|
|000026e0| 20 73 63 72 69 70 74 20 | 65 6e 76 69 72 6f 6e 6d | script |environm|
|000026f0| 65 6e 74 20 74 6f 20 74 | 68 61 74 20 6f 66 20 74 |ent to t|hat of t|
|00002700| 68 65 20 70 61 72 65 6e | 74 2e 20 20 54 68 65 20 |he paren|t. The |
|00002710| 22 65 78 70 6f 72 74 22 | 20 6f 70 65 72 61 74 69 |"export"| operati|
|00002720| 6f 6e 20 63 6f 70 69 65 | 73 20 76 61 72 69 61 62 |on copie|s variab|
|00002730| 6c 65 73 20 75 70 20 61 | 20 73 69 6e 67 6c 65 20 |les up a| single |
|00002740| 6c 65 76 65 6c 2e 20 20 | 54 6f 20 65 78 70 6f 72 |level. |To expor|
|00002750| 74 20 76 61 72 69 61 62 | 6c 65 73 20 66 72 6f 6d |t variab|les from|
|00002760| 20 6e 65 73 74 65 64 20 | 73 63 72 69 70 74 73 2c | nested |scripts,|
|00002770| 20 61 20 73 65 72 69 65 | 73 20 6f 66 20 22 65 78 | a serie|s of "ex|
|00002780| 70 6f 72 74 22 20 63 6f | 6d 6d 61 6e 64 73 20 77 |port" co|mmands w|
|00002790| 6f 75 6c 64 20 62 65 20 | 72 65 71 75 69 72 65 64 |ould be |required|
|000027a0| 2e 0d 0d 54 68 65 20 22 | 65 78 70 6f 72 74 22 20 |...The "|export" |
|000027b0| 63 6f 6d 6d 61 6e 64 20 | 73 68 6f 75 6c 64 20 6f |command |should o|
|000027c0| 6e 6c 79 20 62 65 20 75 | 73 65 64 20 66 72 6f 6d |nly be u|sed from|
|000027d0| 20 77 69 74 68 69 6e 20 | 73 63 72 69 70 74 73 2c | within |scripts,|
|000027e0| 20 61 6e 64 20 66 61 69 | 6c 73 20 77 68 65 6e 20 | and fai|ls when |
|000027f0| 74 79 70 65 64 20 64 69 | 72 65 63 74 6c 79 20 6f |typed di|rectly o|
|00002800| 6e 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |n the co|mmand li|
|00002810| 6e 65 2e 0d 0d 45 58 41 | 4d 50 4c 45 53 0d 0d 23 |ne...EXA|MPLES..#|
|00002820| 0d 23 20 73 65 74 20 74 | 68 65 20 77 6f 72 6b 69 |.# set t|he worki|
|00002830| 6e 67 20 64 69 72 65 63 | 74 6f 72 79 20 61 6e 64 |ng direc|tory and|
|00002840| 20 65 78 70 6f 72 74 20 | 74 68 65 20 63 6f 72 72 | export |the corr|
|00002850| 65 73 70 6f 6e 64 69 6e | 67 20 76 61 72 69 61 62 |espondin|g variab|
|00002860| 6c 65 0d 23 0d 63 64 20 | 22 6d 79 20 64 69 73 6b |le.#.cd |"my disk|
|00002870| 3a 6d 79 20 66 61 76 6f | 72 69 74 65 20 74 6f 6f |:my favo|rite too|
|00002880| 6c 73 3a 74 6f 6f 6c 73 | 22 0d 65 78 70 6f 72 74 |ls:tools|".export|
|00002890| 20 50 57 44 00 00 01 00 | 00 00 28 42 00 00 27 42 | PWD....|..(B..'B|
|000028a0| 00 00 02 8b 00 5a ca 90 | 0a a8 00 00 00 1c 01 36 |.....Z..|.......6|
|000028b0| 00 01 54 45 58 54 00 13 | 00 12 76 65 72 73 00 01 |..TEXT..|..vers..|
|000028c0| 01 02 3e 80 01 33 00 00 | 01 86 00 00 00 00 3e 8a |..>..3..|......>.|
|000028d0| 01 43 00 00 00 00 00 00 | 00 00 3e 94 00 00 00 00 |.C......|..>.....|
|000028e0| 03 8d 00 00 00 00 3e 9e | 00 10 00 00 05 c5 00 00 |......>.|........|
|000028f0| 00 00 3e a8 00 22 00 00 | 07 2d 00 00 00 00 3e d0 |..>.."..|.-....>.|
|00002900| 00 62 00 00 09 01 00 00 | 00 00 3e da 00 76 00 00 |.b......|..>..v..|
|00002910| 0a dd 00 00 00 00 3e c6 | 00 51 00 00 0d 25 00 00 |......>.|.Q...%..|
|00002920| 00 00 3e bc 00 41 00 00 | 10 0a 00 00 00 00 3e b2 |..>..A..|......>.|
|00002930| 00 32 00 00 11 05 00 00 | 00 00 3f 02 00 bb 00 00 |.2......|..?.....|
|00002940| 13 39 00 00 00 00 3e f8 | 00 ac 00 00 15 8b 00 00 |.9....>.|........|
|00002950| 00 00 3f 0c 00 cc 00 00 | 17 da 00 00 00 00 3f 16 |..?.....|......?.|
|00002960| 00 dd 00 00 1a 2c 00 00 | 00 00 3f 20 00 ef 00 00 |.....,..|..? ....|
|00002970| 1c 7f 00 00 00 00 3f 2a | 01 01 00 00 1e ef 00 00 |......?*|........|
|00002980| 00 00 3f 34 01 13 00 00 | 21 67 00 00 00 00 3f 3e |..?4....|!g....?>|
|00002990| 01 22 00 00 22 35 00 00 | 00 00 3e e4 00 88 00 00 |.".."5..|..>.....|
|000029a0| 23 05 00 00 00 00 3e ee | 00 99 00 00 24 e9 00 00 |#.....>.|....$...|
|000029b0| 00 00 00 01 ff ff 00 00 | 01 20 00 5a cb 80 00 02 |........|. .Z....|
|000029c0| ff ff 00 00 01 5b 00 5a | ac 90 0f 6d 61 6e 20 73 |.....[.Z|...man s|
|000029d0| 65 74 20 67 65 6e 65 72 | 61 6c 11 6d 61 6e 20 75 |et gener|al.man u|
|000029e0| 6e 73 65 74 20 67 65 6e | 65 72 61 6c 0f 6d 61 6e |nset gen|eral.man|
|000029f0| 20 65 6e 76 20 67 65 6e | 65 72 61 6c 0e 6d 61 6e | env gen|eral.man|
|00002a00| 20 63 64 20 67 65 6e 65 | 72 61 6c 0f 6d 61 6e 20 | cd gene|ral.man |
|00002a10| 70 77 64 20 67 65 6e 65 | 72 61 6c 10 6d 61 6e 20 |pwd gene|ral.man |
|00002a20| 70 61 74 68 20 67 65 6e | 65 72 61 6c 13 6d 61 6e |path gen|eral.man|
|00002a30| 20 70 61 74 68 63 68 6b | 20 67 65 6e 65 72 61 6c | pathchk| general|
|00002a40| 11 6d 61 6e 20 77 68 69 | 63 68 20 67 65 6e 65 72 |.man whi|ch gener|
|00002a50| 61 6c 10 6d 61 6e 20 65 | 78 69 74 20 67 65 6e 65 |al.man e|xit gene|
|00002a60| 72 61 6c 12 6d 61 6e 20 | 65 78 70 6f 72 74 20 67 |ral.man |export g|
|00002a70| 65 6e 65 72 61 6c 0e 6d | 61 6e 20 69 66 20 67 65 |eneral.m|an if ge|
|00002a80| 6e 65 72 61 6c 10 6d 61 | 6e 20 74 68 65 6e 20 67 |neral.ma|n then g|
|00002a90| 65 6e 65 72 61 6c 10 6d | 61 6e 20 65 6c 73 65 20 |eneral.m|an else |
|00002aa0| 67 65 6e 65 72 61 6c 11 | 6d 61 6e 20 65 6e 64 69 |general.|man endi|
|00002ab0| 66 20 67 65 6e 65 72 61 | 6c 11 6d 61 6e 20 77 68 |f genera|l.man wh|
|00002ac0| 69 6c 65 20 67 65 6e 65 | 72 61 6c 11 6d 61 6e 20 |ile gene|ral.man |
|00002ad0| 75 6e 74 69 6c 20 67 65 | 6e 65 72 61 6c 0e 6d 61 |until ge|neral.ma|
|00002ae0| 6e 20 64 6f 20 67 65 6e | 65 72 61 6c 10 6d 61 6e |n do gen|eral.man|
|00002af0| 20 64 6f 6e 65 20 67 65 | 6e 65 72 61 6c 0f 6d 61 | done ge|neral.ma|
|00002b00| 6e 20 6d 61 6e 20 67 65 | 6e 65 72 61 6c 11 6d 61 |n man ge|neral.ma|
|00002b10| 6e 20 6d 61 6e 20 72 65 | 73 6f 75 72 63 65 73 |n man re|sources |
+--------+-------------------------+-------------------------+--------+--------+