Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _gdb: Allow 'core' to occur anywhere in a coredump filename
- X-seq: zsh-workers 35477
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: _gdb: Allow 'core' to occur anywhere in a coredump filename
- Date: Tue, 16 Jun 2015 01:40:10 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=SO3FiHFhOesOxrtxeLIR6Kd0eY+0fKybXnUSCXnYViE=; b=oY7pLSQgi0H6nKOkkuuSKm6myCxdm9O+8P/P77Y1F0dFOGZfJtLvYKlWiA/jReVwNZ vd/xyy4zK0F8kI4F2tsL2/EPK24DAz3RknKcgUThPZ2LH7Z4qpX0rHDd3D6678yZTHMP O1jucO35nlQGUdao4xv7AfKTfZs92g+cMRztM2tJr0bxIEaAHvtC5CZ8Jo1wlGeHg1Am b9JciedFrRjoQmeyD2gwDv1wb/ratUKjrodF/YGSuYQtvSTJvky6rSKoeYXy4LT/Y3TH AB8jJKFqfBqkqk3jHHaSz7385ZFeotH/VSSt9e+Yc0d3HTzfcJZl1EQ15tmopIvC2BnM ZRFQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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