sh(1): Update description of arithmetic.

This commit is contained in:
Jilles Tjoelker 2011-02-08 23:19:40 +00:00
parent 6262b84eee
commit 075b72ef01

View File

@ -32,7 +32,7 @@
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95 .\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd February 4, 2011 .Dd February 8, 2011
.Dt SH 1 .Dt SH 1
.Os .Os
.Sh NAME .Sh NAME
@ -1499,13 +1499,8 @@ and contain integer constants.
.Li "* / % + - << >> < <= > >= == != & ^ | && ||" .Li "* / % + - << >> < <= > >= == != & ^ | && ||"
.It Assignment operators .It Assignment operators
.Li "= += -= *= /= %= <<= >>= &= ^= |=" .Li "= += -= *= /= %= <<= >>= &= ^= |="
.It Short-circuit evaluation .It Conditional operator
The .Li "? :"
.Li &&
and
.Li ||
operators always evaluate both sides.
This is a bug.
.El .El
.Pp .Pp
The result of the expression is substituted in decimal. The result of the expression is substituted in decimal.