Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: pid completion from gdb
- X-seq: zsh-workers 35528
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: pid completion from gdb
- Date: Fri, 19 Jun 2015 16:57:28 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1434725849; bh=+M3ZNmcoFPnL2cBHLUGs61c1QvGR7jDJSzensAV+u0w=; h=From:To:Subject:Date:From:Subject; b=LTLERyU3zD8v1G+YMj7JDtIyhY7WjpO6Rf4ucr4ZXPpC2mZeohXEljagPRaR0ZslZ/aKHDEYuYYAVxXivJxpiIBZUWcQg+/gzRQMxcfro/guWnEkjIQz1RixE9oQ6uE7xL5iso/Uh+2uTcz8o1J1ckAuWWxHCXWaIbsLzGa0CkBg98uzMa3j093qdp3CPt1jWrBoIXfyIyRxDx/9UrjhXH+16rMn+Xfl4P3X6OdoLNdlFJ9nW/1t8LD2QklWlXIG8Bxs0bk9tHygWCpe1Uq1iY96M2eFWtuhxpgS5gMdhkto0uCIC+PjkNQemFbmDup3mw04OAE10Vc9K0QnEbH89g==
- 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
Completion of pids is not working correctly after gdb's --pid= option.
This is in the case where it uses compadd -U, it doesn't allow for
IPREFIX. I'm not sure what the reason for compadd not doing this itself
would be.
Oliver
diff --git a/Completion/Unix/Type/_pids b/Completion/Unix/Type/_pids
index cf90005..dd8ef44 100644
--- a/Completion/Unix/Type/_pids
+++ b/Completion/Unix/Type/_pids
@@ -15,7 +15,7 @@ elif [[ "$PREFIX$SUFFIX" = ([%-]*|[0-9]#) ]]; then
all=()
match="(*[[:blank:]]|)${PREFIX}[0-9]#${SUFFIX}[[:blank:]]*"
else
- all=(-U)
+ all=(-P "$IPREFIX" -S "$ISUFFIX" -U)
match="*[[:blank:]]*[[/[:blank:]]$PREFIX*$SUFFIX*"
nm="$compstate[nmatches]"
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author