Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 64713 invoked from network); 26 Mar 2009 11:46:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Mar 2009 11:46:25 -0000 Received: (qmail 19989 invoked by uid 500); 26 Mar 2009 11:46:25 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 19958 invoked by uid 500); 26 Mar 2009 11:46:25 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 19949 invoked by uid 99); 26 Mar 2009 11:46:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 11:46:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 11:46:18 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0877F2388962; Thu, 26 Mar 2009 11:45:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r758603 - /db/derby/code/trunk/bin/dblook Date: Thu, 26 Mar 2009 11:45:56 -0000 To: derby-commits@db.apache.org From: kahatlen@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090326114558.0877F2388962@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 "$@"