ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10695] New: - Startup error when running ant from a directory whose name contains spaces
Date Thu, 11 Jul 2002 14:31:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10695>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10695

Startup error when running ant from a directory whose name contains spaces

           Summary: Startup error when running ant from a directory whose
                    name contains spaces
           Product: Ant
           Version: 1.5
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Wrapper scripts
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: mmchenry@carnegielearning.com


lines 49 and 69 of the 'ant' sh script are:

  saveddir=`pwd`
  cd $saveddir

This 'cd' command fails if ant is run from a directory whose name contains spaces:

% pwd
/private/tmp/foo bar
% ant
/usr/local/bin/ant: cd: string not in pwd: /tmp/foo [69]

Line 69 should instead read:

  cd "$saveddir"

Note that this bug does not manifest itself all the time, as lines 36-70 are
only reached if the user has not defined $ANT_HOME.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message