replaced (TNF: ahoka) insists on me mentioning that we specify integer

silent wrapping (gcc -fwrapv) as expected behaviour
This commit is contained in:
tg 2008-10-24 21:27:20 +00:00
parent 4f81a0dbb6
commit 5ac371071d

9
mksh.1
View File

@ -1,4 +1,4 @@
.\" $MirOS: src/bin/mksh/mksh.1,v 1.143 2008/10/20 19:52:07 tg Exp $ .\" $MirOS: src/bin/mksh/mksh.1,v 1.144 2008/10/24 21:27:20 tg Exp $
.\" $OpenBSD: ksh.1,v 1.122 2008/05/17 23:31:52 sobrado Exp $ .\" $OpenBSD: ksh.1,v 1.122 2008/05/17 23:31:52 sobrado Exp $
.\"- .\"-
.\" Try to make GNU groff and AT&T nroff more compatible .\" Try to make GNU groff and AT&T nroff more compatible
@ -30,7 +30,7 @@
.el .xD \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 .el .xD \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8
.. ..
.\"- .\"-
.Dd $Mdocdate: October 20 2008 $ .Dd $Mdocdate: October 24 2008 $
.Dt MKSH 1 .Dt MKSH 1
.Os MirBSD .Os MirBSD
.Sh NAME .Sh NAME
@ -1055,9 +1055,10 @@ form
where where
.Ar expr .Ar expr
is an arithmetic expression. is an arithmetic expression.
Array indices are currently limited to the range 0 through 4294967295 (for Array indices are currently limited to the range 0 through 4294967295, (for
.Nm .Nm
only; portable maximum is 1023), inclusive. only; portable maximum is 1023), inclusive.
That is, they are a 32-bit unsigned integer.
Parameter substitutions take the form Parameter substitutions take the form
.Pf $ Ns Ar name , .Pf $ Ns Ar name ,
.Pf ${ Ns Ar name Ns } , .Pf ${ Ns Ar name Ns } ,
@ -2129,6 +2130,8 @@ Grouping operators:
( ) ( )
.Ed .Ed
.Pp .Pp
Integer constants are currently limited to 32-bit, signed or unsigned.
Overflows wrap silently.
Integer constants may be specified with arbitrary bases using the notation Integer constants may be specified with arbitrary bases using the notation
.Ar base Ns # Ns Ar number , .Ar base Ns # Ns Ar number ,
where where