Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.