Skip to content

PSReadline Throws an Exception During Execution Within a Docker Container #3927

@mirichmo

Description

@mirichmo

TODO: Add cross-reference to the PSReadline bug
Note: It works fine on Microsoft/powershell:nanoserver
The workaround is to remove-module psreadline

Steps to reproduce

  1. docker run -it microsoft/powershell:windowsservercore cmd.exe
  2. Start powershell core
  3. Type a command

Expected behavior

Display the contents of the directory

Actual behavior

c:\Program Files\PowerShell>.\6.0.0-beta.2\POWERSHELL.EXE
PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Program Files\PowerShell>
Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 1 Keys:
 d

Exception:
System.ComponentModel.Win32Exception (0x80004005): Incorrect function
-----------------------------------------------------------------------
ir
ir : The term 'ir' 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:1 char:1
+ ir
+ ~~
    + CategoryInfo          : ObjectNotFound: (ir:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.0-beta
PSEdition                      Core
BuildVersion                   3.0.0.0
CLRVersion
GitCommitId                    v6.0.0-beta.2
OS                             Microsoft Windows 10.0.14393
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions