Hello Lucas,

Lucas Gonze wrote:
> 
> that is a far cleaner approach than mine.  We should use it.
> 
> But I see that your version of cygwin lists ostype as "CYGWIN_NT-5.0", while 
> my
> version cygwin on win98 lists ostype as "cygwin".  So that is a secondary bug.

Yes, that's a bug.  It also could be your version of Cygwin is older. 
What version are you running?

> I don't know shell syntax to match both of those expressions.  In java this 
> would be:
> if( ostype.toLowerCase().indexOf("cygwin") == 0 ) {...}
> 
> suggestions?

Try changing the line near the top from:
  CYGWIN*) cygwin=true ;;
to:
  CYGWIN*|cygwin*) cygwin=true ;;

-Bill

Reply via email to