tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1835121 - /tomcat/trunk/bin/setclasspath.sh
Date Thu, 05 Jul 2018 10:59:46 GMT
Author: markt
Date: Thu Jul  5 10:59:46 2018
New Revision: 1835121

URL: http://svn.apache.org/viewvc?rev=1835121&view=rev
Log:
Add "..." when using variables that may contain spaces

Modified:
    tomcat/trunk/bin/setclasspath.sh

Modified: tomcat/trunk/bin/setclasspath.sh
URL: http://svn.apache.org/viewvc/tomcat/trunk/bin/setclasspath.sh?rev=1835121&r1=1835120&r2=1835121&view=diff
==============================================================================
--- tomcat/trunk/bin/setclasspath.sh (original)
+++ tomcat/trunk/bin/setclasspath.sh Thu Jul  5 10:59:46 2018
@@ -34,8 +34,8 @@ if [ -z "$JAVA_HOME" ] && [ -z "$JRE_HOM
   else
     JAVA_PATH=`which java 2>/dev/null`
     if [ "x$JAVA_PATH" != "x" ]; then
-      JAVA_PATH=`dirname $JAVA_PATH 2>/dev/null`
-      JRE_HOME=`dirname $JAVA_PATH 2>/dev/null`
+      JAVA_PATH=`dirname "$JAVA_PATH" 2>/dev/null`
+      JRE_HOME=`dirname "$JAVA_PATH" 2>/dev/null`
     fi
     if [ "x$JRE_HOME" = "x" ]; then
       # XXX: Should we try other locations?



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message