On Sun, 16 Oct 2005 17:10:48 +0200, <[EMAIL PROTECTED]> posted on comp.unix.shell:
I have a problem that I'm trying to solve with the help of extended globbing. It doesn't work, and so I've narrowed down the buggy bit to a simple, illustrative example. I need to match literal parentheses in a globbing pattern. Normally it works OK: $ touch foo\( $ ls foo\( foo( But with extglob operators, I cannot match parentheses. Here is a very simple example: $ shopt -s extglob $ ls @(foo\() -bash: syntax error near unexpected token `('
I get a different result, but still not as I would expect: $ touch foo\( $ ls foo* foo( $ shopt -s extglob $ ls @(foo\() ls: @(foo(): No such file or directory $ ls @(foo*) foo( $ echo $BASH_VERSION 3.00.16(1)-release -Enrique _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash