From f563831080ee9f9988ab604fb1a09062dfb7e07c Mon Sep 17 00:00:00 2001 From: Diane Holt Date: Mon, 8 Apr 2002 00:10:40 +0000 Subject: [PATCH] Fix DIRLIBS to allow for space (iow, more quoting crud -- gack!) (PR 5178) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272276 13f79535-47bb-0310-9956-ffa450edef68 --- src/script/ant | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/script/ant b/src/script/ant index b79123dfe..00cb3e2b4 100644 --- a/src/script/ant +++ b/src/script/ant @@ -85,12 +85,12 @@ if [ -n "$CLASSPATH" ] ; then fi # add in the dependency .jar files -DIRLIBS=${ANT_HOME}/lib/*.jar -for i in ${DIRLIBS} +DIRLIBS="${ANT_HOME}"/lib +for i in "${DIRLIBS}"/*.jar do # if the directory is empty, then it will return the input string # this is stupid, so case for it - if [ "$i" != "${DIRLIBS}" ] ; then + if [ "$i" != "${DIRLIBS}/*.jar" ] ; then if [ -z "$LOCALCLASSPATH" ] ; then LOCALCLASSPATH=$i else