Edit: Meh, on looking at the manpage I remembered the argument is a pattern which can make the above very tricky. Alternatively pgrep could really fallback to /proc/_pid_/cmdline on failure or use -f as default.
** Summary changed: - pgrep does not correctly match the input of the user against the process name + pgrep does at default not always match the input of the user against the process name -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1174911 Title: pgrep does at default not always match the input of the user against the process name To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1174911/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs