Specifications
Version 2.0
67
[] can be either wildcard characters or literal file name characters, the UEFI Shell will
try to take them as wildcard characters first to match files, if there are files matched,
no further interpretation. Otherwise, they will be considered as literal characters in file
names.
Table 9 Wildcard Character Expansion
Character Sequence Description
* Matches zero or more characters in a file name.
? Matches exactly one character in a file name.
[] Matches one character in a file name with one of the characters in []
3.7.2 Mappings
Mappings are C-style identifiers that act as an alias for a device path. These mappings
can be used interchangeably with the device path in the EFI_SHELL_PROTOCOL and on
the interactive shell’s command line. Default mappings (such as fsx) are created by
the UEFI Shell during initialization (see Initializaiton, section 3.3. Other mappings can
be cr
eated using the map shell command or the SetMap() function.
A mapping which translates to a device path of a device that has a file system
protocol installed on its handle is called a file system mapping.
3.7.3 Consistent File System Mapping
The UEFI Shell provides consistent mapping for file system mappings. The consistent
mappings will not change after reboot or after ‘map –r’ if the hardware configuration
hasn’t changed. If two or more computers have the same hardware configurations,
the consistent mapping results on these computers should be exactly the same.
Hardware configuration changes are defined as the changes of controllers or physical
interfaces to which the devices are connected. If you are used to the fsx notation
style for mapping file systems, then the new consistent mapping convention might
look a little different. For example, the GUIDed file system may have a consistent
mapping , such as f0agonennapphibbndlnmeaakamjeafdnb. The fsx style mappings
facilitates the use of mappings on the command line, but they don’t have the
consistent mapping characteristics.
Consistent mapping only applies to file system mappings, not other device mappings.
3.8 Scripts
The UEFI Shell has the capability of executing commands from a file (script). UEFI
Shell script files are named using the ".nsh" extension. Script files can be either UCS-
2 or ASCII format files. UEFI Shell script files are invoked by entering the filename at
the command prompt, with or without the filename extension. See “Scripts” (section
4) for more information.










