grub-devel
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
grub shell: unkown commands alwasy exit with zero code
From
:
Itxaka serrano
Subject
:
grub shell: unkown commands alwasy exit with zero code
Date
:
Fri, 12 Jan 2024 17:58:02 +0100
Hey all,
I opened a bug because this behaviour doesnt seem correct to me:
https://savannah.gnu.org/bugs/?65154
Example:
grub> hello
error: ../../grub-core/script/function.c:119:can't find command `hello'.
grub> echo $?
0
Kind of weird because on the code it seems like its returning a GRUB_ERR_UNKNOWN_COMMAND which should not be zero. I had a quick look and maybe its becuase on line 1018 of grub-core/script/execute.c we print the error but always return 0
https://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/script/execute.c#n1018
Is this expected behaviour or is it a mistake and we should not only print the error but return the actual error?
Cheers,
Itxaka
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
grub shell: unkown commands alwasy exit with zero code
,
Itxaka serrano
<=
Re: grub shell: unkown commands alwasy exit with zero code
,
Michael Chang
,
2024/01/16
Re: grub shell: unkown commands alwasy exit with zero code
,
Vladimir 'phcoder' Serbinenko
,
2024/01/16
Prev by Date:
[PATCH v2] efi: Fix stack protector issues
Next by Date:
Strange failure during de_CH.po generation with make -j
Previous by thread:
[PATCH v2] efi: Fix stack protector issues
Next by thread:
Re: grub shell: unkown commands alwasy exit with zero code
Index(es):
Date
Thread