4 ms·
The echo problem is reflective of a larger, longer-term issue with PowerShell, that being that it sometimes aliases PowerShell commands to the names of equivale
by smacktoward 6y ago
The echo problem is reflective of a larger, longer-term issue with PowerShell, that being that it sometimes aliases PowerShell commands to the names of equivalent Unix commands. That’s done to ease the transition into PS-land for Unix folks, of course. But unless the PowerShell command works exactly the same as the Unix command it’s aliased to — takes all the same arguments, returns all the same data structures and error codes, etc. — you inevitably run into cases where things break because echo or curl or whatever aren’t behaving the way your code expects them to.
- Arnavion 6y agoTrue. I used PS only on Windows for many years and got into the habit of writing `cat`. When I started using PS Core on Linux I had to unlearn that and start using `gc` instead, because `cat` there is the native `cat`