help-grub
[Top][All Lists]
Advanced

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

Re: Unable to use "case" command on Grub shell; getting syntax errors


From: Andrei Borzenkov
Subject: Re: Unable to use "case" command on Grub shell; getting syntax errors
Date: Sat, 5 Nov 2022 16:22:43 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2

On 05.11.2022 04:21, xtec@trimaso.com.mx wrote:
Hello.
Using Grub 2.06

I'm trying something simple like this:
str1=abcdef; case $str1 in a*f) echo yes ;; esac

But, regardless of how I split the command, I always get this errors:
error: ../../grub-core/script/lexer.c:352:Syntax error
error: ../../grub-core/script/lexer.c:352:Incorrect command

Even just typing "case" and hitting Enter.

Other constructs such as test, if, for, do work normally.

What am I doing wrong? Can someone help please?

grub shell does not implement "case" command.



reply via email to

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