I knew I can do arr=(*.log) to get all *.log files into arr. But when I try extglob with more complex pattern it seems fail:
arr=(*.log)
$ shopt -s nullglob