Hacker News new | ask | show | jobs
by NotTheDr01ds 1531 days ago
> you can also pipe output from a PowerShell command to a Linux command.

Agreed - PowerShell <-> WSL integration is pretty nice. Just remember (mostly for others reading) that PowerShell has a nasty habit of automatically appending a trailing newline when piping to external commands like WSL. So you often need a "tr -d '\n'" in the WSL part of your pipeline.

1 comments

PowerShell also has a weird default encoding when piping.