|
|
|
|
|
by lukeschlather
2497 days ago
|
|
The big problem with Powershell, and it makes it borderline unusable on Linux, is its crazy error handling. The equivalent of bash's `set -e` is `$ErrorActionPreference="Stop"`. The problem is that it treats any output to stderr as an error and ignores actual posix errors (non-zero exit codes.) What's worse is in some contexts the error it throws on stderr is impossible to catch. I really love Powershell in a lot of ways but this makes a lot of really basic scripts in bash very cumbersome to write in Powershell. |
|