Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The entire input buffer is printed on each keystroke. #26030

@fmulero

Description

@fmulero

Prerequisites

Steps to reproduce

With this Dockerfile we can reproduce the issue:

FROM docker.io/library/photon:5.0

SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
# Install required system packages and dependencies
RUN tdnf install -y ca-certificates curl findutils gzip icu lttng-ust openssh-clients tar which
RUN mkdir -p /app \
    mkdir -p /opt/powershell/bin \
    mkdir -p /tmp/pkg/cache/ ; cd /tmp/pkg/cache/ || exit 1 ; \
    curl -SsLf "https://github.com/PowerShell/PowerShell/releases/download/v7.5.2/powershell-7.5.2-linux-arm64.tar.gz" -O ; \
    tar -zxf "powershell-7.5.2-linux-arm64.tar.gz" -C /opt/powershell/bin --no-same-owner ; \
    chmod +x "/opt/powershell/bin/pwsh" ; \
    rm -rf "powershell-7.5.2-linux-arm64.tar.gz"
RUN tdnf upgrade --exclude=filesystem -y && \
    tdnf clean all && rm -rf /var/cache/tdnf

ENV PATH="/opt/powershell/bin:$PATH" \
    PS_INSTALL_FOLDER="/opt/powershell/bin" 

WORKDIR /app
ENTRYPOINT [ "/opt/powershell/bin/pwsh" ]
$ docker build . --no-cache  -t photon/powershell
[+] Building 34.6s (9/9) FINISHED                                                                                                                                                                                                  docker:desktop-linux
...
 => => unpacking to docker.io/photon/powershell:latest
$ docker run --rm -it photon/powershell
PowerShell 7.5.2
PS /app> 

Expected behavior

$ docker run --rm -it photon/powershell
PowerShell 7.5.2
PS /app> exit
$

Actual behavior

$ docker run --rm -it photon/powershell
PowerShell 7.5.2
PS /app> eexexiexit

Error details

Environment data

$ docker run --rm -it photon/powershell
PowerShell 7.5.2
PS /app> $$P$PS$PSV$PSVe$PSVer$PSVers$PSVersi$PSVersio$PSVersion$PSVersionT$PSVersionTa$PSVersionTab$PSVersionTabl$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.5.2
PSEdition                      Core
GitCommitId                    7.5.2
OS                             VMware Photon OS/Linux
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageThe issue is new and needs to be triaged by a work group.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions