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

PATCH: _gdb: Allow 'core' to occur anywhere in a coredump filename



I use kernel.core_pattern = /var/tmp/core.t.%t.p.%p.u.%u.e.%e so the
*core pattern didn't let me complete any of my coredumps.

It's arguable that we should just allow any files to be completed here.

---
 Completion/Unix/Command/_gdb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Unix/Command/_gdb b/Completion/Unix/Command/_gdb
index f387c87..e9c3339 100644
--- a/Completion/Unix/Command/_gdb
+++ b/Completion/Unix/Command/_gdb
@@ -49,7 +49,7 @@ else
   done
 
   if [[ $#w -gt 1 ]]; then
-    _alternative "files:: _files -g '*core(-.)'" "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 '*(-*)'
-- 
2.4.0



Messages sorted by: Reverse Date, Date, Thread, Author