DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: e

⟦83ede1881⟧

    Length: 4977 (0x1371)
    Names: »expr.1«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat1/expr.1« 

Default Hex Dump

0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f   ┆   _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e   ┆ u_ a_ l             User Comman┆
0x0040…0060 64 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 78 70 72 28 31 29 0a 0a 0a 0a   ┆ds                   expr(1)    ┆
0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20   ┆N N N NA A A AM M M ME E E E    ┆
0x0080…00a0 20 20 65 78 70 72 20 2d 20 65 76 61 6c 75 61 74 65 20 61 72 67 75 6d 65 6e 74 73 20 61 73 20 61   ┆  expr - evaluate arguments as a┆
0x00a0…00c0 6e 20 65 78 70 72 65 73 73 69 6f 6e 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08   ┆n expression  S S S SY Y Y YN N ┆
0x00c0…00e0 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 65 08   ┆N NT T T TA A A AX X X X      e ┆
0x00e0…0100 65 08 65 08 65 78 08 78 08 78 08 78 70 08 70 08 70 08 70 72 08 72 08 72 08 72 20 61 72 67 75 6d   ┆e e ex x x xp p p pr r r r argum┆
0x0100…0120 65 6e 74 73 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43   ┆ents  D D D DE E E ES S S SC C C┆
0x0120…0140 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08   ┆ CR R R RI I I IP P P PT T T TI ┆
0x0140…0160 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 61 72 67   ┆I I IO O O ON N N N      The arg┆
0x0160…0180 75 6d 65 6e 74 73 20 61 72 65 20 74 61 6b 65 6e 20 61 73 20 61 6e 20 65 78 70 72 65 73 73 69 6f   ┆uments are taken as an expressio┆
0x0180…01a0 6e 2e 20 20 41 66 74 65 72 20 65 76 61 6c 75 61 74 69 6f 6e 2c 0a 20 20 20 20 20 74 68 65 20 72   ┆n.  After evaluation,      the r┆
0x01a0…01c0 65 73 75 6c 74 20 69 73 20 77 72 69 74 74 65 6e 20 6f 6e 20 74 68 65 20 73 74 61 6e 64 61 72 64   ┆esult is written on the standard┆
0x01c0…01e0 20 6f 75 74 70 75 74 2e 20 20 54 65 72 6d 73 20 6f 66 20 74 68 65 0a 20 20 20 20 20 65 78 70 72   ┆ output.  Terms of the      expr┆
0x01e0…0200 65 73 73 69 6f 6e 20 6d 75 73 74 20 62 65 20 73 65 70 61 72 61 74 65 64 20 62 79 20 62 6c 61 6e   ┆ession must be separated by blan┆
0x0200…0220 6b 73 2e 20 20 43 68 61 72 61 63 74 65 72 73 20 73 70 65 63 69 61 6c 0a 20 20 20 20 20 74 6f 20   ┆ks.  Characters special      to ┆
0x0220…0240 74 68 65 20 73 68 65 6c 6c 20 6d 75 73 74 20 62 65 20 65 73 63 61 70 65 64 2e 20 20 4e 6f 74 65   ┆the shell must be escaped.  Note┆
0x0240…0260 20 74 68 61 74 20 30 08 30 08 30 08 30 20 69 73 20 72 65 74 75 72 6e 65 64 20 74 6f 0a 20 20 20   ┆ that 0 0 0 0 is returned to    ┆
0x0260…0280 20 20 69 6e 64 69 63 61 74 65 20 61 20 7a 65 72 6f 20 76 61 6c 75 65 2c 20 72 61 74 68 65 72 20   ┆  indicate a zero value, rather ┆
0x0280…02a0 74 68 61 6e 20 74 68 65 20 6e 75 6c 6c 20 73 74 72 69 6e 67 2e 20 20 53 74 72 69 6e 67 73 0a 20   ┆than the null string.  Strings  ┆
0x02a0…02c0 20 20 20 20 63 6f 6e 74 61 69 6e 69 6e 67 20 62 6c 61 6e 6b 73 20 6f 72 20 6f 74 68 65 72 20 73   ┆    containing blanks or other s┆
0x02c0…02e0 70 65 63 69 61 6c 20 63 68 61 72 61 63 74 65 72 73 20 73 68 6f 75 6c 64 20 62 65 0a 20 20 20 20   ┆pecial characters should be     ┆
0x02e0…0300 20 71 75 6f 74 65 64 2e 20 20 49 6e 74 65 67 65 72 2d 76 61 6c 75 65 64 20 61 72 67 75 6d 65 6e   ┆ quoted.  Integer-valued argumen┆
0x0300…0320 74 73 20 6d 61 79 20 62 65 20 70 72 65 63 65 64 65 64 20 62 79 20 61 20 75 6e 61 72 79 0a 20 20   ┆ts may be preceded by a unary   ┆
0x0320…0340 20 20 20 6d 69 6e 75 73 20 73 69 67 6e 2e 20 20 49 6e 74 65 72 6e 61 6c 6c 79 2c 20 69 6e 74 65   ┆   minus sign.  Internally, inte┆
0x0340…0360 67 65 72 73 20 61 72 65 20 74 72 65 61 74 65 64 20 61 73 20 33 32 2d 62 69 74 2c 20 32 73 0a 20   ┆gers are treated as 32-bit, 2s  ┆
0x0360…0380 20 20 20 20 63 6f 6d 70 6c 65 6d 65 6e 74 20 6e 75 6d 62 65 72 73 2e 0a 0a 20 20 20 20 20 54 68   ┆    complement numbers.       Th┆
0x0380…03a0 65 20 6f 70 65 72 61 74 6f 72 73 20 61 6e 64 20 6b 65 79 77 6f 72 64 73 20 61 72 65 20 6c 69 73   ┆e operators and keywords are lis┆
0x03a0…03c0 74 65 64 20 62 65 6c 6f 77 2e 20 20 43 68 61 72 61 63 74 65 72 73 0a 20 20 20 20 20 74 68 61 74   ┆ted below.  Characters      that┆
0x03c0…03e0 20 6e 65 65 64 20 74 6f 20 62 65 20 65 73 63 61 70 65 64 20 61 72 65 20 70 72 65 63 65 64 65 64   ┆ need to be escaped are preceded┆
0x03e0…0400 20 62 79 20 5c 08 5c 08 5c 08 5c 2e 20 20 54 68 65 20 6c 69 73 74 20 69 73 20 69 6e 0a 20 20 20   ┆ by \ \ \ \.  The list is in    ┆
0x0400…0420 20 20 6f 72 64 65 72 20 6f 66 20 69 6e 63 72 65 61 73 69 6e 67 20 70 72 65 63 65 64 65 6e 63 65   ┆  order of increasing precedence┆
0x0420…0440 2c 20 77 69 74 68 20 65 71 75 61 6c 2d 70 72 65 63 65 64 65 6e 63 65 20 6f 70 65 72 61 2d 0a 20   ┆, with equal-precedence opera-  ┆
0x0440…0460 20 20 20 20 74 6f 72 73 20 67 72 6f 75 70 65 64 20 77 69 74 68 69 6e 20 7b 08 7b 08 7b 08 7b 7d   ┆    tors grouped within { { { {}┆
0x0460…0480 08 7d 08 7d 08 7d 20 73 79 6d 62 6f 6c 73 2e 0a 0a 20 20 20 20 20 5f 08 65 5f 08 78 5f 08 70 5f   ┆ } } } symbols.       _ e_ x_ p_┆
0x0480…04a0 08 72 20 5c 08 5c 08 5c 08 5c 7c 08 7c 08 7c 08 7c 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 0a 20   ┆ r \ \ \ \| | | | _ e_ x_ p_ r  ┆
0x04a0…04c0 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 73 20 74 68 65 20 66 69 72 73 74 20 5f 08 65 5f 08   ┆         returns the first _ e_ ┆
0x04c0…04e0 78 5f 08 70 5f 08 72 20 69 66 20 69 74 20 69 73 20 6e 65 69 74 68 65 72 20 6e 75 6c 6c 20 6e 6f   ┆x_ p_ r if it is neither null no┆
0x04e0…0500 72 20 30 08 30 08 30 08 30 3b 0a 20 20 20 20 20 20 20 20 20 20 6f 74 68 65 72 77 69 73 65 20 72   ┆r 0 0 0 0;           otherwise r┆
0x0500…0520 65 74 75 72 6e 73 20 74 68 65 20 73 65 63 6f 6e 64 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 2e 0a   ┆eturns the second _ e_ x_ p_ r. ┆
0x0520…0540 0a 20 20 20 20 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 20 5c 08 5c 08 5c 08 5c 26 08 26 08 26 08   ┆      _ e_ x_ p_ r \ \ \ \& & & ┆
0x0540…0560 26 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 0a 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 73   ┆& _ e_ x_ p_ r           returns┆
0x0560…0580 20 74 68 65 20 66 69 72 73 74 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 20 69 66 20 6e 65 69 74 68   ┆ the first _ e_ x_ p_ r if neith┆
0x0580…05a0 65 72 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 20 69 73 20 6e 75 6c 6c 20 6f 72 20 30 08 30 08 30   ┆er _ e_ x_ p_ r is null or 0 0 0┆
0x05a0…05c0 08 30 2c 0a 20 20 20 20 20 20 20 20 20 20 6f 74 68 65 72 77 69 73 65 20 72 65 74 75 72 6e 73 20   ┆ 0,           otherwise returns ┆
0x05c0…05e0 30 08 30 08 30 08 30 2e 0a 0a 20 20 20 20 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 20 7b 20 3d 08   ┆0 0 0 0.       _ e_ x_ p_ r { = ┆
0x05e0…0600 3d 08 3d 08 3d 2c 20 5c 08 5c 08 5c 08 5c 3e 08 3e 08 3e 08 3e 2c 20 5c 08 5c 08 5c 08 5c 3e 08   ┆= = =, \ \ \ \> > > >, \ \ \ \> ┆
0x0600…0620 3e 08 3e 08 3e 3d 08 3d 08 3d 08 3d 2c 20 5c 08 5c 08 5c 08 5c 3c 08 3c 08 3c 08 3c 2c 20 5c 08   ┆> > >= = = =, \ \ \ \< < < <, \ ┆
0x0620…0640 5c 08 5c 08 5c 3c 08 3c 08 3c 08 3c 3d 08 3d 08 3d 08 3d 2c 20 21 08 21 08 21 08 21 3d 08 3d 08   ┆\ \ \< < < <= = = =, ! ! ! != = ┆
0x0640…0660 3d 08 3d 20 7d 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 0a 20 20 20 20 20 20 20 20 20 20 72 65 74   ┆= = } _ e_ x_ p_ r           ret┆
0x0660…0680 75 72 6e 73 20 74 68 65 20 72 65 73 75 6c 74 20 6f 66 20 61 6e 20 69 6e 74 65 67 65 72 20 63 6f   ┆urns the result of an integer co┆
0x0680…06a0 6d 70 61 72 69 73 6f 6e 20 69 66 20 62 6f 74 68 0a 20 20 20 20 20 20 20 20 20 20 61 72 67 75 6d   ┆mparison if both           argum┆
0x06a0…06c0 65 6e 74 73 20 61 72 65 20 69 6e 74 65 67 65 72 73 2c 20 6f 74 68 65 72 77 69 73 65 20 72 65 74   ┆ents are integers, otherwise ret┆
0x06c0…06e0 75 72 6e 73 20 74 68 65 20 72 65 73 75 6c 74 20 6f 66 0a 20 20 20 20 20 20 20 20 20 20 61 20 6c   ┆urns the result of           a l┆
0x06e0…0700 65 78 69 63 61 6c 20 63 6f 6d 70 61 72 69 73 6f 6e 2e 0a 0a 20 20 20 20 20 5f 08 65 5f 08 78 5f   ┆exical comparison.       _ e_ x_┆
0x0700…0720 08 70 5f 08 72 20 7b 20 2b 08 2b 08 2b 08 2b 2c 20 2d 08 2d 08 2d 08 2d 20 7d 20 5f 08 65 5f 08   ┆ p_ r { + + + +, - - - - } _ e_ ┆
0x0720…0740 78 5f 08 70 5f 08 72 0a 20 20 20 20 20 20 20 20 20 20 61 64 64 69 74 69 6f 6e 20 6f 72 20 73 75   ┆x_ p_ r           addition or su┆
0x0740…0760 62 74 72 61 63 74 69 6f 6e 20 6f 66 20 69 6e 74 65 67 65 72 2d 76 61 6c 75 65 64 20 61 72 67 75   ┆btraction of integer-valued argu┆
0x0760…0780 6d 65 6e 74 73 2e 0a 0a 20 20 20 20 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 20 7b 20 5c 08 5c 08   ┆ments.       _ e_ x_ p_ r { \ \ ┆
0x0780…07a0 5c 08 5c 2a 08 2a 08 2a 08 2a 2c 20 2f 08 2f 08 2f 08 2f 2c 20 25 08 25 08 25 08 25 20 7d 20 5f   ┆\ \* * * *, / / / /, % % % % } _┆
0x07a0…07c0 08 65 5f 08 78 5f 08 70 5f 08 72 0a 20 20 20 20 20 20 20 20 20 20 6d 75 6c 74 69 70 6c 69 63 61   ┆ e_ x_ p_ r           multiplica┆
0x07c0…07e0 74 69 6f 6e 2c 20 64 69 76 69 73 69 6f 6e 2c 20 6f 72 20 72 65 6d 61 69 6e 64 65 72 20 6f 66 20   ┆tion, division, or remainder of ┆
0x07e0…0800 74 68 65 20 69 6e 74 65 67 65 72 2d 0a 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 64 20 61 72   ┆the integer-           valued ar┆
0x0800…0820 67 75 6d 65 6e 74 73 2e 0a 0a 20 20 20 20 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 20 3a 08 3a 08   ┆guments.       _ e_ x_ p_ r : : ┆
0x0820…0840 3a 08 3a 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 0a 20 20 20 20 20 20 20 20 20 20 54 68 65 20 6d   ┆: : _ e_ x_ p_ r           The m┆
0x0840…0860 61 74 63 68 69 6e 67 20 6f 70 65 72 61 74 6f 72 20 3a 08 3a 08 3a 08 3a 20 63 6f 6d 70 61 72 65   ┆atching operator : : : : compare┆
0x0860…0880 73 20 74 68 65 20 66 69 72 73 74 20 61 72 67 75 6d 65 6e 74 0a 20 20 20 20 20 20 20 20 20 20 77   ┆s the first argument           w┆
0x0880…08a0 69 74 68 20 74 68 65 20 73 65 63 6f 6e 64 20 61 72 67 75 6d 65 6e 74 20 77 68 69 63 68 20 6d 75   ┆ith the second argument which mu┆
0x08a0…08c0 73 74 20 62 65 20 61 20 72 65 67 75 6c 61 72 0a 20 20 20 20 20 20 20 20 20 20 65 78 70 72 65 73   ┆st be a regular           expres┆
0x08c0…08e0 73 69 6f 6e 2e 20 20 52 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 20 73 79 6e 74 61 78   ┆sion.  Regular expression syntax┆
0x08e0…0900 20 69 73 20 74 68 65 20 73 61 6d 65 20 61 73 0a 20 20 20 20 20 20 20 20 20 20 74 68 61 74 20 6f   ┆ is the same as           that o┆
0x0900…0920 66 20 5f 08 65 5f 08 64 28 31 29 2c 20 65 78 63 65 70 74 20 74 68 61 74 20 61 6c 6c 20 70 61 74   ┆f _ e_ d(1), except that all pat┆
0x0920…0940 74 65 72 6e 73 20 61 72 65 0a 20 20 20 20 20 20 20 20 20 20 60 60 61 6e 63 68 6f 72 65 64 27 27   ┆terns are           ``anchored''┆
0x0940…0960 20 28 69 2e 65 2e 2c 20 62 65 67 69 6e 20 77 69 74 68 20 5e 08 5e 08 5e 08 5e 29 3b 20 74 68 65   ┆ (i.e., begin with ^ ^ ^ ^); the┆
0x0960…0980 72 65 66 6f 72 65 2c 20 5e 08 5e 08 5e 08 5e 20 69 73 20 6e 6f 74 0a 20 20 20 20 20 20 20 20 20   ┆refore, ^ ^ ^ ^ is not          ┆
0x0980…09a0 20 61 20 73 70 65 63 69 61 6c 20 63 68 61 72 61 63 74 65 72 2c 20 69 6e 20 74 68 61 74 20 63 6f   ┆ a special character, in that co┆
0x09a0…09c0 6e 74 65 78 74 2e 20 20 4e 6f 72 6d 61 6c 6c 79 2c 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20   ┆ntext.  Normally, the           ┆
0x09c0…09e0 6d 61 74 63 68 69 6e 67 20 6f 70 65 72 61 74 6f 72 20 72 65 74 75 72 6e 73 20 74 68 65 20 6e 75   ┆matching operator returns the nu┆
0x09e0…0a00 6d 62 65 72 20 6f 66 20 63 68 61 72 61 63 74 65 72 73 0a 20 20 20 20 20 20 20 20 20 20 6d 61 74   ┆mber of characters           mat┆
0x0a00…0a20 63 68 65 64 20 28 30 08 30 08 30 08 30 20 6f 6e 20 66 61 69 6c 75 72 65 29 2e 20 20 41 6c 74 65   ┆ched (0 0 0 0 on failure).  Alte┆
0x0a20…0a40 72 6e 61 74 69 76 65 6c 79 2c 20 74 68 65 20 5c 08 5c 08 5c 08 5c 28 08 28 08 28 08 28 2e 08 2e   ┆rnatively, the \ \ \ \( ( ( (. .┆
0x0a40…0a60 08 2e 08 2e 2e 08 2e 08 2e 08 2e 2e 08 2e 08 2e 08 2e 5c 08 5c 08 5c 08 5c 29 08 29 08 29 08 29   ┆ . .. . . .. . . .\ \ \ \) ) ) )┆
0x0a60…0a80 0a 20 20 20 20 20 20 20 20 20 20 70 61 74 74 65 72 6e 20 73 79 6d 62 6f 6c 73 20 63 61 6e 20 62   ┆           pattern symbols can b┆
0x0a80…0aa0 65 20 75 73 65 64 20 74 6f 20 72 65 74 75 72 6e 20 61 20 70 6f 72 74 69 6f 6e 20 6f 66 20 74 68   ┆e used to return a portion of th┆
0x0aa0…0ac0 65 0a 20 20 20 20 20 20 20 20 20 20 66 69 72 73 74 20 61 72 67 75 6d 65 6e 74 2e 0a 0a 45 08 45   ┆e           first argument.  E E┆
0x0ac0…0ae0 08 45 08 45 58 08 58 08 58 08 58 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 50 08 50 08 50 08 50   ┆ E EX X X XA A A AM M M MP P P P┆
0x0ae0…0b00 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 53 08 53 08 53 08 53 0a 20 20 20 20 20 31 2e 20 20 20   ┆L L L LE E E ES S S S      1.   ┆
0x0b00…0b20 61 3d 60 65 78 70 72 20 24 61 20 2b 20 31 60 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆a=`expr $a + 1`                 ┆
0x0b20…0b40 61 64 64 73 20 31 20 74 6f 20 74 68 65 20 73 68 65 6c 6c 20 76 61 72 69 61 62 6c 65 20 61 08 61   ┆adds 1 to the shell variable a a┆
0x0b40…0b60 08 61 08 61 2e 0a 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 32 2e 20 20 20 23 08 23 08 23 08 23 20 20   ┆ a a.             2.   # # # #  ┆
0x0b60…0b80 27 46 6f 72 20 24 61 20 65 71 75 61 6c 20 74 6f 20 65 69 74 68 65 72 20 2f 75 73 72 2f 61 62 63   ┆'For $a equal to either /usr/abc┆
0x0b80…0ba0 2f 66 69 6c 65 20 6f 72 20 6a 75 73 74 20 66 69 6c 65 27 0a 20 20 20 20 20 20 20 20 20 20 65 78   ┆/file or just file'           ex┆
0x0ba0…0bc0 70 72 20 20 24 61 20 20 3a 08 3a 08 3a 08 3a 20 20 27 2e 08 2e 08 2e 08 2e 2a 2f 5c 28 2e 08 2e   ┆pr  $a  : : : :  '. . . .*/\(. .┆
0x0bc0…0be0 08 2e 08 2e 2a 5c 29 27 20 20 5c 7c 20 20 24 61 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ . .*\)'  \|  $a                ┆
0x0be0…0c00 20 72 65 74 75 72 6e 73 20 74 68 65 20 6c 61 73 74 20 73 65 67 6d 65 6e 74 20 6f 66 20 61 20 70   ┆ returns the last segment of a p┆
0x0c00…0c20 61 74 68 20 6e 61 6d 65 20 28 69 2e 65 2e 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5f   ┆ath name (i.e.,                _┆
0x0c20…0c40 08 66 5f 08 69 5f 08 6c 5f 08 65 29 2e 20 20 57 61 74 63 68 20 6f 75 74 20 66 6f 72 20 2f 08 2f   ┆ f_ i_ l_ e).  Watch out for / /┆
0x0c40…0c60 08 2f 08 2f 20 61 6c 6f 6e 65 20 61 73 20 61 6e 20 61 72 67 75 6d 65 6e 74 3a 20 5f 08 65 5f 08   ┆ / / alone as an argument: _ e_ ┆
0x0c60…0c80 78 5f 08 70 5f 08 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 6c 6c 20 74 61 6b 65   ┆x_ p_ r                will take┆
0x0c80…0ca0 20 69 74 20 61 73 20 74 68 65 20 64 69 76 69 73 69 6f 6e 20 6f 70 65 72 61 74 6f 72 20 28 73 65   ┆ it as the division operator (se┆
0x0ca0…0cc0 65 20 4c 49 4d 49 54 41 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 49 4f 4e 53 20 62   ┆e LIMITA-                TIONS b┆
0x0cc0…0ce0 65 6c 6f 77 29 2e 0a 0a 20 20 20 20 20 33 2e 20 20 20 23 08 23 08 23 08 23 20 20 41 20 62 65 74   ┆elow).       3.   # # # #  A bet┆
0x0ce0…0d00 74 65 72 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 6f 66 20 65 78 61 6d 70 6c 65 20 32 2e   ┆ter representation of example 2.┆
0x0d00…0d20 0a 20 20 20 20 20 20 20 20 20 20 65 78 70 72 20 20 2f 2f 24 61 20 20 3a 08 3a 08 3a 08 3a 20 20   ┆           expr  //$a  : : : :  ┆
0x0d20…0d40 27 2e 08 2e 08 2e 08 2e 2a 2f 5c 28 2e 08 2e 08 2e 08 2e 2a 5c 29 27 0a 0a 20 20 20 20 20 20 20   ┆'. . . .*/\(. . . .*\)'         ┆
0x0d40…0d60 20 20 20 20 20 20 20 20 54 68 65 20 61 64 64 69 74 69 6f 6e 20 6f 66 20 74 68 65 20 2f 08 2f 08   ┆        The addition of the / / ┆
0x0d60…0d80 2f 08 2f 2f 08 2f 08 2f 08 2f 20 63 68 61 72 61 63 74 65 72 73 20 65 6c 69 6d 69 6e 61 74 65 73   ┆/ // / / / characters eliminates┆
0x0d80…0da0 20 61 6e 79 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 6d 62 69 67 75 69 74 79 20 61 62   ┆ any                ambiguity ab┆
0x0da0…0dc0 6f 75 74 20 74 68 65 20 64 69 76 69 73 69 6f 6e 20 6f 70 65 72 61 74 6f 72 20 61 6e 64 20 73 69   ┆out the division operator and si┆
0x0dc0…0de0 6d 70 6c 69 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 69 65 73 20 74 68 65 20 77 68   ┆mpli-                fies the wh┆
0x0de0…0e00 6f 6c 65 20 65 78 70 72 65 73 73 69 6f 6e 2e 0a 0a 20 20 20 20 20 34 2e 20 20 20 65 78 70 72 20   ┆ole expression.       4.   expr ┆
0x0e00…0e20 20 24 56 41 52 20 20 3a 08 3a 08 3a 08 3a 20 20 27 2e 08 2e 08 2e 08 2e 2a 08 2a 08 2a 08 2a 27   ┆ $VAR  : : : :  '. . . .* * * *'┆
0x0e20…0e40 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 73 20 74 68 65 20 6e 75 6d   ┆                 returns the num┆
0x0e40…0e60 62 65 72 20 6f 66 20 63 68 61 72 61 63 74 65 72 73 20 69 6e 20 24 08 24 08 24 08 24 56 08 56 08   ┆ber of characters in $ $ $ $V V ┆
0x0e60…0e80 56 08 56 41 08 41 08 41 08 41 52 08 52 08 52 08 52 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45   ┆V VA A A AR R R R.  S S S SE E E┆
0x0e80…0ea0 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f   ┆ EE E E E A A A AL L L LS S S SO┆
0x0ea0…0ec0 08 4f 08 4f 08 4f 0a 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73 20 28 31 29 3a 20 20   ┆ O O O      User Commands (1):  ┆
0x0ec0…0ee0 63 73 68 2c 20 65 64 2c 20 73 68 0a 0a 45 08 45 08 45 08 45 58 08 58 08 58 08 58 49 08 49 08 49   ┆csh, ed, sh  E E E EX X X XI I I┆
0x0ee0…0f00 08 49 54 08 54 08 54 08 54 20 43 08 43 08 43 08 43 4f 08 4f 08 4f 08 4f 44 08 44 08 44 08 44 45   ┆ IT T T T C C C CO O O OD D D DE┆
0x0f00…0f20 08 45 08 45 08 45 0a 20 20 20 20 20 41 73 20 61 20 73 69 64 65 20 65 66 66 65 63 74 20 6f 66 20   ┆ E E E      As a side effect of ┆
0x0f20…0f40 65 78 70 72 65 73 73 69 6f 6e 20 65 76 61 6c 75 61 74 69 6f 6e 2c 20 5f 08 65 5f 08 78 5f 08 70   ┆expression evaluation, _ e_ x_ p┆
0x0f40…0f60 5f 08 72 20 72 65 74 75 72 6e 73 20 74 68 65 0a 20 20 20 20 20 66 6f 6c 6c 6f 77 69 6e 67 20 65   ┆_ r returns the      following e┆
0x0f60…0f80 78 69 74 20 76 61 6c 75 65 73 3a 0a 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 69 66 20 74 68   ┆xit values:           0    if th┆
0x0f80…0fa0 65 20 65 78 70 72 65 73 73 69 6f 6e 20 69 73 20 6e 65 69 74 68 65 72 20 6e 75 6c 6c 20 6f 72 20   ┆e expression is neither null or ┆
0x0fa0…0fc0 30 08 30 08 30 08 30 0a 20 20 20 20 20 20 20 20 20 20 31 20 20 20 20 69 66 20 74 68 65 20 65 78   ┆0 0 0 0           1    if the ex┆
0x0fc0…0fe0 70 72 65 73 73 69 6f 6e 20 5f 08 69 5f 08 73 20 6e 75 6c 6c 20 6f 72 20 30 08 30 08 30 08 30 0a   ┆pression _ i_ s null or 0 0 0 0 ┆
0x0fe0…1000 20 20 20 20 20 20 20 20 20 20 32 20 20 20 20 66 6f 72 20 69 6e 76 61 6c 69 64 20 65 78 70 72 65   ┆          2    for invalid expre┆
0x1000…1020 73 73 69 6f 6e 73 2e 0a 0a 44 08 44 08 44 08 44 49 08 49 08 49 08 49 41 08 41 08 41 08 41 47 08   ┆ssions.  D D D DI I I IA A A AG ┆
0x1020…1040 47 08 47 08 47 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 53 08 53 08 53 08 53 54 08 54 08 54 08   ┆G G GN N N NO O O OS S S ST T T ┆
0x1040…1060 54 49 08 49 08 49 08 49 43 08 43 08 43 08 43 53 08 53 08 53 08 53 0a 20 20 20 20 20 5f 08 73 5f   ┆TI I I IC C C CS S S S      _ s_┆
0x1060…1080 08 79 5f 08 6e 5f 08 74 5f 08 61 5f 08 78 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6f 5f 08 72 20 20   ┆ y_ n_ t_ a_ x _ e_ r_ r_ o_ r  ┆
0x1080…10a0 20 66 6f 72 20 6f 70 65 72 61 74 6f 72 2f 6f 70 65 72 61 6e 64 20 65 72 72 6f 72 73 0a 20 20 20   ┆ for operator/operand errors    ┆
0x10a0…10c0 20 20 5f 08 6e 5f 08 6f 5f 08 6e 2d 5f 08 6e 5f 08 75 5f 08 6d 5f 08 65 5f 08 72 5f 08 69 5f 08   ┆  _ n_ o_ n-_ n_ u_ m_ e_ r_ i_ ┆
0x10c0…10e0 63 20 5f 08 61 5f 08 72 5f 08 67 5f 08 75 5f 08 6d 5f 08 65 5f 08 6e 5f 08 74 0a 20 20 20 20 20   ┆c _ a_ r_ g_ u_ m_ e_ n_ t      ┆
0x10e0…1100 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 61 72 69 74 68 6d 65 74 69 63 20 69 73 20   ┆               if arithmetic is ┆
0x1100…1120 61 74 74 65 6d 70 74 65 64 20 6f 6e 20 73 75 63 68 20 61 20 73 74 72 69 6e 67 0a 0a 4b 08 4b 08   ┆attempted on such a string  K K ┆
0x1120…1140 4b 08 4b 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 57 08 57 08 57 08 57 4e 08 4e 08 4e 08 4e 20   ┆K KN N N NO O O OW W W WN N N N ┆
0x1140…1160 50 08 50 08 50 08 50 52 08 52 08 52 08 52 4f 08 4f 08 4f 08 4f 42 08 42 08 42 08 42 4c 08 4c 08   ┆P P P PR R R RO O O OB B B BL L ┆
0x1160…1180 4c 08 4c 45 08 45 08 45 08 45 4d 08 4d 08 4d 08 4d 53 08 53 08 53 08 53 0a 20 20 20 20 20 41 66   ┆L LE E E EM M M MS S S S      Af┆
0x1180…11a0 74 65 72 20 61 72 67 75 6d 65 6e 74 20 70 72 6f 63 65 73 73 69 6e 67 20 62 79 20 74 68 65 20 73   ┆ter argument processing by the s┆
0x11a0…11c0 68 65 6c 6c 2c 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 20 63 61 6e 6e 6f 74 20 74 65 6c 6c 20 74   ┆hell, _ e_ x_ p_ r cannot tell t┆
0x11c0…11e0 68 65 0a 20 20 20 20 20 64 69 66 66 65 72 65 6e 63 65 20 62 65 74 77 65 65 6e 20 61 6e 20 6f 70   ┆he      difference between an op┆
0x11e0…1200 65 72 61 74 6f 72 20 61 6e 64 20 61 6e 20 6f 70 65 72 61 6e 64 20 65 78 63 65 70 74 20 62 79 20   ┆erator and an operand except by ┆
0x1200…1220 74 68 65 0a 20 20 20 20 20 76 61 6c 75 65 2e 20 20 49 66 20 24 08 24 08 24 08 24 61 08 61 08 61   ┆the      value.  If $ $ $ $a a a┆
0x1220…1240 08 61 20 69 73 20 61 6e 20 3d 08 3d 08 3d 08 3d 2c 20 74 68 65 20 63 6f 6d 6d 61 6e 64 3a 0a 0a   ┆ a is an = = = =, the command:  ┆
0x1240…1260 20 20 20 20 20 20 20 20 20 20 65 78 70 72 20 20 24 61 20 20 3d 20 20 27 3d 27 0a 0a 20 20 20 20   ┆          expr  $a  =  '='      ┆
0x1260…1280 20 6c 6f 6f 6b 73 20 6c 69 6b 65 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 65 78 70 72 20 20 3d 20   ┆ looks like:            expr  = ┆
0x1280…12a0 20 3d 20 20 3d 0a 0a 20 20 20 20 20 61 73 20 74 68 65 20 61 72 67 75 6d 65 6e 74 73 20 61 72 65   ┆ =  =       as the arguments are┆
0x12a0…12c0 20 70 61 73 73 65 64 20 74 6f 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 20 28 61 6e 64 20 74 68 65   ┆ passed to _ e_ x_ p_ r (and the┆
0x12c0…12e0 79 20 77 69 6c 6c 20 61 6c 6c 20 62 65 0a 20 20 20 20 20 74 61 6b 65 6e 20 61 73 20 74 68 65 20   ┆y will all be      taken as the ┆
0x12e0…1300 3d 08 3d 08 3d 08 3d 20 6f 70 65 72 61 74 6f 72 29 2e 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e   ┆= = = = operator).  The followin┆
0x1300…1320 67 20 77 6f 72 6b 73 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 65 78 70 72 20 20 58 24 61 20 20 3d   ┆g works:            expr  X$a  =┆
0x1320…1340 20 20 58 3d 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆  X=  March 1989                ┆
0x1340…1360 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 55 73 65 72 27 73 20 52 65   ┆                    TX User's Re┆
0x1360…1371 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                                                ┆ference          ┆