-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Out-String cmdlet should support -NoNewline too #3684
Copy link
Copy link
Closed
Labels
HacktoberfestPotential candidate to participate in HacktoberfestPotential candidate to participate in HacktoberfestIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module
Metadata
Metadata
Assignees
Labels
HacktoberfestPotential candidate to participate in HacktoberfestPotential candidate to participate in HacktoberfestIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module
PSv5 brought the
-NoNewlineswitch to theSet-Content(Add-Content) andOut-Filecmdlets to allow direct concatenation of the input objects without newlines (strings among the input objects retain their embedded newlines however).By default, these cmdlets blindly append an additional newline, whereas
Out-Stringcurrently invariably does that, because it lacks-NoNewline.For symmetry,
Out-Stringshould support-NoNewlinetoo.Current behavior
Desired behavior
Environment data