Andrei Borzenkov schrieb:
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.
At least "case" and "esac" are reserved words, according to the grub
source code.
However, there is no example which shows us the appropriate syntax.
--
Manfred Härtel, DB3HM mailto:[email protected]
http://rz-home.de/mhaertel