Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Somebody with gcc knowledge here? (Was: termcap moodule problem on Cygwin )
- X-seq: zsh-workers 13425
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxx>
- Subject: RE: Somebody with gcc knowledge here? (Was: termcap moodule problem on Cygwin )
- Date: Thu, 1 Feb 2001 19:54:08 +0300
- Importance: Normal
- In-reply-to: <1010201163948.ZM5182@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author