[Sablevm-developer] Bug#238651: java-sablevm dequotes parameters
Brought to you by:
egagnon
From: Grzegorz B. P. <ga...@de...> - 2004-03-18 20:12:04
|
Hi Ilguiz You're absolutely right, these changes fix the problem (I tested it with some other shell scripts). This will go into 1.1.1-1 upload (hopefuly soon). Thanks a lot, Grzegorz B. Prokopski PS: I think we'd also get similar breakage if we ex. try to use a path for CLASSPATH with spaces in the name, or if we try to set value of a property to something with spaces or special chars... Yes, shell is far from ideal here, but I'll try to test and fix some such problems in the next version. If it's not possible given shell syntax - I guess we're gonna switch to perl, or even better - write a *binary* wrapper (in C). Hmm... that's a nice idea! and not hard to do. any takers? On Thu, 2004-03-18 at 01:51, Ilguiz Latypov wrote: > Package: sablevm > Version: 1.1.0-5 > > The /usr/bin/java-sablevm shell script dequotes parameters submitted by > the user's command line. E.g., running > > java mypackage.MyApp "select * from table" > > will yield only the word "select" in args[1] of the MyApp's main(String > args[]) method. > > I believe the lines > > $echo $JVM -Y $CLASSPATH $OPTS $REST $@ > $exec $JVM -Y $CLASSPATH $OPTS $REST $@ > > can be replaced with > > $echo $JVM -Y $CLASSPATH $OPTS $REST "$@" > $exec $JVM -Y $CLASSPATH $OPTS $REST "$@" > > Also, the line > > EST="$REST $1" > > should probably read > > REST="$REST $1" > > Regards, |