]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg/help: Fix "-?" may not show manual sometimes
authorRuiyu Ni <ruiyu.ni@intel.com>
Sun, 11 Feb 2018 15:17:22 +0000 (23:17 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Tue, 13 Feb 2018 02:54:44 +0000 (10:54 +0800)
commit0a54cd4431c31ab2e72d880a55c31dd08f971cc4
tree0c610bada2bfa636b0fc7b6f1658af072e676097
parentae957a59f7b6f3e9144544db6721bc3e6aab6ee3
ShellPkg/help: Fix "-?" may not show manual sometimes
Shell core was enhanced to find the manual string in PE resource
section. But the finding algorithm is too strict: If the manual is
written beginning with:
.TH command 0 "descripton of command"

but user types "COMMAND.efi -?". The finding algorithm uses
case-sensitive compare between "command" and "COMMAND" resulting
in the manual cannot be found.

The patch fixes this issue by using existing ManFileFindTitleSection
and ManFileFindSections which compare command case-insensitive.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Application/Shell/FileHandleWrappers.c
ShellPkg/Application/Shell/ShellManParser.c