#!/bin/csh @ cows = 4 - 3 + 1 echo $cows
This simple csh script when run produces \"0\" for output when I\'d expect \"2\".
~root:
The + and - operators are right-associative in csh. This means that '4 - 3 + 1' is evaluated as '4 - (3 + 1)'.