help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unknown command 'else'?


From: Steven Shiau
Subject: Re: Unknown command 'else'?
Date: Fri, 18 Sep 2015 17:47:34 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.2.0


On 9/18/2015 PM 03:02, Andrei Borzenkov wrote:
"if" is not external command - it must be recognized and processed by
script parser and at this point rescue script parser is still active.
OTOH "configfile" is more or less standard external command. So first
"if" results in error, then "configfile" succeeds. configfile
implicitly loads and calls normal.mod so it appears to work. Although
not exactly as envisioned:)
I see. So it happens to work in that way. :)
The reason we need to use in this way is to have something discussed in the bug-grub mailing list:
http://lists.gnu.org/archive/html/bug-grub/2014-01/msg00024.html

Anyway it was quite interesting use case, something to keep in mind.
If there is someway to make this if/elif/else/fi work in embedded config, then it would be perfect for the above discussion.
Thank you very much.

Steven.

--
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/47CF935C
Fingerprint: 0240 1FEB 695D 7112 62F0  8796 11C1 12DA 47CF 935C



reply via email to

[Prev in Thread] Current Thread [Next in Thread]