you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 years ago (3 children)

I'm confused by this command output typing you're talking about, and I'm not sure if I found the correct thing. Are you talking about the Write-Host and Write-Output?

  • source
  • parent
  • hideshow 6 child comments
  • [–] 9 points 2 years ago

    I'd assume they mean that command return values can have types besides string. In classical shells, all data is stringy, so every command has to re-interpret everything. PowerShell can actually use data types.

  • source
  • parent
  • In powershell, commands may return types different from string and other commands may accept arguments that are not strings. For example, you can pass an array between commands where in bash you just have a string with \n separated values. You may also interact with more complex objects

    I once made a script for a monitoring software that takes its input as json, so I built a custom object that had all the data and then called .tojson on it and that was that.

  • source
  • parent