summaryrefslogtreecommitdiffstats
path: root/bin/expr
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2007-03-04 19:52:07 +0000
committerru <ru@FreeBSD.org>2007-03-04 19:52:07 +0000
commitcabb128e116189b28979fed24ecb43c60be0ffcf (patch)
treefca64793e1f529325232078750e78038d76f30e1 /bin/expr
parent3c9b93ed36aadd27eb0db226d8245fec593885c5 (diff)
downloadFreeBSD-src-cabb128e116189b28979fed24ecb43c60be0ffcf.zip
FreeBSD-src-cabb128e116189b28979fed24ecb43c60be0ffcf.tar.gz
Fix markup.
Diffstat (limited to 'bin/expr')
-rw-r--r--bin/expr/expr.113
1 files changed, 8 insertions, 5 deletions
diff --git a/bin/expr/expr.1 b/bin/expr/expr.1
index 56559a1..3f8eabb 100644
--- a/bin/expr/expr.1
+++ b/bin/expr/expr.1
@@ -72,7 +72,10 @@ data type.
.Pp
Operators are listed below in order of increasing precedence; all
are left-associative.
-Operators with equal precedence are grouped within { } symbols.
+Operators with equal precedence are grouped within symbols
+.Ql {
+and
+.Ql } .
.Bl -tag -width indent
.It Ar expr1 Li | Ar expr2
Return the evaluation of
@@ -97,7 +100,7 @@ Return the results of addition or subtraction of integer-valued arguments.
Return the results of multiplication, integer division, or remainder of integer-valued arguments.
.It Ar expr1 Li : Ar expr2
The
-.Dq \&:
+.Dq Li \&:
operator matches
.Ar expr1
against
@@ -105,13 +108,13 @@ against
which must be a basic regular expression.
The regular expression is anchored
to the beginning of the string with an implicit
-.Dq ^ .
+.Dq Li ^ .
.Pp
If the match succeeds and the pattern contains at least one regular
expression subexpression
-.Dq "\e(...\e)" ,
+.Dq Li "\e(...\e)" ,
the string corresponding to
-.Dq "\e1"
+.Dq Li \e1
is returned;
otherwise the matching operator returns the number of characters matched.
If the match fails and the pattern contains a regular expression subexpression
OpenPOWER on IntegriCloud