pkg - CASE_SENSITIVE_MATCH does not work?

I cannot get pkg to use case sensitve matching as is documented in pkg.conf(5):
Code:
OPTIONS
       The following options can be defined in pkg.conf:
   [...]
   CASE_SENSITIVE_MATCH: boolean
		    Match package names	or regular expressions	given  on  the
		    command line against values	in the database	in a case sen-
		    sitive way.	 Default: NO.

After changing CASE_SENSITIVE_MATCH to YES:
Code:
[1-0] # grep 'CASE_SENSITIVE_MATCH' /usr/local/etc/pkg.conf
CASE_SENSITIVE_MATCH = YES;
[2-0] # pkg -vv | grep CASE_SENSITIVE_MATCH
CASE_SENSITIVE_MATCH = true;
[3-0] #

However, then I get:
Rich (BB code):
[3-0] # pkg search Gsed
gsed-4.9                       GNU stream editor

Expected*:
Code:
[4-0] # pkg search Gsed
[5->1<] # echo $?
1

That is, expecting the same result as:
Code:
[13-0] # pkg search -C Gsed
[14->1<] # echo $?
1

Can anyone confirm this behavior?

Or tell me what I should use in a config setting to enable the case-sensitive matching so that it does work?

___
* reproducible with pkg v 2.2.2 and v 2.3.0 and other packages I'm searching for, as well as using pkg-rquery(8), pkg-query(8) etc.
Edit: we're now at pkg v 2.3.1
 
grepping the source tells me that the conf bool value is never used
only the -C arg
Thanks, tried looking for it and couldn't find it also. I did find libpkg/pkgdb.c L1267-L1272:
Code:
/* By default, MATCH_EXACT and MATCH_REGEX are case sensitive.  This
 * is modified in many actions according to the value of
 * CASE_SENSITIVE_MATCH in pkg.conf and then possbily reset again in
 * pkg search et al according to command line flags */

static bool _case_sensitive_flag = false;
However, I couldn't find any point where the .conf setting was used, or find any point where that seems to be taking into account. With various DEBUG level settings I wasn't able to find any hint either.

Other settings like ABI, OSVERSION work just fine though.
 
Back
Top