On 2/26/15 2:37 PM, ad...@ptc.com wrote:

> Bash Version: 4.2
> Patch Level: 47
> Release Status: release
> 
> Description:
>       A bash function containing the syntax "files=( !(PAT) )" fails to parse
>   in a sub-shell when imported from the environment (to which it was exported
>   by the parent shell).
The extended globbing syntax is accepted by the parser when the `extglob'
shell option is enabled.  If you (or some agent) export a function using
that syntax, you will need to make sure that the extglob option is enabled
when it's parsed by the subshell.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to