summaryrefslogtreecommitdiff
path: root/bin/ksh/ksh.1tbl
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-02-02 07:53:02 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-02-02 07:53:02 +0000
commit54ee15db00e783ca1052eedeb6b38b4484b6011f (patch)
treebf4d8074308cb316ade912a58910777671d1b708 /bin/ksh/ksh.1tbl
parent8611e25a7ef3067db40e9ec505220aa05c19a973 (diff)
Introduce POSIX hex and octal (0x... and 0...) constants in arithmetic
expressions. Work by Matthias Kilian, based on an old diff by myself. Note: MAKEDEV should be updated. Tested by many, thanks. ok millert@ deraadt@
Diffstat (limited to 'bin/ksh/ksh.1tbl')
-rw-r--r--bin/ksh/ksh.1tbl15
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/ksh/ksh.1tbl b/bin/ksh/ksh.1tbl
index 63f594c1407..0848d48675d 100644
--- a/bin/ksh/ksh.1tbl
+++ b/bin/ksh/ksh.1tbl
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ksh.1tbl,v 1.88 2005/01/19 19:32:02 jmc Exp $
+.\" $OpenBSD: ksh.1tbl,v 1.89 2005/02/02 07:53:01 otto Exp $
.\"
.\" Public Domain
.\"
@@ -2138,6 +2138,19 @@ where
is a decimal integer specifying the base, and
.Ar number
is a number in the specified base.
+Additionally,
+integers may be prefixed with
+.Sq 0X
+or
+.Sq 0x
+(specifying base 16)
+or
+.Sq 0
+(base 8)
+in all forms of arithmetic expressions,
+except as numeric arguments to the
+.Ic test
+command.
.Pp
The operators are evaluated as follows:
.Bl -tag -width Ds -offset indent