This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit b483f3597aeb7a07f873bd36ac7ac7982ccf0b36 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Jul 5 10:59:46 2018 +0000 Add "..." when using variables that may contain spaces git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1835121 13f79535-47bb-0310-9956-ffa450edef68 --- bin/setclasspath.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/setclasspath.sh b/bin/setclasspath.sh index 9960bd1..ec2b85c 100755 --- a/bin/setclasspath.sh +++ b/bin/setclasspath.sh @@ -34,8 +34,8 @@ if [ -z "$JAVA_HOME" ] && [ -z "$JRE_HOME" ]; then 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org