From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LyIpS-0002L8-GE for mharc-grub-devel@gnu.org; Mon, 27 Apr 2009 00:52:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LyIpQ-0002L1-0D for grub-devel@gnu.org; Mon, 27 Apr 2009 00:52:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LyIpK-0002Kb-7q for grub-devel@gnu.org; Mon, 27 Apr 2009 00:52:26 -0400 Received: from [199.232.76.173] (port=54160 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyIpJ-0002KX-VC for grub-devel@gnu.org; Mon, 27 Apr 2009 00:52:22 -0400 Received: from c60.cesmail.net ([216.154.195.49]:54812) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1LyIpJ-0006GO-Fx for grub-devel@gnu.org; Mon, 27 Apr 2009 00:52:21 -0400 Received: from unknown (HELO smtprelay2.cesmail.net) ([192.168.1.112]) by c60.cesmail.net with ESMTP; 27 Apr 2009 00:52:20 -0400 Received: from [192.168.1.220] (c-69-141-194-35.hsd1.pa.comcast.net [69.141.194.35]) by smtprelay2.cesmail.net (Postfix) with ESMTPSA id EF4B134C6A for ; Mon, 27 Apr 2009 00:50:01 -0400 (EDT) From: Pavel Roskin To: grub-devel@gnu.org Content-Type: text/plain Date: Mon, 27 Apr 2009 00:52:19 -0400 Message-Id: <1240807939.4158.35.camel@ct> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Commands not executed in the else branch 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: Mon, 27 Apr 2009 04:52:28 -0000 Hello! While testing the new "test" command, I have found that the "else" branch is not executed in some cases. "echo" and "set" are executed, but other commands are not. Even "hello" is not working. The problem is not specific to the "test" command. I can do it with "search" as well: grub> if search -f /; then echo 0; else hello; fi error: no such device grub> if search -f /; then echo 0; else echo Hello World; fi Hello World error: no such device grub> if search -f /; then echo 0; else echo 1; hello; echo 2; fi 1 2 error: no such device grub> The problem disappears after there is a true condition in the "if" part. -- Regards, Pavel Roskin