pkill and pgrep: reality check

Walter Webb <[email protected]>
Newsgroups gmane.linux.lfs.general
Message-ID <[email protected]>
While investigating some odd behavior of pkill(1), I discovered
that pkill and pgrep match any name that has the argument as a
substring.

    pgrep e

	outputs a long list of pid's.

    pgrep ""

	outputs all pid's.

I tried pgrep on the oldest distribution I had still running,
Slackware-11.0 (according to Wikipedia, released 2006-10-02).
The result was the same.  It seems too old to be a bug; but
the man page is buggy for not giving a big fat WARNING.
Or am I the only user of pkill?
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.