Skip to content

PS 7.4.0: "-Tail 0" ignores "-Wait" and immediately stops Get-Content #20731

@ghost

Description

Prerequisites

Steps to reproduce

Get-Content -Path "<any file>" -Wait -Tail 0

Expected behavior

PS> Get-Content -Path "<any file>" -Wait -Tail 0
<no file content, waiting for new content>

Actual behavior

PS> Get-Content -Path "<any file>" -Wait -Tail 0
PS> <Get-Content immediately stops>

Error details

No response

Environment data

PSVersion: 7.4.0
PSEdition: Core
GitCommitId: 7.4.0
OS: Microsoft Windows 10.0.19044
Platform: Win32NT
PSCompatibleVersions: {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
WSManStackVersion: 3.0

Visuals

gc-tail-broken

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIndicates that a PR is out for the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions