[Bug testsuite/27476] ACATS: Ada testsuite Bourne shell compatibility problem on hpux

charlet at adacore dot com gcc-bugzilla@gcc.gnu.org
Mon May 8 16:35:00 GMT 2006



------- Comment #5 from charlet at adacore dot com  2006-05-08 16:35 -------
Subject: Re:  ACATS: Ada testsuite Bourne shell compatibility problem on hpux

>------ 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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27476



More information about the Gcc-bugs mailing list