sorry .... so that a=`expr $a = 1` would work in general it is the stdout of the command in back quotes John