#!/bin/csh @ cows = 4 - 3 + 1 echo $cows
This simple csh script when run produces \"0\" for output when I\'d expect \"2\".
~root:
While you are expecting the operators to be left associative, they are right associative in csh, so it's evaluated as 4-(3+1)
4-(3+1)
- / \ / \ 4 + / \ 3 1