如果模式长度超过 15 个字符,则 pgrep 不返回任何内容。我在手册页中找不到关于最大模式长度的任何内容。
这是一个错误吗?
为了说明的目的,我创建了一个名为 12345678901234567890 的过程
$ pgrep 12345678901234 5367 $ pgrep 123456789012345 5367 $ pgrep 1234567890123456 $
process grep
grep ×1
process ×1