Skip to content

Improve the description of Get-Content -Wait #2886

Closed

Description

-Wait is documented in the filesystem-provider-specific topic as follows:

-Wait
Waits for the cmdlet to get the content before returning the command prompt. While waiting, Get-Content checks the file once each second until you interrupt it, such as by pressing CTRL+C.

This description could stand improvement along the lines of:

-Wait keeps the file open after all existing lines have been output and outputs new lines as they are being appended to it.
While waiting, Get-Content checks the file once each second until you interrupt it, such as by pressing CTRL+C.
Waiting also ends if the file gets deleted, in which case a non-terminating error is reported.
-Wait cannot be combined with -Raw.

Version(s) of document impacted

  • Impacts 6.1 document
  • Impacts 6.0 document
  • Impacts 5.1 document
  • Impacts 5.0 document
  • Impacts 4.0 document
  • Impacts 3.0 document

Activity

  1. added
    area-utility
    on Sep 6, 2018
  2. sdwheeler commented on Sep 7, 2018

    @sdwheeler
    Contributor

    Bobby Reed (@bobbytreed) See also #2000 and check that the encoding values have been updated for this article.

  3. added a commit that references this issue on Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-utility

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions