From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HjGy9-0003TG-64 for mharc-grub-devel@gnu.org; Wed, 02 May 2007 11:42:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HjGy6-0003Sh-MW for grub-devel@gnu.org; Wed, 02 May 2007 11:42:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HjGy4-0003SG-Ij for grub-devel@gnu.org; Wed, 02 May 2007 11:42:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HjGy4-0003SD-Fg for grub-devel@gnu.org; Wed, 02 May 2007 11:42:12 -0400 Received: from server1.secure-linux-server.com ([207.44.172.97]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HjGrd-0001sq-NO for grub-devel@gnu.org; Wed, 02 May 2007 11:35:33 -0400 Received: from [192.168.0.180] ([82.153.158.114]) (authenticated (0 bits)) by server1.secure-linux-server.com (8.11.6/8.11.6) with ESMTP id l42GjJv17097 for ; Wed, 2 May 2007 17:45:19 +0100 Message-ID: <4638AFBC.1050800@ufomechanic.net> Date: Wed, 02 May 2007 16:35:24 +0100 From: Amin Azez User-Agent: Thunderbird 1.5.0.10 (X11/20070403) MIME-Version: 1.0 To: The development of GRUB 2 References: <20061015101842.GC4265@khazad.dyndns.org> <200704211538.38367.okuji@enbug.org> <20070429232251.GA2611@aragorn> <200705012245.39321.okuji@enbug.org> <20070502133116.GA29394@aragorn> In-Reply-To: <20070502133116.GA29394@aragorn> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Subject: Re: update-grub2 patch X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2007 15:42:15 -0000 * Robert Millan wrote, On 02/05/07 14:31: > Do you mean something like: > IFS=: > for i in $PATH ; do > grub-probe="$i/grub-probe" > if test -x $grub-probe ; then break ; fi > done > > You may as well define your own which: which() { IFS=: for i in $PATH ; do if test -x "$i/$1" then echo "$i/$1" return fi done return 1 } then you can keep on using which Sam