Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: gdb corefile completion [was Re: Bug#99095: Process completion for gdb]
- X-seq: zsh-workers 14635
- From: Clint Adams <clint@xxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: PATCH: gdb corefile completion [was Re: Bug#99095: Process completion for gdb]
- Date: Fri, 1 Jun 2001 08:13:32 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <200106010730.JAA12419@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>; from wischnow@xxxxxxxxxxxxxxxxxxxxxxx on Fri, Jun 01, 2001 at 09:30:36AM +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010531135843.A16416@xxxxxxxx> <200106010730.JAA12419@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
> So, I would be happy if you choose to change the call to _files, and
> since noone complained that that would break core file completion on
> their system...
Well, here it is.
Index: Completion/Unix/Command/_gdb
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_gdb,v
retrieving revision 1.1
diff -u -r1.1 _gdb
--- Completion/Unix/Command/_gdb 2001/04/02 11:51:19 1.1
+++ Completion/Unix/Command/_gdb 2001/06/01 12:11:27
@@ -47,7 +47,7 @@
done
if [[ $#w -gt 1 ]]; then
- _alternative 'files:: _files' "processes:: _pids -m ${w[1]:t}"
+ _alternative "files:: _files -g '*core'" "processes:: _pids -m ${w[1]:t}"
else
_description files expl executable
_files "$expl[@]" -g '*(-*)'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author