I am using bash version 3.00.16(1)-release on Mac OS X.
The problem is that literal parentheses are not matched correctly when
they are specified inside extglob operators. Normal (non-extended)
patterns are fine:
$ touch foo\(
$ ls foo\(
foo(
But extended globbing doesn't work right:
$ shopt -s extglob
$ ls @(foo\()
ls: @(foo(): No such file or directory
Same error with the other extglob operators ?(), *(), +() and !().
Alistair
_________________________________________________________________