From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12559 invoked from network); 1 Feb 2001 16:54:18 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 1 Feb 2001 16:54:18 -0000 Received: (qmail 16558 invoked by alias); 1 Feb 2001 16:54:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13425 Received: (qmail 16547 invoked from network); 1 Feb 2001 16:54:11 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "Bart Schaefer" , Subject: RE: Somebody with gcc knowledge here? (Was: termcap moodule problem on Cygwin ) Date: Thu, 1 Feb 2001 19:54:08 +0300 Message-ID: <002701c08c6f$9804e510$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <1010201163948.ZM5182@candle.brasslantern.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > On Feb 1, 8:55am, Andrej Borsenkow wrote: > } Subject: RE: Somebody with gcc knowledge here? (Was: termcap moodule prob > } > } > What you actually want here is > } > > } > case "$all_subdirs " in > } > *" $lastsub "* ) ;; > } > } Or do I miss something? > > You miss the significance of whitespace. Look closely at the `case' > line. Adding a trailing space there means you can always match a > trailing space in the pattern line, so you only need one pattern. > > -- Erm. This won't match "bla-bla-bla $lastsub" case (when $lastsub is the last one). You are right, trailing space is significant. For this reason two patterns - *" $lastsub" and *" $lastsub "*. Or I must go home today :-) -andrej