GraphicalTools: get-history | Out-ConsoleGridView with multi-line commands causes issues

Start with:

$someJson = @'
{
   "foo" : true
}
'@

Then

get-history | Out-ConsoleGridView

Results in something ugly like this:

image

Powershell 7.0.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (7 by maintainers)

Commits related to this issue

Most upvoted comments

I think following PowerShell syntax, it may make more sense to replace \n with `n. Otherwise, this seems like a good improvement.

Nevermind. Found it $pid.