From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15393 invoked by alias); 30 Mar 2006 09:49:32 -0000 Received: (qmail 15383 invoked by uid 22791); 30 Mar 2006 09:49:31 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 30 Mar 2006 09:49:28 +0000 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 0C4731D104 for ; Thu, 30 Mar 2006 11:49:25 +0200 (CEST) From: Andreas Schwab To: gdb-patches@sourceware.org Subject: Re: [patch] Compile fix for 64-bit HPUX References: <44264D9D.5070305@tausq.org> <20060328221249.GD10392@nevyn.them.org> <20060329230151.GC9916@nevyn.them.org> X-Yow: I love ROCK 'N ROLL! I memorized the all WORDS to ``WIPE-OUT'' in 1965!! Date: Thu, 30 Mar 2006 13:05:00 -0000 In-Reply-To: <20060329230151.GC9916@nevyn.them.org> (Daniel Jacobowitz's message of "Wed, 29 Mar 2006 18:01:51 -0500") Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00356.txt.bz2 Daniel Jacobowitz writes: > On Wed, Mar 29, 2006 at 01:13:15AM +0200, Andreas Schwab wrote: >> Daniel Jacobowitz writes: >> >> >> + oldcflags="${CFLAGS-}" >> > >> > What's ${foo-}? I don't see it in my bash or dash docs. >> >> In (bash)Shell Parameter Expansion, the paragraph before the table: >> >> When not performing substring expansion, Bash tests for a parameter >> that is unset or null; omitting the colon results in a test only for a >> ^^^^^^^^^^^^^^^^^^ >> parameter that is unset. > > Thanks. I see this in the dash documentation too, and pdksh, so it is > presumably portable. The autoconf manual says: `${VAR:-VALUE}' Old BSD shells, including the Ultrix `sh', don't accept the colon for any shell substitution, and complain and die. Thus in fact, omitting the colon is more portable. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."