From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: PATCH: quoting colons
Date: Fri, 23 Mar 2001 11:37:18 +0100 (MET) [thread overview]
Message-ID: <200103231037.LAA08358@beta.informatik.hu-berlin.de> (raw)
Two places where we should check if the colon is quoted, otherwise an
_arguments spec like `-foo\:-[...]:..:(...)' yielded a description of `-1'.
Bye
Sven
Index: Completion/Core/_all_labels
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_all_labels,v
retrieving revision 1.5
diff -u -r1.5 _all_labels
--- Completion/Core/_all_labels 2000/05/31 09:38:26 1.5
+++ Completion/Core/_all_labels 2001/03/23 10:35:15
@@ -27,7 +27,7 @@
while comptags "-A$__prev" "$1" curtag __spec; do
_comp_tags="$_comp_tags $__spec "
- if [[ "$curtag" = *:* ]]; then
+ if [[ "$curtag" = *[^\\]:* ]]; then
zformat -f __descr "${curtag#*:}" "d:$3"
_description "$__gopt" "${curtag%:*}" "$2" "$__descr"
curtag="${curtag%:*}"
Index: Completion/Core/_next_label
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_next_label,v
retrieving revision 1.5
diff -u -r1.5 _next_label
--- Completion/Core/_next_label 2000/05/31 09:38:26 1.5
+++ Completion/Core/_next_label 2001/03/23 10:35:15
@@ -9,7 +9,7 @@
if comptags -A "$1" curtag __spec; then
_comp_tags="$_comp_tags $__spec "
- if [[ "$curtag" = *:* ]]; then
+ if [[ "$curtag" = *[^\\]:* ]]; then
zformat -f __descr "${curtag#*:}" "d:$3"
_description "$__gopt" "${curtag%:*}" "$2" "$__descr"
curtag="${curtag%:*}"
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
reply other threads:[~2001-03-23 10:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200103231037.LAA08358@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).