From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10056 invoked from network); 31 May 2001 15:28:16 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 31 May 2001 15:28:16 -0000 Received: (qmail 6612 invoked by alias); 31 May 2001 15:28:08 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14619 Received: (qmail 6601 invoked from network); 31 May 2001 15:28:07 -0000 From: Sven Wischnowsky Date: Thu, 31 May 2001 17:26:33 +0200 (MET DST) Message-Id: <200105311526.RAA12705@beta.informatik.hu-berlin.de> To: zsh-workers@sunsite.dk Subject: Re: Bug#99095: Process completion for gdb In-Reply-To: <20010531100751.A13076@dman.com> Clint Adams wrote: > ... > > We could do this to _gdb > > 50c50 > < _alternative 'files:: _files' "processes:: _pids -m ${w[1]:t}" > --- > > _alternative "core-files:: _files -g '*core'" 'files:: _files' "processes:: _pids -m ${w[1]:t}" > > and then you could set zstyle ':completion:*:complete:gdb:*' tag-order 'processes core-files' > > What do people think? I thought about something like that when I wrote _gdb. The problem is if there is no file matching *core. Then the first would complete all files (or directories), too. And since they may be in different groups, they would be shown twice. Obviously, I didn't find a solution... > > Or perhaps to have some portable and extensible mechanism for selecting > > processes. I would say that at least these should be supported: > > > > - All of a user's processes (ps x, ps -u user), for most uses > > - All of everyone's processes (ps ax, ps -e), for root > > - Some formatting options (ps u, ps -f) for more verbosity > > The problem is accurately determining whether ps is SYSV- or BSD-style or > something else entirely. Indeed. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de