Both expr $a + $b and expr {$a + $b} give the same answer in my scripts, yet every style guide insists on the braced form. I also hit two odd results while converting a timing report: expr {7 / 2} gives 3, and expr {$minutes + 1} fails with an octal error when minutes is 08.
What is the real reason for the braces, and how do I avoid these numeric surprises?




