Skip to content

Write-Progress bug #25861

Description

@huizhoudadao

Prerequisites

Steps to reproduce

Clear-Host
Write-Host ' '
$i = 0
55555, 4444, 333, 22, 1 | ForEach-Object {
    $i++ 
    Write-Progress  -Activity ('  当前: ' + $_ + "`n") -Status "当前: $_" -PercentComplete ($i * 20) 
    Start-Sleep -Seconds 3
}

Expected behavior

Progress bar disappears

Actual behavior

It should be 12345, but actually it is 1
and 
Progress bar does not disappear

Error details

Environment data

Name                           Value
----                           -----
PSVersion                      7.5.2
PSEdition                      Core
GitCommitId                    7.5.2
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions