Skip to content

Improve / fix the description of the -NoNewline parameter supported by Write-Host / Set-Content / Add-Content / Out-File / Out-String #1739

Closed
@mklement0

Description

@mklement0

The actual behavior of the -NoNewline parameter is as follows:

The current descriptions do not explain these behaviors adequately:

  • Out-File's description of -NoNewline reads:

Specifies that the content displayed in the console [sic] does not end with a newline character.

  • Set-Content (my personal favorite):

Indicates that this cmdlet uses the no newline setting.

  • Add-Content:

Indicates that this cmdlet does not add a new line/carriage return to the content.

(As an aside: No need to reference specific chars. here - "newline" / "line break" works as a platform-neutral term; for the same reason, "newline character" should be avoided.)

  • Write-Host:

Specifies that the content displayed in the console does not end with a newline character.

Version(s) of document impacted

  • Impacts 6 document
  • Impacts 5.1 document
  • Impacts 5.0 document
  • Impacts 4.0 document
  • Impacts 3.0 document

Metadata

Metadata

Assignees

Labels

Pri2Priority - Medium

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions