Specifications

58 Version 2.0
11. If startup.nsh is supported and enabled (see –startup and –nostartup),
the script will be launched.
12. If a file name was specified among the command-line options, then the image
or script (if supported) is launched.
3.3.1 Finding startup.nsh
When executing startup.nsh, the shell will search for it first in the directory where
the shell itself was launched. If it cannot find the startup.nsh file in that directory or
it was not launched from a file system, it will search the execution path defined by the
environment variable PATH.
3.3.2 Supported Profiles
The UEFI Shell may have support for zero or more profiles, such as those described in
chapter 5 built in to its executable. Additional profiles are described in the file
‘profiles.txt’, located in the same directory as the UEFI Shell executable. The contents
of the file are carriage-return delimited (one profile name per line) and are read into
the UEFI shell environment variable ‘profiles’, where they are semicolon (‘;’)
delimited. Profiles names that begin with ‘UEFI’ are reserved for use in this
specification.
3.4 Command-Line
The UEFI Shell implements a programming language that provides control over the
execution of individual commands. Command names and keywords in certain
commands are all case insensitive.
The UEFI Shell processes the command-line by
1. Substituting aliases. The UEFI Shell supports specifying aliases for UEFI Shell
commands (both internal and external). The substitution is performed
automatically on the first command-line parameter.
2. Substituting variables. The UEFI Shell finds the % character and substitutes
the value of an Environment Variable, Positional Parameter or Index
Parameter based on the characters found after the % character. See
Variables (section, 3.6) for more information.
3. Setting up input and output redirection. Using special characters on the
command-line, the UEFI Shell can get input from a file and send
output to a file. See Redirection (section 3.4.4) for more information.
4. Breaking up the command-line into arguments. The arguments are delimited
by non-quoted whitespace characters.
5. Launching the shell command or UEFI Shell script.
Formatted: Bullets and Numbering