6816 shaares
The bash manual states:
case word in [ [(] pattern [ | pattern ] ... ) list ;; ] ... esac
Each pattern examined is expanded using tilde expansion, parameter and variable expansion, arithmetic substitution, command substitution, and process substitution.