Skip to content

Description of Get-Content -Raw is misleading #2697

@mklement0

Description

@mklement0

https://github.com/PowerShell/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/Providers/FileSystem-Provider/Get-Content-for-FileSystem.md states:

Ignores newline characters and returns the entire contents of a file in one string.

This could lead users to believe that newlines are stripped, which is not the case.

Instead, the entire file is read into a single string, as-is, with newlines preserved.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions