audk/ShellPkg/Library
Jonathan Watt 76e40d7be2 ShellPkg/UefiShellBcfgCommandLib: Fix '-opt' option
For all other bcfg commands the "#" (option number) argument(s) are
treated as hexedecimal values regardless of whether or not they are
prefixed by "0x".  This change fixes '-opt' to handle its "#"
(option number) argument consistently with the other commands.

Making this change removes a potential footgun whereby a user that
has been using a number without a "0x" prefix with other bcfg
commands finds that, on using that exact same number with '-opt', it
has this time unexpectedly been interpreted as a decimal number and
they have modified (corrupted) an unrelated load option.  For
example, a user may have been specifying "10" to other commands to
have them act on the 16th option (because simply "10", without any
prefix, is how 'bcfg boot dump' displayed the option number for the
16th option). Unfortunately for them, if they also use '-opt' with
"10" it would unexpectedly and inconsistently act on the 10th option.

CC: Jaben Carsey <jaben.carsey@intel.com>
CC: Ray Ni <ray.ni@intel.com>
Signed-off-by: Jonathan Watt <jwatt@jwatt.org>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Bi Dandan <dandan.bi@intel.com>
2019-08-05 14:24:32 -07:00
..
UefiHandleParsingLib ShellPkg/UefiHandleParsingLib: Remove some unused Guids 2019-04-28 09:50:14 +08:00
UefiShellAcpiViewCommandLib ShellPkg/AcpiView: Fix IA32 link error 2019-08-05 14:18:10 -07:00
UefiShellBcfgCommandLib ShellPkg/UefiShellBcfgCommandLib: Fix '-opt' option 2019-08-05 14:24:32 -07:00
UefiShellCEntryLib ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
UefiShellCommandLib ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
UefiShellDebug1CommandsLib ShellPkg/Debug1CommandsLib: Fix bugs in func DisplaySysEventLogData 2019-06-12 09:23:30 -07:00
UefiShellDriver1CommandsLib ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
UefiShellInstall1CommandsLib ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
UefiShellLevel1CommandsLib ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
UefiShellLevel2CommandsLib ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
UefiShellLevel3CommandsLib ShellPkg/Type.c: Add value check before (LoopVar - 1) 2019-07-19 08:32:11 -07:00
UefiShellLib ShellPkg/UefiShellLib: Set input pointer parameter to null if failure 2019-07-01 09:47:16 -07:00
UefiShellNetwork1CommandsLib ShellPkg: Add NetworkPkg/NetworkPkg.dec as the package dependency 2019-05-21 10:35:15 +08:00
UefiShellNetwork2CommandsLib ShellPkg: Add NetworkPkg/NetworkPkg.dec as the package dependency 2019-05-21 10:35:15 +08:00