M
Mark Harris
Guest
I have now a general understanding of how the case statement works, but I'm wondering if there is a special meaning in the punctuation, I guess we would call it, in the following example from Pro Bash Programming:
case $1 in
*[!0-9]*) false;;
*) true ;;
esac
I get that the latter *) (before true) means the default, but is there a special meaning to surrounding [!0-9] (not a digit) with asterisks?
case $1 in
*[!0-9]*) false;;
*) true ;;
esac
I get that the latter *) (before true) means the default, but is there a special meaning to surrounding [!0-9] (not a digit) with asterisks?