Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: Somebody with gcc knowledge here? (Was: termcap moodule problem on Cygwin )



> 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