Skip to content

Get-Help throws exception in Linux Docker container (Alpha 13) #2809

Closed

Description

Steps to reproduce

  1. On an Ubuntu Linux 16.04 Xenial Xerus system, install Docker Engine.
  2. Start a new PowerShell Alpha 13 container docker run --rm -it microsoft/powershell:latest.
  3. 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

Cheers,
Trevor Sullivan
Docker Captain
Microsoft MVP: Cloud & Data Center Management
https://trevorsullivan.net
https://twitter.com/pcgeek86

Activity

  1. added
    WG-Interactive-HelpSystem
    on Dec 7, 2016
  2. iSazonov commented on Aug 29, 2018

    @iSazonov
    Collaborator

    I close the old issue. Feel free to reopen if the issue exists in latest Linux Docker containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    WG-Interactive-HelpSystem

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions