help-grub
[Top][All Lists]
Advanced

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

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


From: xtec
Subject: Unable to use "case" command on Grub shell; getting syntax errors
Date: Fri, 04 Nov 2022 19:21:53 -0600
User-agent: Roundcube Webmail/1.5.2

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?
Thanks.



reply via email to

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