Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932686AbVITQze (ORCPT ); Tue, 20 Sep 2005 12:55:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932678AbVITQze (ORCPT ); Tue, 20 Sep 2005 12:55:34 -0400 Received: from mail-in-09.arcor-online.net ([151.189.21.49]:34489 "EHLO mail-in-09.arcor-online.net") by vger.kernel.org with ESMTP id S932711AbVITQzd (ORCPT ); Tue, 20 Sep 2005 12:55:33 -0400 From: Bodo Eggert To: Keith Owens , Ben Dooks , linux-kernel@vger.kernel.org, patch-out@fluff.rog Reply-To: 7eggert@gmx.de Date: Tue, 20 Sep 2005 18:55:22 +0200 References: <4OB3R-5gu-13@gated-at.bofh.it> <4OLPC-3NQ-19@gated-at.bofh.it> User-Agent: KNode/0.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Message-Id: X-be10.7eggert.dyndns.org-MailScanner-Information: See www.mailscanner.info for information X-be10.7eggert.dyndns.org-MailScanner: Found to be clean X-be10.7eggert.dyndns.org-MailScanner-From: harvested.in.lkml@posting.7eggert.dyndns.org Subject: Re: [PATCH] scripts - use $OBJDUMP to get correct objdump (cross compile) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 958 Lines: 23 Keith Owens wrote: > +my $objdump; > +if (exists($ENV{'OBJDUMP'})) { > + $objdump = $ENV{'OBJDUMP'}; Having a typo in the environment shouldn't silently do something different from what's requested. Use something like my @objdump = ( (defined $ENV{'OBJDUMP'})? $ENV{'OBJDUMP'} : "/usr/bin/objdump", '-s', '-j'); > +} else { > + $objdump = 'objdump'; > +} > +$objdump .= ' -s -j .comment'; Having a space as the option delimiter will break if the path to objdump contains a space. Therefore you'll need to use an array. -- Ich danke GMX daf?r, die Verwendung meiner Adressen mittels per SPF verbreiteten L?gen zu sabotieren. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/