From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22907 invoked by alias); 21 Jun 2018 11:41:49 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43083 Received: (qmail 14447 invoked by uid 1010); 21 Jun 2018 11:41:48 -0000 X-Qmail-Scanner-Diagnostics: from rcpt-expgw.biglobe.ne.jp by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(133.208.98.1):SA:0(-2.6/5.0):. Processed in 1.910645 secs); 21 Jun 2018 11:41:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: takimoto-j@kba.biglobe.ne.jp X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Biglobe-Sender: From: Jun T Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH] new function to complete names of running process (and three example usage) Date: Thu, 21 Jun 2018 20:41:43 +0900 References: <40B3D22E-DAC5-4FC9-BFA6-2E9CEDA4AAA2@kba.biglobe.ne.jp> <8583E32C-BB6B-4136-AAC3-9F95C266C930@dana.is> To: zsh-workers@zsh.org In-Reply-To: <8583E32C-BB6B-4136-AAC3-9F95C266C930@dana.is> Message-Id: <7711BBF6-596B-47F6-8565-596878C0BB4E@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3273) X-Biglobe-Spnum: 54597 > 2018/06/21 11:23=E3=80=81dana =E3=81=AE=E3=83=A1=E3=83=BC=E3= =83=AB: >=20 > 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.