Greg Wooledge wrote: > You're using extglobs inside a function, and extglob was enabled > at the time the function was delcared. The parser parsed them at that > time, decided that they are extended globs, and therefore that's what > they are.
Then why don't they work as extended globs if the extglob shopt is set to off at runtime, from within the function, after it has been parsed? > Most people have the opposite problem I know, I understand the reason for this, and I even approve of it, because after all, the use of extended globs is something the person defining the function should worry about, not the person using the function. Sadly, currently both have to worry.
signature.asc
Description: OpenPGP digital signature