From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20237 invoked by alias); 29 Mar 2006 23:01:55 -0000 Received: (qmail 20229 invoked by uid 22791); 29 Mar 2006 23:01:54 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 29 Mar 2006 23:01:53 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FOjfj-00030G-7T for gdb-patches@sourceware.org; Wed, 29 Mar 2006 18:01:51 -0500 Date: Thu, 30 Mar 2006 00:05:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: [patch] Compile fix for 64-bit HPUX Message-ID: <20060329230151.GC9916@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <44264D9D.5070305@tausq.org> <20060328221249.GD10392@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i 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/msg00351.txt.bz2 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. -- Daniel Jacobowitz CodeSourcery