tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pgrep -x broken
On Sat, Jan 20, 2018 at 01:33:32AM +0100, Kamil Rytarowski wrote:
> On 19.01.2018 21:24, Michael van Elst wrote:
> > netbsd%precedence.co.uk@localhost (Stephen Borrill) writes:
> >
> >> 1) Revert above and always use p_comm (and note in man page)
> >> 2) Use p_comm only if -x flag given:
> >> 3) Chop off at last /:
> >
> >> I favour 1), any dissent before I commit?
> >
> > Since pgrep -f matches also arguments, the default should probably be
> > to use argv[0], except for -x where you want p_comm.
> >
>
> While there, is it worth to add an alias for "pkill -x": killall?
killall is ambigous, it used to be a shutdown operation and should better
be avoided.
Greetings,
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index