diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-30 13:27:52 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-30 13:27:52 (GMT) |
commit | 076a7e2839881c03d0a98a8fc50823aef42ad79a (patch) | |
tree | 26698b0ef5c437526bbf0b1f88222dd4a0275d2a /doc | |
parent | 9efaa4d7f1aeb58c52fe41c62713b568a0833948 (diff) | |
download | tcl-076a7e2839881c03d0a98a8fc50823aef42ad79a.zip tcl-076a7e2839881c03d0a98a8fc50823aef42ad79a.tar.gz tcl-076a7e2839881c03d0a98a8fc50823aef42ad79a.tar.bz2 |
Add "{}" around many "expr" commands in testcases. Also in doc/expr.n
Diffstat (limited to 'doc')
-rw-r--r-- | doc/expr.n | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -107,9 +107,9 @@ will produce the value on the right side of the line: .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 .SS OPERATORS @@ -246,7 +246,7 @@ just as in C, which means that operands are not evaluated if they are not needed to determine the outcome. For example, in the command .PP .CS -\fBexpr\fR {$v ? [a] : [b]} +\fBexpr\fR {$v?[a]:[b]} .CE .PP only one of @@ -496,4 +496,5 @@ Copyright (c) 2005 by Kevin B. Kenny <kennykb@acm.org>. All rights reserved. .fi '\" Local Variables: '\" mode: nroff +'\" fill-column: 78 '\" End: |