Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 6ac4aa8c1004bbba0d4bb0d80f9ef945b4df0de2
https://github.com/tianocore/edk2/commit/6ac4aa8c1004bbba0d4bb0d80f9ef945b4df0de2
Author: Pierre Gondois <[email protected]>
Date: 2026-09-16 (Wed, 16 Sep 2026)
Changed paths:
M ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/Attrib.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/Load.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/MkDir.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/Set.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c
M ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c
M ShellPkg/Library/UefiShellLevel3CommandsLib/Cls.c
M ShellPkg/Library/UefiShellLevel3CommandsLib/Echo.c
M ShellPkg/Library/UefiShellLevel3CommandsLib/GetMtc.c
M ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c
M ShellPkg/Library/UefiShellLevel3CommandsLib/Touch.c
M ShellPkg/Library/UefiShellLevel3CommandsLib/Type.c
M ShellPkg/Library/UefiShellLevel3CommandsLib/Ver.c
M ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c
M ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c
Log Message:
-----------
ShellPkg: Remove redundant -? handling from shell commands
Drop per-command checks for the -? help flag in shell command
implementations that already rely on the common command-line parsing
and help dispatch path.
Signed-off-by: Pierre Gondois <[email protected]>
Commit: 29a6f5dd06cb714a76f2385d4c50fde0d2d7d8bf
https://github.com/tianocore/edk2/commit/29a6f5dd06cb714a76f2385d4c50fde0d2d7d8bf
Author: Pierre Gondois <[email protected]>
Date: 2026-09-16 (Wed, 16 Sep 2026)
Changed paths:
M ShellPkg/Application/Shell/Shell.c
M ShellPkg/Application/Shell/ShellParametersProtocol.h
Log Message:
-----------
ShellPkg: Trim cmd parameters if -? is present
The presence of "-?" in a command line is equivalent to issuing
"help <cmd>" and displays the manual page of the command.
However the additional command specific parameters/flags
are also passed to the help command and are mis-interpreted
by the help command.
E.g. "ls -r -?" translates to "help ls -r"
"""
Shell> ls -r -?
help: Unknown flag - '-r'
"""
Update DoHelpUpdate() to only keep the command name and trim
additional command specific parameters. To pass "help" specific
flags while getting the manual page for a command, the usage
of the "help" command should be preferred over adding "-?".
Note:
As a side effect, issuing:
"""
Shell> -?
"""
- used to be translated to "help -?", i.e. request
the manual for the help command
- is now translated to "help", i.e. request all the shell
command available
Signed-off-by: Pierre Gondois <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/d06f2b7e5bfa...29a6f5dd06cb
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits