3 ms·
It very much is documented. Get-Help about_Redirection Received wisdom about Write-Host, by the way, is that one rarely wants it.
by JdeBP 7y ago
It very much is documented.
Get-Help about_Redirection
Received wisdom about Write-Host, by the way, is that one rarely wants it.
- vardump 7y ago> Received wisdom about Write-Host, by the way, is that one rarely wants it. Yeah, totally got that. But how else you can generate colorized easy-to-read output, where yellow warnings stand out? There should be something like Write-Host that outputs colors to console stdout handle and silently drops color properties when writing to (anonymous) pipe stdout handle. Color escape codes could be even better.