From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9910 invoked from network); 10 Mar 1999 22:25:25 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Mar 1999 22:25:25 -0000 Received: (qmail 5434 invoked by alias); 10 Mar 1999 22:24:22 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2208 Received: (qmail 5427 invoked from network); 10 Mar 1999 22:24:19 -0000 Date: Wed, 10 Mar 1999 17:23:46 -0500 From: Sweth Chandramouli To: ZSH Users Subject: how does setopt -m work? Message-ID: <19990310172346.A25538@astaroth.nit.gwu.edu> Mail-Followup-To: ZSH Users Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i the subject pretty much says it all; what am i missing here: (astaroth/1)~: setopt interactive monitor norcs shinstdin zle (astaroth/2)~: setopt -m "auto_r*" (astaroth/3)~: setopt interactive monitor norcs shinstdin zle (astaroth/4)~: setopt auto_resume (astaroth/5)~: setopt autoresume interactive monitor norcs shinstdin zle -- sweth. -- Sweth Chandramouli IS Coordinator, The George Washington University / (202) 994 - 8521 (V) / (202) 994 - 0458 (F) * From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12743 invoked from network); 11 Mar 1999 01:51:46 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Mar 1999 01:51:46 -0000 Received: (qmail 6015 invoked by alias); 11 Mar 1999 01:50:58 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2209 Received: (qmail 6003 invoked from network); 11 Mar 1999 01:50:55 -0000 To: zsh-users@sunsite.auc.dk Path: mason From: mason@primenet.com.au (Geoff Wing) Newsgroups: lists.zsh.users Subject: Re: how does setopt -m work? Date: 11 Mar 1999 01:48:29 GMT Organization: PrimeNet Computer Consultants Distribution: local Message-ID: References: <19990310172346.A25538@astaroth.nit.gwu.edu> Reply-To: mason@primenet.com.au NNTP-Posting-Host: coral.primenet.com.au X-Trace: coral.primenet.com.au 921116909 12508 203.43.15.2 (11 Mar 1999 01:48:29 GMT) X-Complaints-To: usenet@coral.primenet.com.au NNTP-Posting-Date: 11 Mar 1999 01:48:29 GMT User-Agent: slrn/0.9.5.4 (UNIX) Sweth Chandramouli 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. Regards, -- Geoff Wing Mobile : (Australia) 0412 162 441 Work URL: http://www.primenet.com.au/ Ego URL: http://pobox.com/~gcw/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16672 invoked from network); 11 Mar 1999 08:33:58 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Mar 1999 08:33:58 -0000 Received: (qmail 16352 invoked by alias); 11 Mar 1999 08:33:03 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2211 Received: (qmail 16343 invoked from network); 11 Mar 1999 08:33:02 -0000 Date: Thu, 11 Mar 1999 09:32:56 +0100 (MET) Message-Id: <199903110832.JAA17980@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-users@sunsite.auc.dk In-reply-to: mason@primenet.com.au's message of 11 Mar 1999 01:48:29 GMT Subject: Re: how does setopt -m work? mason@primenet.com.au wrote: > Sweth Chandramouli 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22473 invoked from network); 11 Mar 1999 15:55:34 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Mar 1999 15:55:34 -0000 Received: (qmail 21744 invoked by alias); 11 Mar 1999 15:51:36 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2213 Received: (qmail 21721 invoked from network); 11 Mar 1999 15:51:31 -0000 X-Authentication-Warning: awayteam.zanshin.com: schaefer set sender to schaefer@tiny.zanshin.com using -f From: Bart Schaefer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14055.58882.513014.144480@awayteam.zanshin.com> Date: Thu, 11 Mar 1999 07:49:22 -0800 (PST) To: Sven Wischnowsky Cc: zsh-users@sunsite.auc.dk Subject: Re: how does setopt -m work? In-Reply-To: <199903110832.JAA17980@beta.informatik.hu-berlin.de> References: <199903110832.JAA17980@beta.informatik.hu-berlin.de> X-Mailer: VM 6.68a under Emacs 20.3.5.1 Reply-To: Bart Schaefer Sven Wischnowsky writes: > > > 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); Is this really the whole patch? After applying this, I get ../../zsh-3.1.5/Src/options.c: In function `bin_setopt': ../../zsh-3.1.5/Src/options.c:527: `p' undeclared (first use this function) ../../zsh-3.1.5/Src/options.c:527: (Each undeclared identifier is reported only once ../../zsh-3.1.5/Src/options.c:527: for each function it appears in.) ../../zsh-3.1.5/Src/options.c:525: warning: `s' might be used uninitialized in this function ../../zsh-3.1.5/Src/options.c:525: warning: `t' might be used uninitialized in this function > + 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; > } From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22568 invoked from network); 11 Mar 1999 16:00:56 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Mar 1999 16:00:56 -0000 Received: (qmail 23150 invoked by alias); 11 Mar 1999 15:58:51 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2215 Received: (qmail 23143 invoked from network); 11 Mar 1999 15:58:49 -0000 Date: Thu, 11 Mar 1999 16:58:47 +0100 (MET) Message-Id: <199903111558.QAA01714@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-users@sunsite.auc.dk In-reply-to: Bart Schaefer's message of Thu, 11 Mar 1999 07:49:22 -0800 (PST) Subject: Re: how does setopt -m work? Bart Schaefer wrote: > Is this really the whole patch? After applying this, I get > > ../../zsh-3.1.5/Src/options.c: In function `bin_setopt': > ../../zsh-3.1.5/Src/options.c:527: `p' undeclared (first use this function) > ../../zsh-3.1.5/Src/options.c:527: (Each undeclared identifier is reported only once > ../../zsh-3.1.5/Src/options.c:527: for each function it appears in.) > ../../zsh-3.1.5/Src/options.c:525: warning: `s' might be used uninitialized in this function > ../../zsh-3.1.5/Src/options.c:525: warning: `t' might be used uninitialized in this function Seems I sent the patch I made while waiting for the compiler... and not the one I made after I fixed the above. Pardon. Bye Sven --- os/options.c Thu Mar 11 16:56:36 1999 +++ Src/options.c Thu Mar 11 16:56:26 1999 @@ -524,7 +524,7 @@ Comp com; char *s, *t; - t = p = dupstring(*args); + t = s = dupstring(*args); while (*t) if (*t == '_') chuck(t); -- Sven Wischnowsky wischnow@informatik.hu-berlin.de