https://bz.apache.org/bugzilla/show_bug.cgi?id=60562

--- Comment #31 from Thomas Stecher <[email protected]> ---
I hate the feeling to loose a challenge like this. Yesterday I thought to loose
but now I have a cool idea to solve this problem and it seems to work fine.

So if we can't pass all the args directly clear to ant on solaris 10 when using
the original /bin/sh... why not reinvoke everything with a compatible shell if
available.

I added this code at line 18 in the original released script of ant 1.10.0

#-------------------------------------

if [ `uname` = "SunOS" -a -x /usr/xpg4/bin/sh -a -z "${SOLARIS_SPECIAL}" ] ;
then
   SOLARIS_SPECIAL=true
   export SOLARIS_SPECIAL
   exec /usr/xpg4/bin/sh $0 "$@"
fi

#-------------------------------------

On solaris 10 there is on all my very naked installed Hosts a folder
/usr/xpg4/bin which supplies executables compatible to POSIX !

What do you think about that hack?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to