Hmm, looks like its a Windows "feature".  Ok, then my patch is:

        if (((String)osEnv.elementAt(j)).startsWith(key)) {

to

        boolean matches = false;
        if (Os.isFamily("windows"))
        {
                matches = (key.length() != 0 && 
((String)osEnv.elementAt(j)).regionMatches(true, 0, key, 0, key.length()));
        }
        else
        {
                matches = ((String)osEnv.elementAt(j)).startsWith(key));
        }
        if (matches) {


> -----Original Message-----
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 17, 2002 2:30 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PATCH] Execute.java
> 
> 
> On Wed, 16 Jan 2002, Brian Deitte <[EMAIL PROTECTED]> wrote:
> > In Execute.java, if you have os and osEnv environment variables with
> > different cases, the osEnv element isn't overriden.
> 
> And this is good, isn't it?  Environment variables on Unix are case
> sensitive.
> 
> Stefan
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to