pgrep on a Ubuntu 19.10 matches on a cmd line of about 10000 characters just fine, but the same version (see below) of pgrep on Debian 10 (buster) greps only on the first 4096 characters.
Is there a way to make the Debian version match on the whole cmd line or would this require recompilation?
$ pgrep --version
pgrep from procps-ng 3.3.15
Update 'ps -ef' does not have the 4096 char limit.
pgrep
- the limit comes from/proc/<pid>/cmdline
. – muru Mar 03 '20 at 02:38pgrep
: https://gitlab.com/procps-ng/procps/-/commit/f9e56d3c667513d96b798340f7b7c1b40096f084 – muru Mar 03 '20 at 02:44