|
504.
|
|
|
Evaluate arithmetic expressions.
Evaluate each ARG as an arithmetic expression. Evaluation is done in
fixed-width integers with no check for overflow, though division by 0
is trapped and flagged as an error. The following list of operators is
grouped into levels of equal-precedence operators. The levels are listed
in order of decreasing precedence.
[tab] id++, id-- [tab] variable post-increment, post-decrement
[tab] ++id, --id [tab] variable pre-increment, pre-decrement
[tab] -, + [tab] [tab] unary minus, plus
[tab] !, ~ [tab] [tab] logical and bitwise negation
[tab] ** [tab] [tab] exponentiation
[tab] *, /, % [tab] [tab] multiplication, division, remainder
[tab] +, - [tab] [tab] addition, subtraction
[tab] <<, >> [tab] [tab] left and right bitwise shifts
[tab] <=, >=, <, > [tab] comparison
[tab] ==, != [tab] [tab] equality, inequality
[tab] & [tab] [tab] bitwise AND
[tab] ^ [tab] [tab] bitwise XOR
[tab] | [tab] [tab] bitwise OR
[tab] && [tab] [tab] logical AND
[tab] || [tab] [tab] logical OR
[tab] expr ? expr : expr
[tab] [tab] [tab] conditional operator
[tab] =, *=, /=, %=,
[tab] +=, -=, <<=, >>=,
[tab] &=, ^=, |= [tab] assignment
Shell variables are allowed as operands. The name of the variable
is replaced by its value (coerced to a fixed-width integer) within
an expression. The variable need not have its integer attribute
turned on to be used in an expression.
Operators are evaluated in order of precedence. Sub-expressions in
parentheses are evaluated first and may override the precedence
rules above.
Exit Status:
If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise.
|
|
|
[tab] represents a tab character.
Please write it exactly the same way, [tab] , in your
translation.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
Aritmetikai kifejezés kiértékelése.
Minden ARGUMENTUM kiértékelése aritmetikai kifejezésként. A kiértékelés
fix szélességű egészek esetén túlcsordulás-ellenőrzés nélkül történik,
de a nullával való osztás hibát okoz. Az alábbi operátorok soronként
azonos precedenciaszinten vannak. A precedencia az alábbi sorrendben
csökken:
[tab] id++, id-- [tab] változó postfix-növelése, -csökkentése
[tab] ++id, --id [tab] változó prefix-növelése, -csökkentése
[tab] -, + [tab] [tab] mínusz, plusz előjel
[tab] !, ~ [tab] [tab] logikai és bitenkénti negált
[tab] ** [tab] [tab] hatványozás
[tab] *, /, % [tab] [tab] szorzás, osztás, maradék
[tab] +, - [tab] [tab] összeadás, kivonás
[tab] <<, >> [tab] [tab] bitenkénti eltolás balra, jobb
[tab] <=, >=, <, > [tab] összehasonlítás
[tab] ==, != [tab] [tab] egyenlőség, egyenlőtlenség
[tab] & [tab] [tab] bitenkénti ÉS
[tab] ^ [tab] [tab] bitenkénti kizáró vagy (XOR)
[tab] | [tab] [tab] bitenkénti VAGY
[tab] && [tab] [tab] logikai ÉS
[tab] || [tab] [tab] logikai VAGY
[tab] kif ? kif : kif
[tab] [tab] [tab] feltételes operátor
[tab] =, *=, /=, %=,
[tab] +=, -=, <<=, >>=,
[tab] &=, ^=, |= értékadás
Parancsértelmező-változók is lehetnek operandusok. A változók nevének
helyére értékük kerül (fix szélességű egészként) a kifejezésben. Nem
kell a változók „integer” jellemzőjét beállítani a használathoz.
Az operátorok a fenti precedencia szerint hajtódnak végre. A zárójeles
kifejezések precedenciája a legmagasabb – ez felülírja a szabályokat.
Kilépési kód:
Ha az utolsó argumentum 0, a let 1-gyel tér vissza, különben 0-val.
|
|
Translated by
Gabor Kelemen
|
|
|
|
|
| msgid ""
| "Evaluate arithmetic expressions.\n"
| " \n"
| " Evaluate each ARG as an arithmetic expression. Evaluation is done in\n"
| " fixed-width integers with no check for overflow, though division by 0\n"
| " is trapped and flagged as an error. The following list of operators is\n"
| " grouped into levels of equal-precedence operators. The levels are listed\n"
| " in order of decreasing precedence.\n"
| " \n"
| " \tid++, id--\tvariable post-increment, post-decrement\n"
| " \t++id, --id\tvariable pre-increment, pre-decrement\n"
| " \t-, +\t\tunary minus, plus\n"
| " \t!, ~\t\tlogical and bitwise negation\n"
| " \t**\t\texponentiation\n"
| " \t*, /, %\t\tmultiplication, division, remainder\n"
| " \t+, -\t\taddition, subtraction\n"
| " \t<<, >>\t\tleft and right bitwise shifts\n"
| " \t<=, >=, <, >\tcomparison\n"
| " \t==, !=\t\tequality, inequality\n"
| " \t&\t\tbitwise AND\n"
| " \t^\t\tbitwise XOR\n"
| " \t|\t\tbitwise OR\n"
| " \t&&\t\tlogical AND\n"
| " \t||\t\tlogical OR\n"
| " \texpr ? expr : expr\n"
| " \t\t\tconditional operator\n"
| " \t=, *=, /=, %=,\n"
| " \t+=, -=, <<=, >>=,\n"
| " \t&=, ^=, |=\tassignment\n"
| " \n"
| " Shell variables are allowed as operands. The name of the variable\n"
| " is replaced by its value (coerced to a fixed-width integer) within\n"
| " an expression. The variable need not have its integer attribute\n"
| " turned on to be used in an expression.\n"
| " \n"
| " Operators are evaluated in order of precedence. Sub-expressions in\n"
| " parentheses are evaluated first and may override the precedence\n"
| " rules above.\n"
| " \n"
| " Exit Status:\n"
| " If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise.."
|
|
Located in
builtins.c:949
|