db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r758603 - /db/derby/code/trunk/bin/dblook
Date Thu, 26 Mar 2009 11:45:56 GMT
Author: kahatlen
Date: Thu Mar 26 11:45:49 2009
New Revision: 758603

URL: http://svn.apache.org/viewvc?rev=758603&view=rev
Log:
DERBY-4117: dblook script fails when URL contains special characters

Make dblook quote its arguments properly before passing them on to the
java command. This prevents problems when the database URL contains
characters which have a special meaning to the shell, for example:

$ ./bin/dblook -d 'jdbc:derby:jar:(demo/databases/toursdb.jar)toursdb'
./bin/dblook[29]: eval: syntax error at line 1: `(' unexpected

Modified:
    db/derby/code/trunk/bin/dblook

Modified: db/derby/code/trunk/bin/dblook
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/bin/dblook?rev=758603&r1=758602&r2=758603&view=diff
==============================================================================
--- db/derby/code/trunk/bin/dblook (original)
+++ db/derby/code/trunk/bin/dblook Thu Mar 26 11:45:49 2009
@@ -25,5 +25,4 @@
 
 . $DERBY_HOME/bin/derby_common.sh
 
-derby_exec_command="exec \"$JAVACMD\" $DERBY_OPTS -classpath \"$LOCALCLASSPATH\" org.apache.derby.tools.dblook
$@"
-eval $derby_exec_command
+exec "$JAVACMD" $DERBY_OPTS -classpath "$LOCALCLASSPATH" org.apache.derby.tools.dblook "$@"



Mime
View raw message