zsh-workers
 help / color / mirror / code / Atom feed
From: dana <dana@dana.is>
To: Jun T <takimoto-j@kba.biglobe.ne.jp>
Cc: zsh-workers@zsh.org
Subject: Re: [PATCH] new function to complete names of running process  (and three example usage)
Date: Wed, 20 Jun 2018 21:23:17 -0500	[thread overview]
Message-ID: <8583E32C-BB6B-4136-AAC3-9F95C266C930@dana.is> (raw)
In-Reply-To: <40B3D22E-DAC5-4FC9-BFA6-2E9CEDA4AAA2@kba.biglobe.ne.jp>

On 20 Jun 2018, at 07:30, Jun T <takimoto-j@kba.biglobe.ne.jp> wrote:
>_process_names completes names of running processes.

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.

btw, this method of getting the process names seems fine for most tools on
macOS, but there might be trouble elsewhere. For example, it's tempting to have
pgrep/pkill use it, but on Linux they specifically *want* that truncated 'comm'
name (unless -f is used). If the function is ever used for other tools it might
need to learn some extra options to control how it gets the names.

On 20 Jun 2018, at 07:30, Jun T <takimoto-j@kba.biglobe.ne.jp> wrote:
>I wrote this for using it from three new completions for macOS-specific commands
>dtruss

dtruss isn't Mac-specific. It was originally written for Solaris, and is also
available on *BSD. It should probably go under Unix i think.

dana


  reply	other threads:[~2018-06-21  2:23 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 [this message]
2018-06-21 11:41   ` Jun T
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=8583E32C-BB6B-4136-AAC3-9F95C266C930@dana.is \
    --to=dana@dana.is \
    --cc=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).