diff --git a/WHATSNEW b/WHATSNEW index f09b92a46..cf77b3ec9 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -17,6 +17,10 @@ org.apache.tools.ant to org.apache.tools.ant.types. * and 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: -------------- diff --git a/src/bin/antRun b/src/bin/antRun index 4c38b1803..f0a18f165 100644 --- a/src/bin/antRun +++ b/src/bin/antRun @@ -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 "$@"