[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Commands not executed in the else branch
From: |
Bean |
Subject: |
Re: Commands not executed in the else branch |
Date: |
Sun, 3 May 2009 14:49:38 +0800 |
Hi,
Committed.
On Mon, Apr 27, 2009 at 10:10 PM, Pavel Roskin <address@hidden> wrote:
> Quoting Bean <address@hidden>:
>
>> Hi,
>>
>> It's caused by the propagation of grub_errno value. This patch should fix
>> it.
>>
>> diff --git a/normal/execute.c b/normal/execute.c
>> index 8bf6d17..aec4589 100644
>> --- a/normal/execute.c
>> +++ b/normal/execute.c
>> @@ -177,6 +177,7 @@ grub_script_execute_cmdif (struct grub_script_cmd
>> *cmd)
>> read from the env variable `?'. */
>> grub_script_execute_cmd (cmdif->exec_to_evaluate);
>> result = grub_env_get ("?");
>> + grub_errno = 0;
>>
>> /* Execute the `if' or the `else' part depending on the value of
>> `?'. */
>
> Thanks, it's working fine!
>
> --
> Regards,
> Pavel Roskin
>
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
--
Bean
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Commands not executed in the else branch,
Bean <=