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

--- Comment #22 from [email protected] ---
That stinks. :-(

Solaris 10 was released in 2005, so that is sad it doesn't fit the 2004 (or
earlier) POSIX spec but seems to be the case.
http://unix.stackexchange.com/a/164242 "/bin/sh is not the POSIX shell but the
legacy Bourne shell which predates POSIX and is then missing features that came
later with the standard." 

Solaris 11 /bin/sh -> ksh83 (and is POSIX compliant)



Possibilities include:
1) identifying if the script is running in the solaris 10 shell and skip the
padding/stripping portions. This sacrifices trailing whitespace, but shouldn't
be any worse than the original ant script on this platform.
2) find a different syntax to do the job. I don't see operators for getting the
length of a string or sub-stringing it, which would have been my second choice.
Any use of sub-shell to process the value is going to strip whitespace and put
us back to #1.

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

Reply via email to