From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32252 invoked by alias); 8 May 2006 16:35:39 -0000 Received: (qmail 32174 invoked by uid 22791); 8 May 2006 16:35:39 -0000 X-Spam-Check-By: sourceware.org Received: from province.act-europe.fr (HELO province.act-europe.fr) (212.157.227.214) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 08 May 2006 16:35:36 +0000 Received: by province.act-europe.fr (Postfix, from userid 525) id 7B6DE4ACC1; Mon, 8 May 2006 18:35:33 +0200 (CEST) Date: Mon, 08 May 2006 16:35:00 -0000 From: Arnaud Charlet To: pinskia at gcc dot gnu dot org Cc: gcc-bugs@gcc.gnu.org Subject: Re: [Bug testsuite/27476] ACATS: Ada testsuite Bourne shell compatibility problem on hpux Message-ID: <20060508163533.GB10642@adacore.com> References: <20060508163128.29117.qmail@sourceware.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060508163128.29117.qmail@sourceware.org> User-Agent: Mutt/1.4.2.1i X-IsSubscribed: yes Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-05/txt/msg00819.txt.bz2 List-Id: >------ 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