bug-bash
[Top][All Lists]
Advanced

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

Re: extglobs in case constructs


From: Martin von Gagern
Subject: Re: extglobs in case constructs
Date: Thu, 01 Oct 2009 17:15:18 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090827)

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.


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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