[JAVA] /bin/sh portability issues in gen-classlist.sh.in
Andrew Pinski
pinskia@physics.uc.edu
Sat Jul 8 00:57:00 GMT 2006
On Jul 6, 2006, at 9:10 PM, Roger Sayle wrote:
> The first pair of issues is in libjava/classpath/lib/gen-
> classlist.sh.in
> which uses test's "-ef" and "-e" operators which aren't available on
> Solaris. Many thanks to Ian Lance Taylor for recommending the more
> portable idiom used below.
Actually they are available on Solaris, just not with the builtin
inside /bin/sh.
This is just one reason why /bin/sh should not be used. We do
document that we
require a real POSIX shell and /bin/sh is not complaint in other
ways, this is
just one. In fact Sun has said many times, they are not going to
change /bin/sh
to be a POSIX shell.
After building you should try to install the compiler, it will not
work as some
substitutions are not done correctly. I can point you to the bug
reports that
were reported.
Also this really should be sent upstream and not to GCC patches.
-- Pinski
More information about the Java-patches
mailing list