summaryrefslogtreecommitdiffstats
path: root/bin/expr
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2002-03-22 20:46:59 +0000
committerwollman <wollman@FreeBSD.org>2002-03-22 20:46:59 +0000
commitdc0ab814755418de5883bee3cb4a968bc6d94b5b (patch)
tree4ca4140482980f155861067f465a11399f77507a /bin/expr
parentc1037fd271f807b973718abeb7ceedb9d2e8334b (diff)
downloadFreeBSD-src-dc0ab814755418de5883bee3cb4a968bc6d94b5b.zip
FreeBSD-src-dc0ab814755418de5883bee3cb4a968bc6d94b5b.tar.gz
Add a word of caution about integer arithmetic range and overflow detection.
Diffstat (limited to 'bin/expr')
-rw-r--r--bin/expr/expr.16
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/expr/expr.1 b/bin/expr/expr.1
index fed0d30..717f9f6 100644
--- a/bin/expr/expr.1
+++ b/bin/expr/expr.1
@@ -217,3 +217,9 @@ The
.Nm
utility conforms to
.St -p1003.1-2001 .
+.Tn POSIX
+does not specify whether arithmetic overflow is detected, nor does it specify
+the possible range of integer arguments to
+.Nm ,
+so a portable application must assume that the range is small and that
+overflow may not be detected.
OpenPOWER on IntegriCloud