* On 2011-06-11 at 21:44 BST, Ingo Schwarze wrote:

> Jonathan Perkin wrote on Tue, May 17, 2011 at 11:02:05PM +0100:
> 
> > Add -i to ignore case when matching process name
> 
> It seems nobody picked this up, so i had a look at it.
> 
> NetBSD has that since March 2005 (committed by sketch@).

Right, that's me, I figured it might be useful for OpenBSD too (which
I started using recently).

> FreeBSD copied it from NetBSD a few days later.
> procps.cvs.sourceforge.net (used e.g. in Debian) does not have -i.
> OpenSolaris does not have -i.
> 
> So I'd say we shouldn't add it.
> 
> It is not terribly useful; hopefully, you at least know
> how the processes you are searching for are called.

I don't remember the exact use case I required when I first added it,
but I think it was for a group of similar-named processes where some
where uppercase (but had the same name).

> Even if not, you can use  ps ax | grep -i  to find out,
> then use the exact name you found for pkill.
> Personally, i never felt a need for pkill -i,
> although i'm using pkill a lot.

Well the primary use would be for pgrep (which is where I mainly use
it), to avoid having to do what you typed above, but no problem if you
don't feel it's worth having in OpenBSD.

Cheers,

-- 
Jonathan Perkin       www.perkin.org.uk
github.com/jperkin  twitter.com/jperkin

Reply via email to