aboutsummaryrefslogtreecommitdiff
path: root/tests/jim.test
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2021-01-02 14:11:46 +1000
committerSteve Bennett <steveb@workware.net.au>2021-03-09 22:08:04 +1000
commit1843b79a03dde71e361ade45e577e6ef4e52cfe5 (patch)
tree9b551fe6c81d6f261b3a107a7e794f2ea5e3284f /tests/jim.test
parent5fed880195c92cc4d70cd960a116d4130f1a37f4 (diff)
downloadjimtcl-1843b79a03dde71e361ade45e577e6ef4e52cfe5.zip
jimtcl-1843b79a03dde71e361ade45e577e6ef4e52cfe5.tar.gz
jimtcl-1843b79a03dde71e361ade45e577e6ef4e52cfe5.tar.bz2
expr: TIP 526, only support a single arg
Avoid unexpected issues by concatenating multiple arguments. This does create an incompatibility with early versions, but it is generally trivial to convert existing code to one of two forms: 1. expr {$a + $b} -- usually correct 2. expr "$a + $b" -- usually incorrect Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/jim.test')
-rw-r--r--tests/jim.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/jim.test b/tests/jim.test
index 3c0f953..b2a9337 100644
--- a/tests/jim.test
+++ b/tests/jim.test
@@ -1976,7 +1976,7 @@ test foreach-6.1 {noncompiled foreach and shared variable or value list objects
catch {unset x}
foreach {12.0} {a b c} {
set x 12.0
- set x [expr $x + 1]
+ set x [expr {$x + 1}]
}
set x
} 13.0