Browse Source

More quotes.

I think it has been Diane who said we could almost put the entire
script into quotes - she's been right.

PR: 9550


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273099 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
4e461155a5
2 changed files with 6 additions and 3 deletions
  1. +3
    -0
      WHATSNEW
  2. +3
    -3
      src/script/ant

+ 3
- 0
WHATSNEW View File

@@ -7,6 +7,9 @@ Fixed bugs:
* The sh wrapper script didn't work under Cygwin if ANT_HOME wasn't * The sh wrapper script didn't work under Cygwin if ANT_HOME wasn't
set with a Unix style filename. set with a Unix style filename.


* The sh wrapper script could fail if you started Ant from a directory
with whitespace in its name.

Other changes: Other changes:
-------------- --------------




+ 3
- 3
src/script/ant View File

@@ -39,8 +39,8 @@ if [ -z "$ANT_HOME" ] ; then
ANT_HOME=/opt/ant ANT_HOME=/opt/ant
fi fi


if [ -d ${HOME}/opt/ant ] ; then
ANT_HOME=${HOME}/opt/ant
if [ -d "${HOME}/opt/ant" ] ; then
ANT_HOME="${HOME}/opt/ant"
fi fi


## resolve links - $0 may be a link to ant's home ## resolve links - $0 may be a link to ant's home
@@ -66,7 +66,7 @@ if [ -z "$ANT_HOME" ] ; then
# make it fully qualified # make it fully qualified
ANT_HOME=`cd "$ANT_HOME" && pwd` ANT_HOME=`cd "$ANT_HOME" && pwd`


cd $saveddir
cd "$saveddir"
fi fi


# For Cygwin, ensure paths are in UNIX format before anything is touched # For Cygwin, ensure paths are in UNIX format before anything is touched


Loading…
Cancel
Save