Peter,

Yeah the problem is that shell based macro expansion is not working when you
do a simple 'echo $PATH' expression either: the echo takes it literally and
returns it to you since it is not in an interpreted environment (a shell).
You need to fork a shell and have it run the evaluation.  Also the user's
shell must be determined so the user's /etc/passwd entry must be read to get
the default shell.  Getting more involved than I wanted to ...

Even this might not be the shell being used but there is no other way to
determine what stinking shell was running when the runtime was started.

If we don't pick the default shell, the environment variable may not be
present.  Yeah this stuff wreaks pretty bad and is the pits.  That's why
people stay clear of it.  I'll have an update for you as soon as I have it
working properly and tested on a couple of platforms. 

Sorry about that,
Alex

> > Meaning comment out line 52 where the test asserts a non-null for the
> PATH
> > variable.
> 
> I think the actual error is that getUnixVariable("$PAT") is returning
> "$PAT" at line 51. I added some System.out.println 's.
> 
> Regards,
> 
> Peter
> 
> >
> >
> > > -----Original Message-----
> > > From: Alex Karasulu [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, October 29, 2003 12:19 PM
> > > To: 'Avalon Developers List'
> > > Subject: RE: Merlin build
> > >
> > > Interesting because the TestCase can't seem to find a PATH variable in
> > > your
> > > environment when it should.   For the time being try to comment it
> out.  I
> > > will try it on a linux box and get back to you shortly.
> > >
> > > Alex
> > >
> > > > -----Original Message-----
> > > > From: Peter Courcoux [mailto:[EMAIL PROTECTED]
> > > > Sent: Wednesday, October 29, 2003 12:10 PM
> > > > To: Avalon Dev List
> > > > Subject: Merlin build
> > > >
> > > > Hi, Steve, Alex,
> > > >
> > > > The Merlin cvs build I checked out clean last night failed one of
> the
> > > > tests.
> > > >
> > > > Test reports attached.
> > > >
> > > > I think all the environment details are in the reports.
> > > >
> > > > Regards,
> > > >
> > > > Peter
> > > > --
> > > > Peter Courcoux <[EMAIL PROTECTED]>
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> --
> Peter Courcoux <[EMAIL PROTECTED]>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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

Reply via email to