Mercurial > hg > toybox
changeset 1636:e064dd8ff138 draft
typo fixes
author | Elliott Hughes <enh@google.com> |
---|---|
date | Thu, 01 Jan 2015 10:58:59 -0600 |
parents | 93c5e6163f9b |
children | 2c86e2cc1fd7 |
files | toys/pending/expr.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/pending/expr.c Wed Dec 31 22:38:48 2014 -0600 +++ b/toys/pending/expr.c Thu Jan 01 10:58:59 2015 -0600 @@ -21,17 +21,17 @@ ( ) : * / % + - != <= < >= > = & | - Each constant and operator must be a sparate command line argument. + Each constant and operator must be a separate command line argument. All operators are infix, meaning they expect a constant (or expression that resolves to a constant) on each side of the operator. Operators of the same priority (within each group above) are evaluated left to right. - Parentheses may be used (as separate arguments) elevate the priority + Parentheses may be used (as separate arguments) to elevate the priority of expressions. Calling expr from a command shell requires a lot of \( or '*' escaping to avoid interpreting shell control characters. - The & and | operators are logical, not bitwise) and may operate on + The & and | operators are logical (not bitwise) and may operate on strings (a blank string is "false"). Comparison operators may also operate on strings (alphabetical sort).