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

--only and filtering by keywords do not work toghether #117

Closed
TonioGela opened this issue Feb 6, 2021 · 2 comments
Closed

--only and filtering by keywords do not work toghether #117

TonioGela opened this issue Feb 6, 2021 · 2 comments
Assignees

Comments

@TonioGela
Copy link

TonioGela commented Feb 6, 2021

Hello,
using version 0.11.3 (from Homebrew on MacOSX Catalina 10.15.7) I can currently filter output using both --only and a keyword but just indipendently.

To clarify the issue I get these outputs for these commands:

procs launchd or procs -- launchd:

                 │     [%] [%]          │
 510   toniogela │     0.0 0.0 00:00:45 │ /System/Library/PrivateFrameworks/AMPDevices.framework/Versions/...
 552   toniogela │     0.0 0.0 00:00:09 │ /System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/...
 11983 toniogela │     0.0 0.0 00:00:06 │ /System/Library/PrivateFrameworks/UniversalAccess.framework/...
 38319 toniogela │     0.0 0.0 00:00:18 │ /System/Library/PrivateFrameworks/AMPLibrary.framework/Versions/...

procs --only pid (pid written in any case):

 PID:▲

 190
 268
 428
 429
 445
 ...

But when I ask procs --only PID -- launchd or procs --only PID launchd or procs launchd --only PID or procs --only PID -- '*launchd*' I just get:

 PID:▲

I tested it with both bash-3.2 and zsh 5.8 (x86_64-apple-darwin19.6.0) (with on-my-zsh) and both Terminal.app and iTerm2 to ensure that this is not a strange globbing issue.

I tested version 0.11.4-pre building it from source on ArchLinux too (Kernel 5.10.5-arch1-1) and the issue persists (testing it with systemd not launchd ofc)

Apart for this tiny issue everything works flawlessly and I love procs 😍
Thanks!

@dalance dalance self-assigned this Feb 6, 2021
@moderation
Copy link

I can confirm this issue running on Linux Xubuntu 21.04 and building from source with cargo build .... It would be great to use procs to be able to return the PIDs for targeted processes like ps --no-header --only pid base

@dalance
Copy link
Owner

dalance commented Oct 19, 2021

Thank you for your report.
I fixed it. Now procs constructs all columns for search, and hide all columns except for the only column.

@dalance dalance closed this as completed Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants