-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Description
I have found previous bugs that have been filed on this.. #4014 all are marked as duplicate and then marked or merged into other bugs but then they are inexplicably closed! Clearly, this get-help issue is NOT yet fixed!
Note, I used "about_ForEach-Parallel" as an example. There are many other "about" topics that suffer the same issue. Just run "get-help about*" and try some! It will not be long before you duplicate this error. Clearly, Powershell finds the documented source from several sources - and it simply cannot take the step of displaying one of the documents. (After searching for about topics online I was able to locate it through Web search engines! ) If there are duplicate documents with the same name, the user should not have to take steps to ensure there is only one instance of them.
Steps to reproduce
get-help about_ForEach-Parallel -Online
Expected behavior
I expect to see the the defined about topic. (Note: "-online" parameter is optional. Error Result is the same)
Actual behavior
PS C:\WINDOWS\system32> Get-Help about_ForEach-Parallel -Online
Name Category Module Synopsis
---- -------- ------ --------
about_ForEach-Parallel HelpFile Describes the ForEach -Parallel language const...
about_ForEach-Parallel HelpFile Describes the ForEach -Parallel language const...
Get-Help : Multiple Help topics were found. Use only one Help topic with the -Online option.
At line:1 char:1
+ Get-Help about_ForEach-Parallel -Online
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Get-Help], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.GetHelpCommand
Environment data
$PSVersionTable
Name Value
PSVersion 5.1.16299.251
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.251
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1