[Top][All Lists]

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

Re: Case (in)sensitivity of complete -X patterns?

From: Ville Skyttä
Subject: Re: Case (in)sensitivity of complete -X patterns?
Date: Sat, 18 Sep 2010 13:09:24 +0300
User-agent: KMail/1.13.5 (Linux/; KDE/4.4.5; x86_64; ; )

On Saturday 18 September 2010, Chet Ramey wrote:
> On 9/16/10 2:19 PM, Ville Skyttä wrote:
> > Hello,
> > 
> > I was looking for a way to make complete/compgen -X filter patterns case
> > insensitive, but it seems that the -X patterns are not affected by
> > nocaseglob nor nocasematch, is that correct?
> That's correct.  Those variables are applied at a different place in the
> code.
> > If yes, would it be possible to add something that would accomplish that
> > in future bash releases?
> Sure, I'll take a look for a future release.


One thing IMO worth considering would be "embedded pattern flags" for regexps 
and why not globs while at it (no matter where they're used).  For example at 
least Perl and Python and Java have the (?...) construct for this.

reply via email to

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