[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: extglob breaks when it's inside a bash function
From: |
Chet Ramey |
Subject: |
Re: extglob breaks when it's inside a bash function |
Date: |
Thu, 2 Aug 2007 09:23:48 -0400 |
> Machine Type: i486-pc-linux-gnu
>
> Bash Version: 3.2
> Patch Level: 13
> Release Status: release
>
> Description:
>
> when using extglob inside a bash subshell it breaks,
> I tested it with several members in #bash and they have the same problem
This is not a bug. Enabling the `extglob' changes the behavior of the
shell parser, since the interpretation of `(' is modified depending on
context. Since functions are parsed when they're defined, not when
they're executed, enabling the `extglob' option inside the function
will not affect how the function is parsed.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong.
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.case.edu/~chet/