[Bug testsuite/27476] ACATS: Ada testsuite Bourne shell compatibility problem on hpux
Arnaud Charlet
charlet@adacore.com
Mon May 8 16:35:00 GMT 2006
>------ Comment #4 from pinskia at gcc dot gnu dot org 2006-05-08 16:31 -------
> [ "x${main}" != "x" ] should also work and maybe a little more portable.
That's also fine, although overkill these days.
All host OSes supported by GNAT (and more) accept the following simpler
and cleaner syntax:
if [ "$main" != "" ]; then
or the other way around as needed here:
if [ "$main" = "" ]; then
Arno
More information about the Gcc-bugs
mailing list