Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#99095: Process completion for gdb
- X-seq: zsh-workers 14619
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#99095: Process completion for gdb
- Date: Thu, 31 May 2001 17:26:33 +0200 (MET DST)
- In-reply-to: <20010531100751.A13076@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author