summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2012-06-19 16:41:01 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2012-06-19 16:41:01 +0000
commit05aed996b170f9a2d6edbee393d6f61015ee6c40 (patch)
treef4ce8364bdf7aa2a305d4bb796aecafa5a82859e /bin
parent6a4a3c80d473b7dd2749962cb29a6e733bba4ec9 (diff)
for arithmetic expressions, note that:
+A parameter that is NULL or unset evaluates to 0. original diff from robert peichaer this version from naddy
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/ksh.15
-rw-r--r--bin/ksh/sh.15
2 files changed, 6 insertions, 4 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1
index 6c5b357c017..1937559f12c 100644
--- a/bin/ksh/ksh.1
+++ b/bin/ksh/ksh.1
@@ -1,8 +1,8 @@
-.\" $OpenBSD: ksh.1,v 1.142 2012/04/30 03:51:29 djm Exp $
+.\" $OpenBSD: ksh.1,v 1.143 2012/06/19 16:41:00 jmc Exp $
.\"
.\" Public Domain
.\"
-.Dd $Mdocdate: April 30 2012 $
+.Dd $Mdocdate: June 19 2012 $
.Dt KSH 1
.Os
.Sh NAME
@@ -2166,6 +2166,7 @@ Grouping operators:
( )
.Ed
.Pp
+A parameter that is NULL or unset evaluates to 0.
Integer constants may be specified with arbitrary bases using the notation
.Ar base Ns # Ns Ar number ,
where
diff --git a/bin/ksh/sh.1 b/bin/ksh/sh.1
index 88fd211441d..1874b3c045e 100644
--- a/bin/ksh/sh.1
+++ b/bin/ksh/sh.1
@@ -1,8 +1,8 @@
-.\" $OpenBSD: sh.1,v 1.91 2011/09/03 22:59:08 jmc Exp $
+.\" $OpenBSD: sh.1,v 1.92 2012/06/19 16:41:00 jmc Exp $
.\"
.\" Public Domain
.\"
-.Dd $Mdocdate: September 3 2011 $
+.Dd $Mdocdate: June 19 2012 $
.Dt SH 1
.Os
.Sh NAME
@@ -1767,6 +1767,7 @@ Grouping operators:
( )
.Ed
.Pp
+A parameter that is NULL or unset evaluates to 0.
Integer constants may be specified with arbitrary bases using the notation
.Ar base Ns # Ns Ar number ,
where