The name of the is_digit() function was originally taken from the
Standard C library function of the same name. However, that function
checks only a single character, while this function compares all
characters in a string. To avoid confusion, this commit renames the
function to is_digits().
return 0
}
-is_digit() {
+is_digits() {
local str
str="$1"
str="$1"
- if is_alpha "$str" || is_digit "$str"; then
+ if is_alpha "$str" || is_digits "$str"; then
return 0
fi