From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21419 invoked by alias); 24 Feb 2002 10:40:54 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21176 invoked from network); 24 Feb 2002 10:40:48 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 24 Feb 2002 10:40:48 -0000 Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id CAA04356; Sun, 24 Feb 2002 02:40:42 -0800 (PST) Received: from free.redhat.lsd.ic.unicamp.br (vpnuser.sfbay.redhat.com [10.255.17.130] (may be forged)) by cse.cygnus.com (8.8.8+Sun/8.6.4) with ESMTP id CAA20569; Sun, 24 Feb 2002 02:40:39 -0800 (PST) Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.11.6/8.11.6) id g1OAebQ15019; Sun, 24 Feb 2002 07:40:37 -0300 To: Daniel Jacobowitz Cc: binutils@sources.redhat.com, gdb-patches@sources.redhat.com Subject: Re: PATCH: update other config.* files References: <20020224002306.A22095@nevyn.them.org> From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Sun, 24 Feb 2002 02:40:00 -0000 In-Reply-To: Daniel Jacobowitz's message of "Sun, 24 Feb 2002 00:23:06 -0500" Message-ID: User-Agent: Gnus/5.0805 (Gnus v5.8.5) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-02/txt/msg00674.txt.bz2 On Feb 24, 2002, Daniel Jacobowitz wrote: > #!/bin/sh > # Use the top-level config.guess so that we don't have two of them. > guesssys=`echo $0 | sed 's|config.guess|../config.guess|'` > exec ${guesssys} "$@" I'd make this: guesssys=`echo $0 | sed 's|config\.guess$|../config.guess|'` exec ${guesssys} ${1+"$@"} which makes the sed command slightly safer and makes sure we don't pass an empty argument to the real config.guess when no arguments were passed to us. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer