On 2/26/15 2:37 PM, [email protected] 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 [email protected] http://cnswww.cns.cwru.edu/~chet/