No, that's actually not what the asterisk means in this case. The construct is...
...where [tt]X[/tt] is any character or pattern. The "star parenthesis" means match zero or more occurances of this pattern. The
means we're matching only numeric characters.
Say you had files in a directory with the following names "A", "AA", "AAA", and a bunch of other files. If you types the following...
...it would only list "A", "AA", "AAA". If you typed...
...it would only list files that had all numeric names. If you used the following...
...it would match files "go", "gogo", "gogogo", and so forth.
The reason there's another
in front of it for the match we're trying is because the [tt]*()[/tt] means "zero or more occurances of this pattern". Since it will also match zero occurances of the pattern, we just prepend it with another numeric character pattern to make it "one or more occurances". So, the pattern...
...means match one numeric character, plus zero or more numeric characters.
If it were a normal asterisk wild card, it would match ANY character and something like "23skd00" would match too, which is not what we want here.
Actually, a better way to do it would have been...
Code:
[[ $VAR = +([0-9]) ]] && print "VAR is an Integer"
...where the [tt]+()[/tt] means match "one or more occurances of the patter".
Hope this helps.