set -e v=$(! printf "%d" 4wrong 2>/dev/null) [ "$v" = "4" ]