aboutsummaryrefslogtreecommitdiff
path: root/bin/expr/expr.1
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>2002-03-22 20:46:59 +0000
committerGarrett Wollman <wollman@FreeBSD.org>2002-03-22 20:46:59 +0000
commit7316a9465e22d1517913f33f964dcadf9dfb21c9 (patch)
tree4ca4140482980f155861067f465a11399f77507a /bin/expr/expr.1
parentf477880a4fc51bf79f1ceaf4cb67e99b51e90b00 (diff)
downloadsrc-7316a9465e22d1517913f33f964dcadf9dfb21c9.tar.gz
src-7316a9465e22d1517913f33f964dcadf9dfb21c9.zip
Add a word of caution about integer arithmetic range and overflow detection.
Notes
Notes: svn path=/head/; revision=92983
Diffstat (limited to 'bin/expr/expr.1')
-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 fed0d30dd90a..717f9f6435b2 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.