Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: gdb corefile completion [was Re: Bug#99095: Process completion for gdb]



> 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