Return-Path: Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Delivered-To: mailing list dev@ant.apache.org Received: (qmail 18673 invoked by uid 500); 18 Feb 2003 14:35:18 -0000 Received: (qmail 18670 invoked from network); 18 Feb 2003 14:35:18 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 18 Feb 2003 14:35:18 -0000 Received: (qmail 33777 invoked by uid 1142); 18 Feb 2003 14:35:17 -0000 Date: 18 Feb 2003 14:35:17 -0000 Message-ID: <20030218143517.33776.qmail@icarus.apache.org> From: conor@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/script ant X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N conor 2003/02/18 06:35:17 Modified: src/script Tag: ANT_15_BRANCH ant Log: Handle case when ANT_HOME is not set and ANt lives in a dir with spaces PR: 15012 Submitted by: Scott Howlett Revision Changes Path No revision No revision 1.19.2.13 +2 -1 ant/src/script/ant Index: ant =================================================================== RCS file: /home/cvs/ant/src/script/ant,v retrieving revision 1.19.2.12 retrieving revision 1.19.2.13 diff -u -w -u -r1.19.2.12 -r1.19.2.13 --- ant 2 Feb 2003 11:50:29 -0000 1.19.2.12 +++ ant 18 Feb 2003 14:35:17 -0000 1.19.2.13 @@ -49,7 +49,8 @@ saveddir=`pwd` # need this for relative symlinks - cd `dirname "$PRG"` + dirname_prg=`dirname "$PRG"` + cd "$dirname_prg" while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"`