Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option -l and -e doesn't works both when searching multiple packages #2152

Closed
WiVi71 opened this issue Nov 10, 2020 · 3 comments
Closed

Option -l and -e doesn't works both when searching multiple packages #2152

WiVi71 opened this issue Nov 10, 2020 · 3 comments

Comments

@WiVi71
Copy link

WiVi71 commented Nov 10, 2020

What is Expected?

choco search -l supports multiple package search, for example:

C:\windows\system32>choco search gawk curl -l
Chocolatey v0.10.15
curl 7.68.0
gawk 5.1.0
2 packages installed.

but this command searches package contains the searching filter

C:\windows\system32>choco search chocolatey -l
Chocolatey v0.10.15
chocolatey 0.10.15
chocolatey-core.extension 1.3.5.1
chocolatey-dotnetfx.extension 1.0.1
deepl 1.14.1
dotnetfx 4.8.0.20190930
yarn 1.22.5
6 packages installed.

to avoid this, -e is required.

C:\windows\system32>choco search chocolatey -l -e
Chocolatey v0.10.15
chocolatey 0.10.15
1 packages installed.

but it seems that -e does not works with -al when searching multiple packages

C:\windows\system32>choco search chocolatey awk -l -e
Chocolatey v0.10.15
0 packages installed.

Did you know Pro / Business automatically syncs with Programs and
 Features? Learn more about Package Synchronizer at
 https://chocolatey.org/compare

If there are hundreds of packages installed with choco, checking if the package is installed with choco list -al will be slow, so I think this should work properly.

How Did You Get This To Happen? (Steps to Reproduce)

choco serach curl jq -l -- works well
choco serach jq -l -e -- works well
choco serach curl -l -e -- works well
choco serach curl jq -l -e -- not works

Output Log

Full Log Output

C:\windows\system32>choco search chocolatey awk -l -e -v
Chocolatey v0.10.15
0 packages installed.

@WiVi71 WiVi71 changed the title Option -al and -e doesn't works both when searching multiple packages Option -l and -e doesn't works both when searching multiple packages Nov 13, 2020
@ferventcoder
Copy link
Member

Howdy - I found a very similar issue in #2153. I believe this is resolved by the beta version of choco available - choco upgrade chocolatey --pre.

@ferventcoder
Copy link
Member

I'm going to mark this as a duplicate for now, but let me know if it needs to be reopened and assessed separately. Thanks in advance!

@ferventcoder
Copy link
Member

Duplicate of #1843

@ferventcoder ferventcoder marked this as a duplicate of #1843 Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants