Re: nocaseglob and RE matching

2019-10-11 Thread Chet Ramey
On 9/23/19 1:38 PM, Grisha Levit wrote: > Currently nocaseglob and nocasematch both control case insensitivity > of RE matching (in lib/sh/smatch.c): > > if (glob_ignore_case || match_ignore_case) > rflags |= REG_ICASE; > > However, the documentation suggests that only nocasematch should ha

nocaseglob and RE matching

2019-09-23 Thread Grisha Levit
Currently nocaseglob and nocasematch both control case insensitivity of RE matching (in lib/sh/smatch.c): if (glob_ignore_case || match_ignore_case) rflags |= REG_ICASE; However, the documentation suggests that only nocasematch should have this effect. I'm guessing this behavior was in bas