From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8935 invoked from network); 31 May 2001 14:10:56 -0000 Received: from unknown (HELO sunsite.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 31 May 2001 14:10:56 -0000 Received: (qmail 21833 invoked by alias); 31 May 2001 14:07:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14614 Received: (qmail 21822 invoked from network); 31 May 2001 14:07:51 -0000 Date: Thu, 31 May 2001 10:07:51 -0400 From: Clint Adams To: zsh-workers@sunsite.dk Cc: Matt Zimmerman , 99095-forwarded@bugs.debian.org Subject: Re: Bug#99095: Process completion for gdb Message-ID: <20010531100751.A13076@dman.com> References: <20010528201016.A16176@alcor.net> <20010529104252.B403@dman.com> <20010529134715.R27012@alcor.net> <20010530104751.A28439@dman.com> <20010530204009.C3810@alcor.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010530204009.C3810@alcor.net>; from mdz@debian.org on Wed, May 30, 2001 at 08:40:11PM -0400 > This works for me. In fact, I've set: > > zstyle ':completion:*:complete:*:*:processes' command 'ps ux' > > Since this is usually what I want (and the information from 'ps u' makes it > easier to find the desired process) > > For gdb specifically, this isn't as useful as it might be. Since filenames are > completed as well, the process list will often scroll off the screen when run > from a directory full of source code and object files. Maybe the filename > match should be restricted to '{,*.}core'? 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? > 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.