You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@locus.apache.org on 2000/08/10 09:57:53 UTC
cvs commit: jakarta-ant/src/bin antRun
bodewig 00/08/10 00:57:52
Modified: . WHATSNEW
src/bin antRun
Log:
Changed antRun to handle arguments containing spaces properly. Removed
the magic that would invoke dir/command.sh instead of command.
Revision Changes Path
1.15 +4 -0 jakarta-ant/WHATSNEW
Index: WHATSNEW
===================================================================
RCS file: /home/cvs/jakarta-ant/WHATSNEW,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- WHATSNEW 2000/08/09 14:59:06 1.14
+++ WHATSNEW 2000/08/10 07:57:49 1.15
@@ -17,6 +17,10 @@
* <java> and <cvs> have lost some undocumented attributes.
+* the Unix antRun script would search for command.sh in the directory
+it changed to and invoke this instead of command if present. This
+beahvior has been dropped.
+
Other changes:
--------------
1.5 +3 -7 jakarta-ant/src/bin/antRun
Index: antRun
===================================================================
RCS file: /home/cvs/jakarta-ant/src/bin/antRun,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- antRun 2000/02/08 23:45:48 1.4
+++ antRun 2000/08/10 07:57:50 1.5
@@ -1,13 +1,9 @@
#! /bin/sh
# Args: DIR command
-cd $1
-CMD=$2
+cd "$1"
+CMD="$2"
shift
shift
-if test -f $CMD.sh; then
- CMD="sh $CMD.sh"
-fi
-
-echo $CMD $@ | sh
+exec $CMD "$@"