Hi Raghu,
many thanks for pointing this out to me!
I'll build it in, probably version 1)
I hope I can get back to you for a real life test.
Best wishes,
Oti.
On 5/23/06, Raghuram Devarakonda <draghuram@...> wrote:
> Hi,
>
> I tested this script on a solaris machine and it failed as follows:
>
> # uname -a
> SunOS 5.10 Generic_118822-25 sun4u sparc SUNW,Ultra-60
>
> /tmp# ./t
> CP=3Dinstall.dir/jython.jar
> + [ ! -z ]
> ./t: test: argument expected
>
> The problem seems to be with CLASSPATH exapnding to null. It can be
> fixed in two ways.
>
> 1) put $CLASSPATH in double quotes.
> 2) Have the if statement like
> if [ x"$CLASSPATH" !=3D "x" ]
>
> Thanks,
> Raghu.
>
> On 5/22/06, Oti <ohumbel@...> wrote:
> > Hi,
> >
> > at JavaOne2006 I had the chance to test the new installer on a Solaris =
machine.
> > Thanks to the anonymous guy from Sun who allowed me to plug in my USB s=
tick !
> >
> > The installer worked fine, but the generated start script did not run.
> > It looked like below (line numbers only for reference):
> >
> > 10 #!/bin/sh
> > 20
> > 30 CP=3Dinstall.dir/jython.jar
> > 40 if [ ! -z $CLASSPATH ]
> > 50 then
> > 60 CP=3D$CP:$CLASSPATH
> > 70 fi
> > 80
> > 90 java.home/bin/java -Dpython.home=3D"install.dir" -classpath=3D"$CP"
> > org.python.util.jython "$@"
> >
> > It worked as soon as I commented out the if statement (lines 40 throug =
70).
> >
> > So if there is someone out there with a Solaris machine at hand, I'd
> > appreciate your help on fixing this if statement, so that I can
> > generate a working version during installation.
|