diff options
Diffstat (limited to 'bin/expr/expr.1')
-rw-r--r-- | bin/expr/expr.1 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/expr/expr.1 b/bin/expr/expr.1 index 6ad821a..4550edb 100644 --- a/bin/expr/expr.1 +++ b/bin/expr/expr.1 @@ -176,7 +176,8 @@ option, since this matches the historic behavior of .Nm in .Fx . This option makes number parsing less strict and permits leading -white space and an optional leading plus sign. In addition, empty operands +white space and an optional leading plus sign. +In addition, empty operands have an implied value of zero in numeric context. For historical reasons, defining the environment variable .Ev EXPR_COMPAT @@ -300,7 +301,8 @@ standard, the use of string arguments .Va index , or .Va match -produces undefined results. In this version of +produces undefined results. +In this version of .Nm , these arguments are treated just as their respective string values. .Pp |