Closed arnabadas closed 10 months ago
sfsu
uses regex internally to match strings, allowing it to match within larger strings.
In every single output the string 'sed' appears in either the package name or the binary name.
However, for sfsu v2, I plan to switch to glob, which will be more intuitive for cli users, and will likely get rid of this behaviour.
It is understandable that you are planning to switch to glob and you may not fix it as of now. But it needs to be acknowledged that currently the issue exists.
Kindly check the attached output.txt
file in my original post. There are lots of packages without the word sed
in package name or binary name. Just check the manifest of the first package: 010editor.json. There is no mention of the word sed
anywhere.
This might be a different issue then, because it shouldn't be matching completely unrelated packages like that even using regex.
I'll have a look ASAP and see what's causing this.
This should be fixed after #473. Thanks for raising this issue.
Describe the bug
Irrelevant search results showing up
Steps to To Reproduce
sfsu search -m binary sed
orsfsu search -m both sed
Expected behavior
Only relevant search results should have showed up
scoop search sed
produces this result:Full Output
Both the commands produce the same output output.txt
Version
1.6.3
Additional context
NA