From: Jun T <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] new function to complete names of running process (and three example usage)
Date: Thu, 21 Jun 2018 20:41:43 +0900 [thread overview]
Message-ID: <7711BBF6-596B-47F6-8565-596878C0BB4E@kba.biglobe.ne.jp> (raw)
In-Reply-To: <8583E32C-BB6B-4136-AAC3-9F95C266C930@dana.is>
> 2018/06/21 11:23、dana <dana@dana.is>のメール:
>
> 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.
next prev parent reply other threads:[~2018-06-21 11:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-20 12:30 Jun T
2018-06-21 2:23 ` dana
2018-06-21 11:41 ` Jun T [this message]
2018-06-21 13:46 ` dana
2018-06-22 12:11 ` Jun T
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7711BBF6-596B-47F6-8565-596878C0BB4E@kba.biglobe.ne.jp \
--to=takimoto-j@kba.biglobe.ne.jp \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).