message, instead of the 'value too great for base' message when the user
enters an invalid value such as '1y'. (trunk r12053)
svn path=/main/branches/2.1.6/; revision=12054
read my_input
# failed integer conversions will break a loop unless they're enclosed
# in a subshell.
- echo "${my_input}" | ( declare -i x; read x) && break
+ echo "${my_input}" | ( declare -i x; read x) 2>/dev/null && break
+ echo -n "Value '$my_input' is not valid. Please enter an integer value:" >&2
done
echo ${my_input}
}