From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: compadd end-of-options
Date: Fri, 19 Feb 1999 10:23:14 +0100 (MET) [thread overview]
Message-ID: <199902190923.KAA09591@beta.informatik.hu-berlin.de> (raw)
The patch below makes `compadd' accept both `--' and `-' as a marker for
the end-of-options, the way `print' and `echo' behave (I hadn't
noticed that they accept a single hyphen for that).
Bye
Sven
--- os/Zle/compctl.c Mon Feb 15 12:51:55 1999
+++ Src/Zle/compctl.c Fri Feb 19 10:17:31 1999
@@ -1685,6 +1685,10 @@
return 1;
}
for (; *argv && **argv == '-'; argv++) {
+ if (!(*argv)[1]) {
+ argv++;
+ break;
+ }
for (p = *argv + 1; *p; p++) {
sp = NULL;
dm = 0;
--- od/Zsh/compwid.yo Tue Feb 16 15:02:19 1999
+++ Doc/Zsh/compwid.yo Fri Feb 19 10:22:32 1999
@@ -300,7 +300,7 @@
option tt(AUTO_MENU) is set, the completion code will immediatly
switch to menucompletion.
)
-item(tt(--))(
+item(tt(-), tt(--))(
This flag ends the list of flags and options. All arguments after it
will be taken as the words to use as matches even if they begin with
hyphens.
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
reply other threads:[~1999-02-19 9:24 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=199902190923.KAA09591@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.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).