[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extglob problems in bash

From: Chet Ramey
Subject: Re: extglob problems in bash
Date: Sun, 16 Oct 2005 17:24:32 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)

Enrique Perez-Terron wrote:
> On Sun, 16 Oct 2005 17:10:48 +0200, <address@hidden>
> 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:

Looks like a bug.  I'll take a look.

``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]