home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / a_utils / perl / mac-perl / mcprl401.bin / Perl_appl / t / op / stat.t < prev    next >
MacBinary  |  1992-01-06  |  6.1 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert E-Tracker Chiptune (music/eTracker) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Simis (archive/simis) ext Unsupported
1% dexvert TADS (other/tads) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Jan 5 21:50:07 1992, modified Sun Jan 5 21:50:07 1992, creator 'MPS ', type ASCII, 5540 bytes "stat.t" default (weak)
99% file a ./perl script executable (binary data), at 0x1624 428 bytes resource default (weak)
98% file a ./perl script executable (binary data) default (weak)
97% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-4K) default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 73 74 61 74 2e 74 | 00 00 00 00 00 00 00 00 |..stat.t|........|
|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 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 15 a4 00 | 00 01 ac a5 8d 74 5f a5 |........|.....t_.|
|00000060| 8d 74 5f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.t_.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 0b 0d 00 00 |........|........|
|00000080| 23 21 2e 2f 70 65 72 6c | 0d 0d 23 20 24 52 43 53 |#!./perl|..# $RCS|
|00000090| 66 69 6c 65 3a 20 73 74 | 61 74 2e 74 2c 76 20 24 |file: st|at.t,v $|
|000000a0| 24 52 65 76 69 73 69 6f | 6e 3a 20 34 2e 30 2e 31 |$Revisio|n: 4.0.1|
|000000b0| 2e 33 20 24 24 44 61 74 | 65 3a 20 39 31 2f 31 31 |.3 $$Dat|e: 91/11|
|000000c0| 2f 31 31 20 31 36 3a 34 | 34 3a 34 39 20 24 0d 0d |/11 16:4|4:49 $..|
|000000d0| 70 72 69 6e 74 20 22 31 | 2e 2e 35 36 5c 6e 22 3b |print "1|..56\n";|
|000000e0| 0d 0d 63 68 6f 70 28 24 | 63 77 64 20 3d 20 60 64 |..chop($|cwd = `d|
|000000f0| 69 72 65 63 74 6f 72 79 | 60 29 3b 0d 0d 24 44 45 |irectory|`);..$DE|
|00000100| 56 20 3d 20 22 22 3b 0d | 0d 75 6e 6c 69 6e 6b 20 |V = "";.|.unlink |
|00000110| 22 4f 70 2e 73 74 61 74 | 2e 74 6d 70 22 3b 0d 6f |"Op.stat|.tmp";.o|
|00000120| 70 65 6e 28 46 4f 4f 2c | 20 22 3e 4f 70 2e 73 74 |pen(FOO,| ">Op.st|
|00000130| 61 74 2e 74 6d 70 22 29 | 3b 0d 0d 28 24 64 65 76 |at.tmp")|;..($dev|
|00000140| 2c 24 69 6e 6f 2c 24 6d | 6f 64 65 2c 24 6e 6c 69 |,$ino,$m|ode,$nli|
|00000150| 6e 6b 2c 24 75 69 64 2c | 24 67 69 64 2c 24 72 64 |nk,$uid,|$gid,$rd|
|00000160| 65 76 2c 24 73 69 7a 65 | 2c 24 61 74 69 6d 65 2c |ev,$size|,$atime,|
|00000170| 24 6d 74 69 6d 65 2c 24 | 63 74 69 6d 65 2c 0d 20 |$mtime,$|ctime,. |
|00000180| 20 20 20 24 62 6c 6b 73 | 69 7a 65 2c 24 62 6c 6f | $blks|ize,$blo|
|00000190| 63 6b 73 29 20 3d 20 73 | 74 61 74 28 46 4f 4f 29 |cks) = s|tat(FOO)|
|000001a0| 3b 0d 69 66 20 28 24 6e | 6c 69 6e 6b 20 3d 3d 20 |;.if ($n|link == |
|000001b0| 31 29 20 7b 70 72 69 6e | 74 20 22 6f 6b 20 31 5c |1) {prin|t "ok 1\|
|000001c0| 6e 22 3b 7d 20 65 6c 73 | 65 20 7b 70 72 69 6e 74 |n";} els|e {print|
|000001d0| 20 22 6e 6f 74 20 6f 6b | 20 31 5c 6e 22 3b 7d 0d | "not ok| 1\n";}.|
|000001e0| 69 66 20 28 24 6d 74 69 | 6d 65 20 26 26 20 24 6d |if ($mti|me && $m|
|000001f0| 74 69 6d 65 20 3d 3d 20 | 24 63 74 69 6d 65 29 20 |time == |$ctime) |
|00000200| 7b 70 72 69 6e 74 20 22 | 6f 6b 20 32 5c 6e 22 3b |{print "|ok 2\n";|
|00000210| 7d 20 65 6c 73 65 20 7b | 70 72 69 6e 74 20 22 6e |} else {|print "n|
|00000220| 6f 74 20 6f 6b 20 32 5c | 6e 22 3b 7d 0d 0d 70 72 |ot ok 2\|n";}..pr|
|00000230| 69 6e 74 20 46 4f 4f 20 | 22 4e 6f 77 20 69 73 20 |int FOO |"Now is |
|00000240| 74 68 65 20 74 69 6d 65 | 20 66 6f 72 20 61 6c 6c |the time| for all|
|00000250| 20 67 6f 6f 64 20 6d 65 | 6e 20 74 6f 20 63 6f 6d | good me|n to com|
|00000260| 65 20 74 6f 2e 5c 6e 22 | 3b 0d 63 6c 6f 73 65 28 |e to.\n"|;.close(|
|00000270| 46 4f 4f 29 3b 0d 0d 73 | 6c 65 65 70 20 32 3b 0d |FOO);..s|leep 2;.|
|00000280| 0d 60 64 65 6c 65 74 65 | 20 2d 79 20 4f 70 2e 73 |.`delete| -y Op.s|
|00000290| 74 61 74 2e 74 6d 70 32 | 3b 20 6c 6e 20 4f 70 2e |tat.tmp2|; ln Op.|
|000002a0| 73 74 61 74 2e 74 6d 70 | 20 4f 70 2e 73 74 61 74 |stat.tmp| Op.stat|
|000002b0| 2e 74 6d 70 32 3b 20 63 | 68 6d 6f 64 20 36 34 34 |.tmp2; c|hmod 644|
|000002c0| 20 4f 70 2e 73 74 61 74 | 2e 74 6d 70 60 3b 0d 0d | Op.stat|.tmp`;..|
|000002d0| 28 24 64 65 76 2c 24 69 | 6e 6f 2c 24 6d 6f 64 65 |($dev,$i|no,$mode|
|000002e0| 2c 24 6e 6c 69 6e 6b 2c | 24 75 69 64 2c 24 67 69 |,$nlink,|$uid,$gi|
|000002f0| 64 2c 24 72 64 65 76 2c | 24 73 69 7a 65 2c 24 61 |d,$rdev,|$size,$a|
|00000300| 74 69 6d 65 2c 24 6d 74 | 69 6d 65 2c 24 63 74 69 |time,$mt|ime,$cti|
|00000310| 6d 65 2c 0d 20 20 20 20 | 24 62 6c 6b 73 69 7a 65 |me,. |$blksize|
|00000320| 2c 24 62 6c 6f 63 6b 73 | 29 20 3d 20 73 74 61 74 |,$blocks|) = stat|
|00000330| 28 27 4f 70 2e 73 74 61 | 74 2e 74 6d 70 27 29 3b |('Op.sta|t.tmp');|
|00000340| 0d 0d 69 66 20 28 24 6e | 6c 69 6e 6b 20 3d 3d 20 |..if ($n|link == |
|00000350| 32 29 20 7b 70 72 69 6e | 74 20 22 6f 6b 20 33 5c |2) {prin|t "ok 3\|
|00000360| 6e 22 3b 7d 20 65 6c 73 | 65 20 7b 70 72 69 6e 74 |n";} els|e {print|
|00000370| 20 22 6e 6f 74 20 6f 6b | 20 33 5c 6e 22 3b 7d 0d | "not ok| 3\n";}.|
|00000380| 69 66 20 28 28 24 6d 74 | 69 6d 65 20 26 26 20 24 |if (($mt|ime && $|
|00000390| 6d 74 69 6d 65 20 21 3d | 20 24 63 74 69 6d 65 29 |mtime !=| $ctime)|
|000003a0| 20 7c 7c 20 24 63 77 64 | 20 3d 7e 20 6d 23 2f 61 | || $cwd| =~ m#/a|
|000003b0| 66 73 2f 23 29 20 7b 0d | 20 20 20 20 70 72 69 6e |fs/#) {.| prin|
|000003c0| 74 20 22 6f 6b 20 34 5c | 6e 22 3b 0d 7d 0d 65 6c |t "ok 4\|n";.}.el|
|000003d0| 73 65 20 7b 0d 20 20 20 | 20 70 72 69 6e 74 20 22 |se {. | print "|
|000003e0| 6e 6f 74 20 6f 6b 20 34 | 5c 6e 22 3b 0d 7d 0d 70 |not ok 4|\n";.}.p|
|000003f0| 72 69 6e 74 20 22 23 34 | 09 3a 24 6d 74 69 6d 65 |rint "#4|.:$mtime|
|00000400| 3a 20 21 3d 20 3a 24 63 | 74 69 6d 65 3a 5c 6e 22 |: != :$c|time:\n"|
|00000410| 3b 0d 0d 60 64 65 6c 65 | 74 65 20 2d 79 20 4f 70 |;..`dele|te -y Op|
|00000420| 2e 73 74 61 74 2e 74 6d | 70 60 3b 0d 60 45 63 68 |.stat.tm|p`;.`Ech|
|00000430| 6f 20 2d 6e 20 3e 20 4f | 70 2e 73 74 61 74 2e 74 |o -n > O|p.stat.t|
|00000440| 6d 70 60 3b 0d 0d 69 66 | 20 28 2d 7a 20 27 4f 70 |mp`;..if| (-z 'Op|
|00000450| 2e 73 74 61 74 2e 74 6d | 70 27 29 20 7b 70 72 69 |.stat.tm|p') {pri|
|00000460| 6e 74 20 22 6f 6b 20 35 | 5c 6e 22 3b 7d 20 65 6c |nt "ok 5|\n";} el|
|00000470| 73 65 20 7b 70 72 69 6e | 74 20 22 6e 6f 74 20 6f |se {prin|t "not o|
|00000480| 6b 20 35 5c 6e 22 3b 7d | 0d 69 66 20 28 21 20 2d |k 5\n";}|.if (! -|
|00000490| 73 20 27 4f 70 2e 73 74 | 61 74 2e 74 6d 70 27 29 |s 'Op.st|at.tmp')|
|000004a0| 20 7b 70 72 69 6e 74 20 | 22 6f 6b 20 36 5c 6e 22 | {print |"ok 6\n"|
|000004b0| 3b 7d 20 65 6c 73 65 20 | 7b 70 72 69 6e 74 20 22 |;} else |{print "|
|000004c0| 6e 6f 74 20 6f 6b 20 36 | 5c 6e 22 3b 7d 0d 0d 60 |not ok 6|\n";}..`|
|000004d0| 65 63 68 6f 20 68 69 20 | 3e 4f 70 2e 73 74 61 74 |echo hi |>Op.stat|
|000004e0| 2e 74 6d 70 60 3b 0d 69 | 66 20 28 21 20 2d 7a 20 |.tmp`;.i|f (! -z |
|000004f0| 27 4f 70 2e 73 74 61 74 | 2e 74 6d 70 27 29 20 7b |'Op.stat|.tmp') {|
|00000500| 70 72 69 6e 74 20 22 6f | 6b 20 37 5c 6e 22 3b 7d |print "o|k 7\n";}|
|00000510| 20 65 6c 73 65 20 7b 70 | 72 69 6e 74 20 22 6e 6f | else {p|rint "no|
|00000520| 74 20 6f 6b 20 37 5c 6e | 22 3b 7d 0d 69 66 20 28 |t ok 7\n|";}.if (|
|00000530| 2d 73 20 27 4f 70 2e 73 | 74 61 74 2e 74 6d 70 27 |-s 'Op.s|tat.tmp'|
|00000540| 29 20 7b 70 72 69 6e 74 | 20 22 6f 6b 20 38 5c 6e |) {print| "ok 8\n|
|00000550| 22 3b 7d 20 65 6c 73 65 | 20 7b 70 72 69 6e 74 20 |";} else| {print |
|00000560| 22 6e 6f 74 20 6f 6b 20 | 38 5c 6e 22 3b 7d 0d 0d |"not ok |8\n";}..|
|00000570| 75 6e 6c 69 6e 6b 20 27 | 4f 70 2e 73 74 61 74 2e |unlink '|Op.stat.|
|00000580| 74 6d 70 27 3b 0d 24 6f | 6c 64 75 69 64 20 3d 20 |tmp';.$o|lduid = |
|00000590| 24 3e 3b 09 09 23 20 63 | 61 6e 27 74 20 74 65 73 |$>;..# c|an't tes|
|000005a0| 74 20 2d 72 20 69 66 20 | 75 69 64 20 3d 3d 20 30 |t -r if |uid == 0|
|000005b0| 0d 60 65 63 68 6f 20 68 | 69 20 3e 4f 70 2e 73 74 |.`echo h|i >Op.st|
|000005c0| 61 74 2e 74 6d 70 60 3b | 0d 63 68 6d 6f 64 20 30 |at.tmp`;|.chmod 0|
|000005d0| 2c 27 4f 70 2e 73 74 61 | 74 2e 74 6d 70 27 3b 0d |,'Op.sta|t.tmp';.|
|000005e0| 65 76 61 6c 20 27 24 3e | 20 3d 20 31 3b 27 3b 09 |eval '$>| = 1;';.|
|000005f0| 09 23 20 73 6f 20 73 77 | 69 74 63 68 20 75 69 64 |.# so sw|itch uid|
|00000600| 20 28 6d 61 79 20 6e 6f | 74 20 62 65 20 69 6d 70 | (may no|t be imp|
|00000610| 6c 65 6d 65 6e 74 65 64 | 29 0d 69 66 20 28 21 24 |lemented|).if (!$|
|00000620| 3e 20 7c 7c 20 21 20 2d | 72 20 27 4f 70 2e 73 74 |> || ! -|r 'Op.st|
|00000630| 61 74 2e 74 6d 70 27 29 | 20 7b 70 72 69 6e 74 20 |at.tmp')| {print |
|00000640| 22 6f 6b 20 39 5c 6e 22 | 3b 7d 20 65 6c 73 65 20 |"ok 9\n"|;} else |
|00000650| 7b 70 72 69 6e 74 20 22 | 6e 6f 74 20 6f 6b 20 39 |{print "|not ok 9|
|00000660| 5c 6e 22 3b 7d 0d 69 66 | 20 28 21 24 3e 20 7c 7c |\n";}.if| (!$> |||
|00000670| 20 21 20 2d 77 20 27 4f | 70 2e 73 74 61 74 2e 74 | ! -w 'O|p.stat.t|
|00000680| 6d 70 27 29 20 7b 70 72 | 69 6e 74 20 22 6f 6b 20 |mp') {pr|int "ok |
|00000690| 31 30 5c 6e 22 3b 7d 20 | 65 6c 73 65 20 7b 70 72 |10\n";} |else {pr|
|000006a0| 69 6e 74 20 22 6e 6f 74 | 20 6f 6b 20 31 30 5c 6e |int "not| ok 10\n|
|000006b0| 22 3b 7d 0d 65 76 61 6c | 20 27 24 3e 20 3d 20 24 |";}.eval| '$> = $|
|000006c0| 6f 6c 64 75 69 64 3b 27 | 3b 09 09 23 20 73 77 69 |olduid;'|;..# swi|
|000006d0| 74 63 68 20 75 69 64 20 | 62 61 63 6b 20 28 6d 61 |tch uid |back (ma|
|000006e0| 79 20 6e 6f 74 20 62 65 | 20 69 6d 70 6c 65 6d 65 |y not be| impleme|
|000006f0| 6e 74 65 64 29 0d 70 72 | 69 6e 74 20 22 23 20 6f |nted).pr|int "# o|
|00000700| 6c 64 75 69 64 3d 24 6f | 6c 64 75 69 64 2c 20 6e |lduid=$o|lduid, n|
|00000710| 65 77 75 69 64 3d 24 3e | 5c 6e 22 20 75 6e 6c 65 |ewuid=$>|\n" unle|
|00000720| 73 73 20 28 24 3e 20 3d | 3d 20 24 6f 6c 64 75 69 |ss ($> =|= $oldui|
|00000730| 64 29 3b 0d 69 66 20 28 | 21 20 2d 78 20 27 4f 70 |d);.if (|! -x 'Op|
|00000740| 2e 73 74 61 74 2e 74 6d | 70 27 29 20 7b 70 72 69 |.stat.tm|p') {pri|
|00000750| 6e 74 20 22 6f 6b 20 31 | 31 5c 6e 22 3b 7d 20 65 |nt "ok 1|1\n";} e|
|00000760| 6c 73 65 20 7b 70 72 69 | 6e 74 20 22 6e 6f 74 20 |lse {pri|nt "not |
|00000770| 6f 6b 20 31 31 5c 6e 22 | 3b 7d 0d 0d 66 6f 72 65 |ok 11\n"|;}..fore|
|00000780| 61 63 68 20 28 28 31 32 | 2c 31 33 2c 31 34 2c 31 |ach ((12|,13,14,1|
|00000790| 35 2c 31 36 2c 31 37 29 | 29 20 7b 0d 20 20 20 20 |5,16,17)|) {. |
|000007a0| 70 72 69 6e 74 20 22 6f | 6b 20 24 5f 5c 6e 22 3b |print "o|k $_\n";|
|000007b0| 09 09 23 64 65 6c 65 74 | 65 64 20 74 65 73 74 73 |..#delet|ed tests|
|000007c0| 0d 7d 0d 0d 63 68 6d 6f | 64 20 30 37 30 30 2c 27 |.}..chmo|d 0700,'|
|000007d0| 4f 70 2e 73 74 61 74 2e | 74 6d 70 27 3b 0d 69 66 |Op.stat.|tmp';.if|
|000007e0| 20 28 2d 72 20 27 4f 70 | 2e 73 74 61 74 2e 74 6d | (-r 'Op|.stat.tm|
|000007f0| 70 27 29 20 7b 70 72 69 | 6e 74 20 22 6f 6b 20 31 |p') {pri|nt "ok 1|
|00000800| 38 5c 6e 22 3b 7d 20 65 | 6c 73 65 20 7b 70 72 69 |8\n";} e|lse {pri|
|00000810| 6e 74 20 22 6e 6f 74 20 | 6f 6b 20 31 38 5c 6e 22 |nt "not |ok 18\n"|
|00000820| 3b 7d 0d 69 66 20 28 2d | 77 20 27 4f 70 2e 73 74 |;}.if (-|w 'Op.st|
|00000830| 61 74 2e 74 6d 70 27 29 | 20 7b 70 72 69 6e 74 20 |at.tmp')| {print |
|00000840| 22 6f 6b 20 31 39 5c 6e | 22 3b 7d 20 65 6c 73 65 |"ok 19\n|";} else|
|00000850| 20 7b 70 72 69 6e 74 20 | 22 6e 6f 74 20 6f 6b 20 | {print |"not ok |
|00000860| 31 39 5c 6e 22 3b 7d 0d | 69 66 20 28 2d 78 20 27 |19\n";}.|if (-x '|
|00000870| 4f 70 2e 73 74 61 74 2e | 74 6d 70 27 29 20 7b 70 |Op.stat.|tmp') {p|
|00000880| 72 69 6e 74 20 22 6f 6b | 20 32 30 5c 6e 22 3b 7d |rint "ok| 20\n";}|
|00000890| 20 65 6c 73 65 20 7b 70 | 72 69 6e 74 20 22 6e 6f | else {p|rint "no|
|000008a0| 74 20 6f 6b 20 32 30 5c | 6e 22 3b 7d 0d 0d 69 66 |t ok 20\|n";}..if|
|000008b0| 20 28 2d 66 20 27 4f 70 | 2e 73 74 61 74 2e 74 6d | (-f 'Op|.stat.tm|
|000008c0| 70 27 29 20 7b 70 72 69 | 6e 74 20 22 6f 6b 20 32 |p') {pri|nt "ok 2|
|000008d0| 31 5c 6e 22 3b 7d 20 65 | 6c 73 65 20 7b 70 72 69 |1\n";} e|lse {pri|
|000008e0| 6e 74 20 22 6e 6f 74 20 | 6f 6b 20 32 31 5c 6e 22 |nt "not |ok 21\n"|
|000008f0| 3b 7d 0d 69 66 20 28 21 | 20 2d 64 20 27 4f 70 2e |;}.if (!| -d 'Op.|
|00000900| 73 74 61 74 2e 74 6d 70 | 27 29 20 7b 70 72 69 6e |stat.tmp|') {prin|
|00000910| 74 20 22 6f 6b 20 32 32 | 5c 6e 22 3b 7d 20 65 6c |t "ok 22|\n";} el|
|00000920| 73 65 20 7b 70 72 69 6e | 74 20 22 6e 6f 74 20 6f |se {prin|t "not o|
|00000930| 6b 20 32 32 5c 6e 22 3b | 7d 0d 0d 69 66 20 28 2d |k 22\n";|}..if (-|
|00000940| 64 20 27 3a 27 29 20 7b | 70 72 69 6e 74 20 22 6f |d ':') {|print "o|
|00000950| 6b 20 32 33 5c 6e 22 3b | 7d 20 65 6c 73 65 20 7b |k 23\n";|} else {|
|00000960| 70 72 69 6e 74 20 22 6e | 6f 74 20 6f 6b 20 32 33 |print "n|ot ok 23|
|00000970| 5c 6e 22 3b 7d 0d 69 66 | 20 28 21 20 2d 66 20 27 |\n";}.if| (! -f '|
|00000980| 3a 27 29 20 7b 70 72 69 | 6e 74 20 22 6f 6b 20 32 |:') {pri|nt "ok 2|
|00000990| 34 5c 6e 22 3b 7d 20 65 | 6c 73 65 20 7b 70 72 69 |4\n";} e|lse {pri|
|000009a0| 6e 74 20 22 6e 6f 74 20 | 6f 6b 20 32 34 5c 6e 22 |nt "not |ok 24\n"|
|000009b0| 3b 7d 0d 0d 69 66 20 28 | 60 66 69 6c 65 73 20 2d |;}..if (|`files -|
|000009c0| 6c 20 70 65 72 6c 60 20 | 3d 7e 20 2f 5e 6c 2e 2a |l perl` |=~ /^l.*|
|000009d0| 2d 3e 2f 29 20 7b 0d 20 | 20 20 20 69 66 20 28 2d |->/) {. | if (-|
|000009e0| 6c 20 27 70 65 72 6c 27 | 29 20 7b 70 72 69 6e 74 |l 'perl'|) {print|
|000009f0| 20 22 6f 6b 20 32 35 5c | 6e 22 3b 7d 20 65 6c 73 | "ok 25\|n";} els|
|00000a00| 65 20 7b 70 72 69 6e 74 | 20 22 6e 6f 74 20 6f 6b |e {print| "not ok|
|00000a10| 20 32 35 5c 6e 22 3b 7d | 0d 7d 0d 65 6c 73 65 20 | 25\n";}|.}.else |
|00000a20| 7b 0d 20 20 20 20 70 72 | 69 6e 74 20 22 6f 6b 20 |{. pr|int "ok |
|00000a30| 32 35 5c 6e 22 3b 0d 7d | 0d 0d 69 66 20 28 2d 6f |25\n";.}|..if (-o|
|00000a40| 20 27 4f 70 2e 73 74 61 | 74 2e 74 6d 70 27 29 20 | 'Op.sta|t.tmp') |
|00000a50| 7b 70 72 69 6e 74 20 22 | 6f 6b 20 32 36 5c 6e 22 |{print "|ok 26\n"|
|00000a60| 3b 7d 20 65 6c 73 65 20 | 7b 70 72 69 6e 74 20 22 |;} else |{print "|
|00000a70| 6e 6f 74 20 6f 6b 20 32 | 36 5c 6e 22 3b 7d 0d 0d |not ok 2|6\n";}..|
|00000a80| 69 66 20 28 2d 65 20 27 | 4f 70 2e 73 74 61 74 2e |if (-e '|Op.stat.|
|00000a90| 74 6d 70 27 29 20 7b 70 | 72 69 6e 74 20 22 6f 6b |tmp') {p|rint "ok|
|00000aa0| 20 32 37 5c 6e 22 3b 7d | 20 65 6c 73 65 20 7b 70 | 27\n";}| else {p|
|00000ab0| 72 69 6e 74 20 22 6e 6f | 74 20 6f 6b 20 32 37 5c |rint "no|t ok 27\|
|00000ac0| 6e 22 3b 7d 0d 60 64 65 | 6c 65 74 65 20 2d 79 20 |n";}.`de|lete -y |
|00000ad0| 4f 70 2e 73 74 61 74 2e | 74 6d 70 20 4f 70 2e 73 |Op.stat.|tmp Op.s|
|00000ae0| 74 61 74 2e 74 6d 70 32 | 60 3b 0d 69 66 20 28 21 |tat.tmp2|`;.if (!|
|00000af0| 20 2d 65 20 27 4f 70 2e | 73 74 61 74 2e 74 6d 70 | -e 'Op.|stat.tmp|
|00000b00| 27 29 20 7b 70 72 69 6e | 74 20 22 6f 6b 20 32 38 |') {prin|t "ok 28|
|00000b10| 5c 6e 22 3b 7d 20 65 6c | 73 65 20 7b 70 72 69 6e |\n";} el|se {prin|
|00000b20| 74 20 22 6e 6f 74 20 6f | 6b 20 32 38 5c 6e 22 3b |t "not o|k 28\n";|
|00000b30| 7d 0d 0d 69 66 20 28 24 | 44 45 56 20 21 7e 20 2f |}..if ($|DEV !~ /|
|00000b40| 5c 6e 63 2e 2a 20 28 5c | 53 2b 29 5c 6e 2f 29 0d |\nc.* (\|S+)\n/).|
|00000b50| 20 20 20 20 7b 70 72 69 | 6e 74 20 22 6f 6b 20 32 | {pri|nt "ok 2|
|00000b60| 39 5c 6e 22 3b 7d 0d 65 | 6c 73 69 66 20 28 2d 63 |9\n";}.e|lsif (-c|
|00000b70| 20 22 2f 64 65 76 2f 24 | 31 22 29 0d 20 20 20 20 | "/dev/$|1"). |
|00000b80| 7b 70 72 69 6e 74 20 22 | 6f 6b 20 32 39 5c 6e 22 |{print "|ok 29\n"|
|00000b90| 3b 7d 0d 65 6c 73 65 0d | 20 20 20 20 7b 70 72 69 |;}.else.| {pri|
|00000ba0| 6e 74 20 22 6e 6f 74 20 | 6f 6b 20 32 39 5c 6e 22 |nt "not |ok 29\n"|
|00000bb0| 3b 7d 0d 69 66 20 28 21 | 20 2d 63 20 27 2e 27 29 |;}.if (!| -c '.')|
|00000bc0| 20 7b 70 72 69 6e 74 20 | 22 6f 6b 20 33 30 5c 6e | {print |"ok 30\n|
|00000bd0| 22 3b 7d 20 65 6c 73 65 | 20 7b 70 72 69 6e 74 20 |";} else| {print |
|00000be0| 22 6e 6f 74 20 6f 6b 20 | 33 30 5c 6e 22 3b 7d 0d |"not ok |30\n";}.|
|00000bf0| 0d 69 66 20 28 24 44 45 | 56 20 21 7e 20 2f 5c 6e |.if ($DE|V !~ /\n|
|00000c00| 73 2e 2a 20 28 5c 53 2b | 29 5c 6e 2f 29 0d 20 20 |s.* (\S+|)\n/). |
|00000c10| 20 20 7b 70 72 69 6e 74 | 20 22 6f 6b 20 33 31 5c | {print| "ok 31\|
|00000c20| 6e 22 3b 7d 0d 65 6c 73 | 69 66 20 28 2d 53 20 22 |n";}.els|if (-S "|
|00000c30| 2f 64 65 76 2f 24 31 22 | 29 0d 20 20 20 20 7b 70 |/dev/$1"|). {p|
|00000c40| 72 69 6e 74 20 22 6f 6b | 20 33 31 5c 6e 22 3b 7d |rint "ok| 31\n";}|
|00000c50| 0d 65 6c 73 65 0d 20 20 | 20 20 7b 70 72 69 6e 74 |.else. | {print|
|00000c60| 20 22 6e 6f 74 20 6f 6b | 20 33 31 5c 6e 22 3b 7d | "not ok| 31\n";}|
|00000c70| 0d 69 66 20 28 21 20 2d | 53 20 27 2e 27 29 20 7b |.if (! -|S '.') {|
|00000c80| 70 72 69 6e 74 20 22 6f | 6b 20 33 32 5c 6e 22 3b |print "o|k 32\n";|
|00000c90| 7d 20 65 6c 73 65 20 7b | 70 72 69 6e 74 20 22 6e |} else {|print "n|
|00000ca0| 6f 74 20 6f 6b 20 33 32 | 5c 6e 22 3b 7d 0d 0d 69 |ot ok 32|\n";}..i|
|00000cb0| 66 20 28 24 44 45 56 20 | 21 7e 20 2f 5c 6e 62 2e |f ($DEV |!~ /\nb.|
|00000cc0| 2a 20 28 5c 53 2b 29 5c | 6e 2f 29 0d 20 20 20 20 |* (\S+)\|n/). |
|00000cd0| 7b 70 72 69 6e 74 20 22 | 6f 6b 20 33 33 5c 6e 22 |{print "|ok 33\n"|
|00000ce0| 3b 7d 0d 65 6c 73 69 66 | 20 28 2d 62 20 22 2f 64 |;}.elsif| (-b "/d|
|00000cf0| 65 76 2f 24 31 22 29 0d | 20 20 20 20 7b 70 72 69 |ev/$1").| {pri|
|00000d00| 6e 74 20 22 6f 6b 20 33 | 33 5c 6e 22 3b 7d 0d 65 |nt "ok 3|3\n";}.e|
|00000d10| 6c 73 65 0d 20 20 20 20 | 7b 70 72 69 6e 74 20 22 |lse. |{print "|
|00000d20| 6e 6f 74 20 6f 6b 20 33 | 33 5c 6e 22 3b 7d 0d 69 |not ok 3|3\n";}.i|
|00000d30| 66 20 28 21 20 2d 62 20 | 27 2e 27 29 20 7b 70 72 |f (! -b |'.') {pr|
|00000d40| 69 6e 74 20 22 6f 6b 20 | 33 34 5c 6e 22 3b 7d 20 |int "ok |34\n";} |
|00000d50| 65 6c 73 65 20 7b 70 72 | 69 6e 74 20 22 6e 6f 74 |else {pr|int "not|
|00000d60| 20 6f 6b 20 33 34 5c 6e | 22 3b 7d 0d 0d 24 63 6e | ok 34\n|";}..$cn|
|00000d70| 74 20 3d 20 24 75 69 64 | 20 3d 20 30 3b 0d 0d 64 |t = $uid| = 0;..d|
|00000d80| 69 65 20 22 43 61 6e 27 | 74 20 72 75 6e 20 6f 70 |ie "Can'|t run op|
|00000d90| 2f 73 74 61 74 2e 74 20 | 74 65 73 74 20 33 35 20 |/stat.t |test 35 |
|00000da0| 77 69 74 68 6f 75 74 20 | 70 77 64 20 77 6f 72 6b |without |pwd work|
|00000db0| 69 6e 67 22 20 75 6e 6c | 65 73 73 20 24 63 77 64 |ing" unl|ess $cwd|
|00000dc0| 3b 0d 63 68 64 69 72 20 | 22 24 45 4e 56 7b 27 4d |;.chdir |"$ENV{'M|
|00000dd0| 50 57 27 7d 54 6f 6f 6c | 73 3a 22 20 7c 7c 20 64 |PW'}Tool|s:" || d|
|00000de0| 69 65 20 22 43 61 6e 27 | 74 20 63 64 20 74 6f 20 |ie "Can'|t cd to |
|00000df0| 24 45 4e 56 7b 27 4d 50 | 57 27 7d 54 6f 6f 6c 73 |$ENV{'MP|W'}Tools|
|00000e00| 3a 22 3b 0d 77 68 69 6c | 65 20 28 64 65 66 69 6e |:";.whil|e (defin|
|00000e10| 65 64 28 24 5f 20 3d 20 | 3c c5 3e 29 29 20 7b 0d |ed($_ = |<.>)) {.|
|00000e20| 20 20 20 20 24 63 6e 74 | 2b 2b 3b 0d 20 20 20 20 | $cnt|++;. |
|00000e30| 24 75 69 64 2b 2b 20 69 | 66 20 2d 75 3b 0d 20 20 |$uid++ i|f -u;. |
|00000e40| 20 20 6c 61 73 74 20 69 | 66 20 24 75 69 64 20 26 | last i|f $uid &|
|00000e50| 26 20 24 75 69 64 20 3c | 20 24 63 6e 74 3b 0d 7d |& $uid <| $cnt;.}|
|00000e60| 0d 63 68 64 69 72 20 24 | 63 77 64 20 7c 7c 20 64 |.chdir $|cwd || d|
|00000e70| 69 65 20 22 43 61 6e 27 | 74 20 63 64 20 62 61 63 |ie "Can'|t cd bac|
|00000e80| 6b 20 74 6f 20 24 63 77 | 64 22 3b 0d 0d 23 20 49 |k to $cw|d";..# I|
|00000e90| 20 73 75 70 70 6f 73 65 | 20 74 68 69 73 20 69 73 | suppose| this is|
|00000ea0| 20 67 6f 69 6e 67 20 74 | 6f 20 66 61 69 6c 20 73 | going t|o fail s|
|00000eb0| 6f 6d 65 77 68 65 72 65 | 2e 2e 2e 0d 69 66 20 28 |omewhere|....if (|
|00000ec0| 24 75 69 64 20 3e 20 30 | 20 26 26 20 24 75 69 64 |$uid > 0| && $uid|
|00000ed0| 20 3c 20 24 63 6e 74 29 | 20 7b 70 72 69 6e 74 20 | < $cnt)| {print |
|00000ee0| 22 6f 6b 20 33 35 5c 6e | 22 3b 7d 20 65 6c 73 65 |"ok 35\n|";} else|
|00000ef0| 20 7b 70 72 69 6e 74 20 | 22 6e 6f 74 20 6f 6b 20 | {print |"not ok |
|00000f00| 33 35 5c 6e 22 3b 7d 0d | 0d 75 6e 6c 65 73 73 20 |35\n";}.|.unless |
|00000f10| 28 6f 70 65 6e 28 74 74 | 79 2c 22 44 65 76 3a 43 |(open(tt|y,"Dev:C|
|00000f20| 6f 6e 73 6f 6c 65 22 29 | 29 20 7b 0d 20 20 20 20 |onsole")|) {. |
|00000f30| 70 72 69 6e 74 20 53 54 | 44 45 52 52 20 22 43 61 |print ST|DERR "Ca|
|00000f40| 6e 27 74 20 6f 70 65 6e | 20 44 65 76 3a 43 6f 6e |n't open| Dev:Con|
|00000f50| 73 6f 6c 65 2d 2d 72 75 | 6e 20 74 2f 54 45 53 54 |sole--ru|n t/TEST|
|00000f60| 20 6f 75 74 73 69 64 65 | 20 6f 66 20 6d 61 6b 65 | outside| of make|
|00000f70| 2e 5c 6e 22 3b 0d 7d 0d | 69 66 20 28 2d 74 20 74 |.\n";.}.|if (-t t|
|00000f80| 74 79 29 20 7b 70 72 69 | 6e 74 20 22 6f 6b 20 33 |ty) {pri|nt "ok 3|
|00000f90| 36 5c 6e 22 3b 7d 20 65 | 6c 73 65 20 7b 70 72 69 |6\n";} e|lse {pri|
|00000fa0| 6e 74 20 22 6e 6f 74 20 | 6f 6b 20 33 36 5c 6e 22 |nt "not |ok 36\n"|
|00000fb0| 3b 7d 0d 69 66 20 28 2d | 63 20 74 74 79 29 20 7b |;}.if (-|c tty) {|
|00000fc0| 70 72 69 6e 74 20 22 6f | 6b 20 33 37 5c 6e 22 3b |print "o|k 37\n";|
|00000fd0| 7d 20 65 6c 73 65 20 7b | 70 72 69 6e 74 20 22 6e |} else {|print "n|
|00000fe0| 6f 74 20 6f 6b 20 33 37 | 5c 6e 22 3b 7d 0d 63 6c |ot ok 37|\n";}.cl|
|00000ff0| 6f 73 65 28 74 74 79 29 | 3b 0d 69 66 20 28 21 20 |ose(tty)|;.if (! |
|00001000| 2d 74 20 74 74 79 29 20 | 7b 70 72 69 6e 74 20 22 |-t tty) |{print "|
|00001010| 6f 6b 20 33 38 5c 6e 22 | 3b 7d 20 65 6c 73 65 20 |ok 38\n"|;} else |
|00001020| 7b 70 72 69 6e 74 20 22 | 6e 6f 74 20 6f 6b 20 33 |{print "|not ok 3|
|00001030| 38 5c 6e 22 3b 7d 0d 6f | 70 65 6e 28 6e 75 6c 6c |8\n";}.o|pen(null|
|00001040| 2c 22 44 65 76 3a 4e 75 | 6c 6c 22 29 3b 0d 69 66 |,"Dev:Nu|ll");.if|
|00001050| 20 28 21 20 2d 74 20 6e | 75 6c 6c 20 7c 7c 20 2d | (! -t n|ull || -|
|00001060| 65 20 27 2f 78 65 6e 69 | 78 27 29 20 7b 70 72 69 |e '/xeni|x') {pri|
|00001070| 6e 74 20 22 6f 6b 20 33 | 39 5c 6e 22 3b 7d 20 65 |nt "ok 3|9\n";} e|
|00001080| 6c 73 65 20 7b 70 72 69 | 6e 74 20 22 6e 6f 74 20 |lse {pri|nt "not |
|00001090| 6f 6b 20 33 39 5c 6e 22 | 3b 7d 0d 63 6c 6f 73 65 |ok 39\n"|;}.close|
|000010a0| 28 6e 75 6c 6c 29 3b 0d | 69 66 20 28 2d 74 29 20 |(null);.|if (-t) |
|000010b0| 7b 70 72 69 6e 74 20 22 | 6f 6b 20 34 30 5c 6e 22 |{print "|ok 40\n"|
|000010c0| 3b 7d 20 65 6c 73 65 20 | 7b 70 72 69 6e 74 20 22 |;} else |{print "|
|000010d0| 6e 6f 74 20 6f 6b 20 34 | 30 5c 6e 22 3b 7d 0d 0d |not ok 4|0\n";}..|
|000010e0| 23 20 54 68 65 73 65 20 | 61 72 65 6e 27 74 20 73 |# These |aren't s|
|000010f0| 74 72 69 63 74 6c 79 20 | 22 73 74 61 74 22 20 63 |trictly |"stat" c|
|00001100| 61 6c 6c 73 2c 20 62 75 | 74 20 73 6f 20 77 68 61 |alls, bu|t so wha|
|00001110| 74 3f 0d 0d 69 66 20 28 | 2d 54 20 27 3a 6f 70 3a |t?..if (|-T ':op:|
|00001120| 73 74 61 74 2e 74 27 29 | 20 7b 70 72 69 6e 74 20 |stat.t')| {print |
|00001130| 22 6f 6b 20 34 31 5c 6e | 22 3b 7d 20 65 6c 73 65 |"ok 41\n|";} else|
|00001140| 20 7b 70 72 69 6e 74 20 | 22 6e 6f 74 20 6f 6b 20 | {print |"not ok |
|00001150| 34 31 5c 6e 22 3b 7d 0d | 69 66 20 28 21 20 2d 42 |41\n";}.|if (! -B|
|00001160| 20 27 3a 6f 70 3a 73 74 | 61 74 2e 74 27 29 20 7b | ':op:st|at.t') {|
|00001170| 70 72 69 6e 74 20 22 6f | 6b 20 34 32 5c 6e 22 3b |print "o|k 42\n";|
|00001180| 7d 20 65 6c 73 65 20 7b | 70 72 69 6e 74 20 22 6e |} else {|print "n|
|00001190| 6f 74 20 6f 6b 20 34 32 | 5c 6e 22 3b 7d 0d 0d 69 |ot ok 42|\n";}..i|
|000011a0| 66 20 28 2d 42 20 27 3a | 3a 70 65 72 6c 27 29 20 |f (-B ':|:perl') |
|000011b0| 7b 70 72 69 6e 74 20 22 | 6f 6b 20 34 33 5c 6e 22 |{print "|ok 43\n"|
|000011c0| 3b 7d 20 65 6c 73 65 20 | 7b 70 72 69 6e 74 20 22 |;} else |{print "|
|000011d0| 6e 6f 74 20 6f 6b 20 34 | 33 5c 6e 22 3b 7d 0d 69 |not ok 4|3\n";}.i|
|000011e0| 66 20 28 21 20 2d 54 20 | 27 3a 3a 70 65 72 6c 27 |f (! -T |'::perl'|
|000011f0| 29 20 7b 70 72 69 6e 74 | 20 22 6f 6b 20 34 34 5c |) {print| "ok 44\|
|00001200| 6e 22 3b 7d 20 65 6c 73 | 65 20 7b 70 72 69 6e 74 |n";} els|e {print|
|00001210| 20 22 6e 6f 74 20 6f 6b | 20 34 34 5c 6e 22 3b 7d | "not ok| 44\n";}|
|00001220| 0d 0d 6f 70 65 6e 28 46 | 4f 4f 2c 27 3a 6f 70 3a |..open(F|OO,':op:|
|00001230| 73 74 61 74 2e 74 27 29 | 3b 0d 65 76 61 6c 20 7b |stat.t')|;.eval {|
|00001240| 20 2d 54 20 46 4f 4f 3b | 20 7d 3b 0d 69 66 20 28 | -T FOO;| };.if (|
|00001250| 24 40 20 3d 7e 20 2f 6e | 6f 74 20 69 6d 70 6c 65 |$@ =~ /n|ot imple|
|00001260| 6d 65 6e 74 65 64 2f 29 | 20 7b 0d 20 20 20 20 70 |mented/)| {. p|
|00001270| 72 69 6e 74 20 22 23 20 | 24 40 22 3b 0d 20 20 20 |rint "# |$@";. |
|00001280| 20 66 6f 72 20 28 34 35 | 20 2e 2e 20 35 34 29 20 | for (45| .. 54) |
|00001290| 7b 0d 09 70 72 69 6e 74 | 20 22 6f 6b 20 24 5f 5c |{..print| "ok $_\|
|000012a0| 6e 22 3b 0d 20 20 20 20 | 7d 0d 7d 0d 65 6c 73 65 |n";. |}.}.else|
|000012b0| 20 7b 0d 20 20 20 20 69 | 66 20 28 2d 54 20 46 4f | {. i|f (-T FO|
|000012c0| 4f 29 20 7b 70 72 69 6e | 74 20 22 6f 6b 20 34 35 |O) {prin|t "ok 45|
|000012d0| 5c 6e 22 3b 7d 20 65 6c | 73 65 20 7b 70 72 69 6e |\n";} el|se {prin|
|000012e0| 74 20 22 6e 6f 74 20 6f | 6b 20 34 35 5c 6e 22 3b |t "not o|k 45\n";|
|000012f0| 7d 0d 20 20 20 20 69 66 | 20 28 21 20 2d 42 20 46 |}. if| (! -B F|
|00001300| 4f 4f 29 20 7b 70 72 69 | 6e 74 20 22 6f 6b 20 34 |OO) {pri|nt "ok 4|
|00001310| 36 5c 6e 22 3b 7d 20 65 | 6c 73 65 20 7b 70 72 69 |6\n";} e|lse {pri|
|00001320| 6e 74 20 22 6e 6f 74 20 | 6f 6b 20 34 36 5c 6e 22 |nt "not |ok 46\n"|
|00001330| 3b 7d 0d 20 20 20 20 24 | 5f 20 3d 20 3c 46 4f 4f |;}. $|_ = <FOO|
|00001340| 3e 3b 0d 20 20 20 20 69 | 66 20 28 2f 70 65 72 6c |>;. i|f (/perl|
|00001350| 2f 29 20 7b 70 72 69 6e | 74 20 22 6f 6b 20 34 37 |/) {prin|t "ok 47|
|00001360| 5c 6e 22 3b 7d 20 65 6c | 73 65 20 7b 70 72 69 6e |\n";} el|se {prin|
|00001370| 74 20 22 6e 6f 74 20 6f | 6b 20 34 37 5c 6e 22 3b |t "not o|k 47\n";|
|00001380| 7d 0d 20 20 20 20 69 66 | 20 28 2d 54 20 46 4f 4f |}. if| (-T FOO|
|00001390| 29 20 7b 70 72 69 6e 74 | 20 22 6f 6b 20 34 38 5c |) {print| "ok 48\|
|000013a0| 6e 22 3b 7d 20 65 6c 73 | 65 20 7b 70 72 69 6e 74 |n";} els|e {print|
|000013b0| 20 22 6e 6f 74 20 6f 6b | 20 34 38 5c 6e 22 3b 7d | "not ok| 48\n";}|
|000013c0| 0d 20 20 20 20 69 66 20 | 28 21 20 2d 42 20 46 4f |. if |(! -B FO|
|000013d0| 4f 29 20 7b 70 72 69 6e | 74 20 22 6f 6b 20 34 39 |O) {prin|t "ok 49|
|000013e0| 5c 6e 22 3b 7d 20 65 6c | 73 65 20 7b 70 72 69 6e |\n";} el|se {prin|
|000013f0| 74 20 22 6e 6f 74 20 6f | 6b 20 34 39 5c 6e 22 3b |t "not o|k 49\n";|
|00001400| 7d 0d 20 20 20 20 63 6c | 6f 73 65 28 46 4f 4f 29 |}. cl|ose(FOO)|
|00001410| 3b 0d 0d 20 20 20 20 6f | 70 65 6e 28 46 4f 4f 2c |;.. o|pen(FOO,|
|00001420| 27 3a 6f 70 3a 73 74 61 | 74 2e 74 27 29 3b 0d 20 |':op:sta|t.t');. |
|00001430| 20 20 20 24 5f 20 3d 20 | 3c 46 4f 4f 3e 3b 0d 20 | $_ = |<FOO>;. |
|00001440| 20 20 20 69 66 20 28 2f | 70 65 72 6c 2f 29 20 7b | if (/|perl/) {|
|00001450| 70 72 69 6e 74 20 22 6f | 6b 20 35 30 5c 6e 22 3b |print "o|k 50\n";|
|00001460| 7d 20 65 6c 73 65 20 7b | 70 72 69 6e 74 20 22 6e |} else {|print "n|
|00001470| 6f 74 20 6f 6b 20 35 30 | 5c 6e 22 3b 7d 0d 20 20 |ot ok 50|\n";}. |
|00001480| 20 20 69 66 20 28 2d 54 | 20 46 4f 4f 29 20 7b 70 | if (-T| FOO) {p|
|00001490| 72 69 6e 74 20 22 6f 6b | 20 35 31 5c 6e 22 3b 7d |rint "ok| 51\n";}|
|000014a0| 20 65 6c 73 65 20 7b 70 | 72 69 6e 74 20 22 6e 6f | else {p|rint "no|
|000014b0| 74 20 6f 6b 20 35 31 5c | 6e 22 3b 7d 0d 20 20 20 |t ok 51\|n";}. |
|000014c0| 20 69 66 20 28 21 20 2d | 42 20 46 4f 4f 29 20 7b | if (! -|B FOO) {|
|000014d0| 70 72 69 6e 74 20 22 6f | 6b 20 35 32 5c 6e 22 3b |print "o|k 52\n";|
|000014e0| 7d 20 65 6c 73 65 20 7b | 70 72 69 6e 74 20 22 6e |} else {|print "n|
|000014f0| 6f 74 20 6f 6b 20 35 32 | 5c 6e 22 3b 7d 0d 20 20 |ot ok 52|\n";}. |
|00001500| 20 20 73 65 65 6b 28 46 | 4f 4f 2c 30 2c 30 29 3b | seek(F|OO,0,0);|
|00001510| 0d 20 20 20 20 69 66 20 | 28 2d 54 20 46 4f 4f 29 |. if |(-T FOO)|
|00001520| 20 7b 70 72 69 6e 74 20 | 22 6f 6b 20 35 33 5c 6e | {print |"ok 53\n|
|00001530| 22 3b 7d 20 65 6c 73 65 | 20 7b 70 72 69 6e 74 20 |";} else| {print |
|00001540| 22 6e 6f 74 20 6f 6b 20 | 35 33 5c 6e 22 3b 7d 0d |"not ok |53\n";}.|
|00001550| 20 20 20 20 69 66 20 28 | 21 20 2d 42 20 46 4f 4f | if (|! -B FOO|
|00001560| 29 20 7b 70 72 69 6e 74 | 20 22 6f 6b 20 35 34 5c |) {print| "ok 54\|
|00001570| 6e 22 3b 7d 20 65 6c 73 | 65 20 7b 70 72 69 6e 74 |n";} els|e {print|
|00001580| 20 22 6e 6f 74 20 6f 6b | 20 35 34 5c 6e 22 3b 7d | "not ok| 54\n";}|
|00001590| 0d 7d 0d 63 6c 6f 73 65 | 28 46 4f 4f 29 3b 0d 0d |.}.close|(FOO);..|
|000015a0| 69 66 20 28 2d 54 20 27 | 44 65 76 3a 4e 75 6c 6c |if (-T '|Dev:Null|
|000015b0| 27 29 20 7b 70 72 69 6e | 74 20 22 6f 6b 20 35 35 |') {prin|t "ok 55|
|000015c0| 5c 6e 22 3b 7d 20 65 6c | 73 65 20 7b 70 72 69 6e |\n";} el|se {prin|
|000015d0| 74 20 22 6e 6f 74 20 6f | 6b 20 35 35 5c 6e 22 3b |t "not o|k 55\n";|
|000015e0| 7d 0d 69 66 20 28 2d 42 | 20 27 44 65 76 3a 4e 75 |}.if (-B| 'Dev:Nu|
|000015f0| 6c 6c 27 29 20 7b 70 72 | 69 6e 74 20 22 6f 6b 20 |ll') {pr|int "ok |
|00001600| 35 36 5c 6e 22 3b 7d 20 | 65 6c 73 65 20 7b 70 72 |56\n";} |else {pr|
|00001610| 69 6e 74 20 22 6e 6f 74 | 20 6f 6b 20 35 36 5c 6e |int "not| ok 56\n|
|00001620| 22 3b 7d 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |";}.....|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001680| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001690| 00 00 00 00 f0 30 00 17 | 20 00 06 f5 00 00 00 00 |.....0..| .......|
|000016a0| f0 31 00 0e 20 00 0a d3 | 00 00 00 00 00 00 ff ff |.1.. ...|........|
|000016b0| 06 73 74 61 74 2e 74 da | 02 00 00 00 54 45 58 54 |.stat.t.|....TEXT|
|000016c0| 4d 50 53 20 00 00 00 00 | 00 00 00 00 00 00 76 34 |MPS ....|......v4|
|000016d0| 00 00 54 45 58 54 4d 50 | 53 20 00 00 00 00 00 00 |..TEXTMP|S ......|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 a5 8b b4 01 00 00 | 15 a4 00 00 01 ac 00 00 |........|........|
|00001700| f0 3e ff ff 00 00 11 2f | 00 00 00 00 00 00 ff ff |.>...../|........|
|00001710| 00 00 0f 8b 00 00 00 00 | 00 01 ff ff 00 00 db 7a |........|.......z|
|00001720| 00 33 b7 b4 f0 20 ff ff | 00 00 0f b2 00 00 00 00 |.3... ..|........|
|00001730| f0 20 ff ff 00 00 0f c0 | 00 00 00 00 f0 30 ff ff |. ......|.....0..|
|00001740| 00 00 10 7a 00 00 00 00 | f0 3f ff ff 00 00 10 a6 |...z....|.?......|
|00001750| 00 00 00 00 f0 31 ff ff | 00 00 12 f3 00 00 00 00 |.....1..|........|
|00001760| f0 32 ff ff 00 00 18 22 | 00 00 00 00 f0 3e ff ff |.2....."|.....>..|
|00001770| 00 00 19 76 00 00 00 00 | f0 33 ff ff 00 00 20 2e |...v....|.3.... .|
|00001780| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 44 61 74 |...H..Mo|naco.Dat|
|00001790| 65 3a 20 39 31 2f 31 31 | 2f 31 31 20 31 36 3a 34 |e: 91/11|/11 16:4|
|000017a0| 34 3a 34 39 20 24 00 06 | 00 03 00 3c 00 24 01 dd |4:49 $..|...<.$..|
|000017b0| 02 3d 00 3c 00 24 01 dd | 02 3d a5 8d 3c 1f 00 00 |.=.<.$..|.=..<...|
|000017c0| 0d 7b 00 00 0d 7b 00 00 | 0c ff 01 00 00 00 00 1e |.{...{..|........|
|000017d0| 00 3c 00 24 01 dd 02 3d | 00 3c 00 24 01 dd 02 3d |.<.$...=|.<.$...=|
|000017e0| 00 00 0c ff 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 2b |.....n..|.n...>.+|
|00001800| a4 ec 08 d2 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00001810| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00001820| 03 f0 ff ff 00 00 00 4c | 00 31 b0 d8 00 00 00 00 |.......L|.1......|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+