I cannot get pkg to use case sensitve matching as is documented in pkg.conf(5):
After changing CASE_SENSITIVE_MATCH to YES:
However, then I get:
Expected*:
That is, expecting the same result as:
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
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