Why is this an issue?

Expressions should be enclosed in curly braces to prevent the command parser from performing substitutions on the contents.

How to fix it

Code examples

Noncompliant code example

expr 3 + $fly

Compliant solution

expr {3 + $fly}

Resources

Articles & blog posts