Closed danfe closed 2 years ago
pgrep -l start-hello
returns empty output on helloSystem.
Fixed by commit 1274919ef786285bbdcf14329413d7545e68e433
That's because it's not part of the process name (/bin/sh
) but its arguments. For that you'd need to use -f
switch. From man pgrep(1)
:
-f Match against full argument lists. The default is to match against process names.
Committed fix is ugly, and now requires two pipes while it can use none.
Results would contain the
grep(1)
line itself (with arguments), so this construct will always find what's being searched. Also, there's needless use of pipe. Consider the following patch:Now the probe correctly detects my IceWM instead of bogusly reporting that I run helloSystem DE.