You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Get-Help throws exception in Linux Docker container (Alpha 13) #2809
On an Ubuntu Linux 16.04 Xenial Xerus system, install Docker Engine.
Start a new PowerShell Alpha 13 container docker run --rm -it microsoft/powershell:latest.
Run help get-command.
Expected behavior
Get-Help should display help.
Actual behavior
Get-Help throws an exception.
PS /> help get-command
Get-Command : The term 'less' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:16 char:21
+ $moreCommand = (Get-Command -CommandType Application less | Selec ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (less:String) [Get-Command], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand
The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a
CommandInfo object.
At line:23 char:21
+ } else { $input | & $moreCommand }
+ ~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : BadExpression
Environment data
Name Value
---------
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.13
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Activity
iSazonov commentedon Aug 29, 2018
I close the old issue. Feel free to reopen if the issue exists in latest Linux Docker containers.