I am trying to use extglob, however, after the man pages I'm confused about how *(patternList) operates. Assume I use the following commands:
touch A Ax Axxx Axxxx Ay X X.bak x xx xxxx ls A*(xx)
Why does this only print A Axxxx. Doesn't Axxx also contain exactly one occurrence of xx? Furthermore, why is Ay not printed since it has 0 occurences of xx?