summaryrefslogtreecommitdiffstats
path: root/doc/expr.n
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-30 14:25:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-30 14:25:59 (GMT)
commit019e49cb721639318c71429003fa55ac2fbfa78d (patch)
tree835b8d5c53bb02190a5a46427f1b9b864afac725 /doc/expr.n
parent991d8133789e318faad62a760b5bb76bf6dc5b87 (diff)
parent3b0ee42270085b039b75e2e27a3a145399a1bfac (diff)
downloadtcl-019e49cb721639318c71429003fa55ac2fbfa78d.zip
tcl-019e49cb721639318c71429003fa55ac2fbfa78d.tar.gz
tcl-019e49cb721639318c71429003fa55ac2fbfa78d.tar.bz2
Merge 8.7
Diffstat (limited to 'doc/expr.n')
-rw-r--r--doc/expr.n9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/expr.n b/doc/expr.n
index 44a5a4b..455523c 100644
--- a/doc/expr.n
+++ b/doc/expr.n
@@ -82,9 +82,9 @@ produces the value on the right side.
.PP
.CS
.ta 9c
-\fBexpr\fR 3.1 + $a \fI6.1\fR
-\fBexpr\fR 2 + "$a.$b" \fI5.6\fR
-\fBexpr\fR 4*[llength "6 2"] \fI8\fR
+\fBexpr\fR {3.1 + $a} \fI6.1\fR
+\fBexpr\fR {2 + "$a.$b"} \fI5.6\fR
+\fBexpr\fR {4*[llength "6 2"]} \fI8\fR
\fBexpr\fR {{word one} < "word $a"} \fI0\fR
.CE
.PP
@@ -268,7 +268,7 @@ which means that operands are not evaluated if they are
not needed to determine the outcome. For example, in
.PP
.CS
-\fBexpr\fR {$v ? [a] : [b]}
+\fBexpr\fR {$v?[a]:[b]}
.CE
.PP
only one of \fB[a]\fR or \fB[b]\fR is evaluated,
@@ -508,4 +508,5 @@ Copyright \(co 2005 by Kevin B. Kenny <kennykb@acm.org>. All rights reserved.
.fi
'\" Local Variables:
'\" mode: nroff
+'\" fill-column: 78
'\" End: