Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261860AbVBAIBm (ORCPT ); Tue, 1 Feb 2005 03:01:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261859AbVBAH76 (ORCPT ); Tue, 1 Feb 2005 02:59:58 -0500 Received: from mail.kroah.org ([69.55.234.183]:32675 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S261860AbVBAH4C (ORCPT ); Tue, 1 Feb 2005 02:56:02 -0500 Date: Mon, 31 Jan 2005 23:53:48 -0800 From: Greg KH To: Ed L Cashin Cc: 7eggert@gmx.de, linux-kernel Subject: Re: [PATCH] aoe: add documentation for udev users Message-ID: <20050201075348.GC21608@kroah.com> References: <877jm8kwt6.fsf@coraid.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877jm8kwt6.fsf@coraid.com> User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1168 Lines: 39 On Thu, Jan 20, 2005 at 09:19:17AM -0500, Ed L Cashin wrote: > Bodo Eggert <7eggert@gmx.de> writes: > > > Ed L Cashin wrote: > > > >> +if?test?-z?"$conf";?then > >> +????????conf="`find?/etc?-type?f?-name?udev.conf?2>?/dev/null`" > >> +fi > >> +if?test?-z?"$conf"?||?test?!?-r?$conf;?then > >> +????????echo?"$me?Error:?could?not?find?readable?udev.conf?in?/etc"?1>&2 > >> +????????exit?1 > >> +fi > > > > This will fail and print > > --- > > bash: test: etc/udev.conf: binary operator expected > > --- > > if there is more than one udev.conf. > > > > Fix: Always put quotes around variables. > > Thanks. With the changes below, it still will complain if it finds > more than one udev.conf, but only if /etc/udev/udev.conf doesn't > exist. > > > Quote all shell variables, and use /etc/udev/udev.conf if available. > > Signed-off-by: Ed L. Cashin Applied, thanks. greg k-h - 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/