Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 12 Aug 2002 06:35:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 12 Aug 2002 06:35:47 -0400 Received: from mail2.alphalink.com.au ([202.161.124.58]:29788 "EHLO mail2.alphalink.com.au") by vger.kernel.org with ESMTP id ; Mon, 12 Aug 2002 06:35:46 -0400 Message-ID: <3D57902B.A84C353C@alphalink.com.au> Date: Mon, 12 Aug 2002 20:38:35 +1000 From: Greg Banks Organization: Corpus Canem Pty Ltd. X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.15-4mdkfb i686) X-Accept-Language: en MIME-Version: 1.0 To: Andreas Schwab CC: Peter Samuelson , Kai Germaschewski , linux-kernel@vger.kernel.org, kbuild-devel@lists.sourceforge.net Subject: Re: [kbuild-devel] [patch] config language dep_* enhancements References: <20020808151432.GD380@cadcamlab.org> <20020808164742.GA5780@cadcamlab.org> <20020809041543.GA4818@cadcamlab.org> <3D53D50D.7FA48644@alphalink.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 951 Lines: 30 Andreas Schwab wrote: > > |> > + case "$arg" in > |> > + y|m|n) ;; > |> > + *) arg=$(eval echo \$$arg) ;; > |> > |> Don't you want to check at this point that arg starts with CONFIG_? > |> Also, how about quoting \$$arg ? > > The Right Way to write that is like this, assuming that $arg has already > been verified to be a valid identifier: Yes, assuming that happens... > eval arg=\$$arg > > No need for further quoting. you're right. Greg. -- the price of civilisation today is a courageous willingness to prevail, with force, if necessary, against whatever vicious and uncomprehending enemies try to strike it down. - Roger Sandall, The Age, 28Sep2001. - 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/