> You'd be right because the original version is wrong (unless OP > *wants* lexicographic comparison and just didn't say so). > % joe(){ [[ $1 > 4 ]] && echo big || echo small } ohh ... indeed :) thanks marc