2 # replacements for test/[ that do arithmetic expansion on the operands to
3 # the arithmetic operators, like ksh.
10 -lt|-gt|-eq|-ne|-le|-ge) n1=$(( $1 ))
12 builtin test "$n1" $2 "$n3"
14 *) builtin test "$@" ;;
16 *) builtin test "$@" ;;
25 -lt|-gt|-eq|-ne|-le|-ge) n1=$(( $1 ))
27 builtin [ "$n1" $2 "$n3" ]