
EFI
CHAPTER 12 EFI Shell and EFI Commands
12.2EFI Shell Command Syntax
Shell environment variables can be specified and referenced with the set command.
As shown below, the environment variable name must be enclosed between the % characters for access when it is used as an argument to a shell command:
%myvariable%
The shell has a special variable called lasterror. This variable retains the return value of the shell command executed last.
The "*", "?", "[", and "]" characters are handled as wildcard characters in a file name used as an argument to a shell command.
| Table 12.1 Wildcards |
|
|
String | Explanation |
"*" | Represents zero or more characters in a file name. |
"?" | Represents exactly one character in a file name. |
"[" string "]" | Represents any one character between [ and ]. Example: |