Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] new function to complete names of running process (and three example usage)



> 2018/06/21 11:23、dana <dana@xxxxxxx>のメール:
> 
> Solaris ps doesn't support BSD-style options (it needs -o rather than o), but if
> you account for that it should work as intended there.

Thanks. Do you know 'ps -o comm' truncates the name or not?

> For example, it's tempting to have
> pgrep/pkill use it, but on Linux they specifically *want* that truncated 'comm'
> name

Yes, I've noticed this, but I intended to use _process_names only with the
three commands at least for now, because _pgrep, _pidof and _killall all seem to
have their own tweaks.

But I've just found that killall on FreeBSD requires the truncated process names.
Probably better to add an option to _process_names to truncate the name and use
it from _killall.



Messages sorted by: Reverse Date, Date, Thread, Author