From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-users@sunsite.auc.dk
Subject: Re: how does setopt -m work?
Date: Thu, 11 Mar 1999 09:32:56 +0100 (MET) [thread overview]
Message-ID: <199903110832.JAA17980@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: mason@primenet.com.au's message of 11 Mar 1999 01:48:29 GMT
mason@primenet.com.au wrote:
> Sweth Chandramouli <sweth@astaroth.nit.gwu.edu> typed:
> : the subject pretty much says it all; what am i missing
> :here:
> :(astaroth/2)~: setopt -m "auto_r*"
> :(astaroth/3)~: setopt
> :interactive
> :monitor
> :norcs
> :shinstdin
> :zle
>
> It's probably a bug that it doesn't rip out the underscores when
> doing its matching. ``setopt -m "autor*"'' will work. The other
> thing to check would be case sensitivity.
Maybe, yes.
Bye
Sven
--- os/options.c Mon Mar 8 09:06:26 1999
+++ Src/options.c Thu Mar 11 09:29:20 1999
@@ -522,11 +522,20 @@
/* Globbing option (-m) set. */
while (*args) {
Comp com;
+ char *s, *t;
+
+ t = p = dupstring(*args);
+ while (*t)
+ if (*t == '_')
+ chuck(t);
+ else {
+ *t = tulower(*t);
+ t++;
+ }
/* Expand the current arg. */
- tokenize(*args);
- if (!(com = parsereg(*args))) {
- untokenize(*args);
+ tokenize(s);
+ if (!(com = parsereg(s))) {
zwarnnam(nam, "bad pattern: %s", *args, 0);
continue;
}
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-03-11 8:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-11 8:32 Sven Wischnowsky [this message]
1999-03-11 15:49 ` Bart Schaefer
-- strict thread matches above, loose matches on Subject: below --
1999-03-11 15:58 Sven Wischnowsky
1999-03-10 22:23 Sweth Chandramouli
1999-03-11 1:48 ` Geoff Wing
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=199903110832.JAA17980@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-users@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).