Re:Why Create a New Unix Shell?
by little_panda on Wednesday January 27, 2021 @02:33AM
(#25925348)
There is a try/catch/finally mechanism in powershell: https://docs.microsoft.com/en-us/powershell/module/microsoft...
However, it is quirky to set up and I don't remember the details now, it doesn't handle the errors out of the box for sure.
I would still prefer powershell over bash (or god forbid, cmd) any day.
Re:Why Create a New Unix Shell?
by quantified on Wednesday January 27, 2021 @02:38AM
(#25925371)
Sure. Is that how all REPLs behave? I have a feeling there is a lot of latitude for tuning the ergonomics.
But powershell e.g. prints errors that look like stacktraces (it's been a few years i don't remember exactly) with type information. And while that may be desirable to some, when using bash i'm using a UI as a user and not programming and i don't want to read a stacktrace. I want an error message in english telling me what's wrong.