From 5ac371071d4a883ada20b6825b6514f45ff91d62 Mon Sep 17 00:00:00 2001 From: tg Date: Fri, 24 Oct 2008 21:27:20 +0000 Subject: [PATCH] replaced (TNF: ahoka) insists on me mentioning that we specify integer silent wrapping (gcc -fwrapv) as expected behaviour --- mksh.1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mksh.1 b/mksh.1 index a3f40fa..2d4b6fa 100644 --- a/mksh.1 +++ b/mksh.1 @@ -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 $ .\"- .\" 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 .. .\"- -.Dd $Mdocdate: October 20 2008 $ +.Dd $Mdocdate: October 24 2008 $ .Dt MKSH 1 .Os MirBSD .Sh NAME @@ -1055,9 +1055,10 @@ form where .Ar expr 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 only; portable maximum is 1023), inclusive. +That is, they are a 32-bit unsigned integer. Parameter substitutions take the form .Pf $ Ns Ar name , .Pf ${ Ns Ar name Ns } , @@ -2129,6 +2130,8 @@ Grouping operators: ( ) .Ed .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 .Ar base Ns # Ns Ar number , where