The 'pgrep' is not able to find processes with '+' in name, is that desired behaviur? % pgrep clang++ pgrep: Cannot compile regular expression `clang++' (repetition-operator operand invalid) Regards, vermaden How-To-Repeat: % pgrep clang++
Responsible Changed From-To: freebsd-amd64->freebsd-bugs reclassify.
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Same on latest 11.3-RELEASE. % pgrep clang++ pgrep: Cannot compile regular expression `clang++' (repetition-operator operand invalid)
Yes, that is expected behavior, from pgrep(1) man page: If any pattern operands are specified, they are used as extended regular expressions to match the command name or full argument list of each process. You'll have to escape all characters that have special meaning in regular expressions, e.g.: $ pgrep -lf a\\+\\+ 63750 ./a++
(In reply to Yuri Pankov from comment #4) Pity but at least its documented. Thank You for Your reply. Regards.